:root {
    --bg-page: #000000;
    --bg-card: #1d1d1f;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #2997ff;
    /* Apple Blue */
    --accent-purple: #bf5af2;
    --accent-indigo: #5e5ce6;

    --card-radius: 30px;
    --gap: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    width: 100%;
    max-width: 980px;
    /* Apple's max-width standard is often 980 or 1024 */
    margin: 0 auto;
}

/* Base Card Style */
.card {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
}

.card:hover {
    transform: scale(1.01);
}

.label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 15px;
}

p {
    color: var(--text-secondary);
    font-size: 17px;
    /* Apple standard body size */
    line-height: 1.5;
}

/* Specific Cards */

/* Hero: Full Width */
.hero-card {
    grid-column: span 2;
    background: radial-gradient(circle at top right, rgba(41, 151, 255, 0.15) 0%, #1d1d1f 60%);
    min-height: 300px;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 100%;
    top: -50%;
    left: 20%;
    background: radial-gradient(ellipse at center, rgba(94, 92, 230, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
    z-index: 1;
}

.hero-subtext {
    font-size: 19px;
    z-index: 1;
}

/* Product Card */
.product-card {
    grid-column: span 1;
    /* Half width on desktop */
    background: linear-gradient(160deg, #252529 0%, #1d1d1f 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card:hover {
    border-color: rgba(41, 151, 255, 0.3);
}

.quote {
    font-style: italic;
    color: var(--text-primary);
    margin-top: 15px;
    font-weight: 500;
}

.product-footer p {
    font-size: 14px;
    margin-top: 20px;
}

/* Legal Card */
.legal-card {
    grid-column: span 1;
}

.link-list {
    list-style: none;
    margin-bottom: 20px;
}

.link-list li {
    margin-bottom: 12px;
}

.link-list a {
    font-size: 19px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
}

.link-list a:hover {
    text-decoration: underline;
}

.legal-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Legal Page Layout (Dedicated Pages) */
.legal-page {
    display: block;
    padding: 0;
}

.legal-content {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.legal-content h1 {
    font-size: 40px;
    margin-bottom: 5px;
}

.legal-content .subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.legal-content p,
.legal-content ul {
    font-size: 17px;
    line-height: 1.6;
    color: #cecece;
    margin-bottom: 15px;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 40px;
    font-weight: 500;
    font-size: 15px;
}

.back-link:hover {
    color: var(--text-primary);
}

.legal-content footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: var(--text-secondary);
}

/* Contact Card */
.contact-card {
    grid-column: span 2;
    /* Full width footer-like card */
    flex-direction: row;
    align-items: center;
    min-height: 150px;
    background: linear-gradient(to right, #1d1d1f, #202025);
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-card .card-content {
    flex: 1;
}

.link-arrow {
    display: inline-block;
    color: var(--accent);
    font-size: 21px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 5px;
}

.link-arrow:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 12px;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .hero-card,
    .product-card,
    .legal-card,
    .contact-card {
        grid-column: span 1;
    }

    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }
}