/* =========================================
   1. Design Tokens & Variables
   ========================================= */
:root {
    /* Colors - Verified One Accent */
    --color-bg: #FFFFFF;
    --color-text: #111111;
    --color-text-subtle: #666666;
    --color-border: #EAEAEA;
    --color-accent: #2563EB;
    /* Royal Blue */
    --color-accent-hover: #1D4ED8;

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 70px;
}

/* =========================================
   2. Reset & Base
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-subtle);
    max-width: 70ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   3. Global Components (Header/Footer)
   ========================================= */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a {
    opacity: 0.5;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--color-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-text);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


main {
    flex: 1;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-xl) 1.5rem;
}

footer {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 1.5rem;
    text-align: center;
    color: var(--color-text-subtle);
    font-size: 0.9rem;
}

.footer-philosophy {
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    color: var(--color-text);
}

/* =========================================
   4. Motion & Utilities
   ========================================= */
/* Fade In Up - Scroll Reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reveal {
    opacity: 0;
    /* JS handles this */
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hover Intent - Subtle lifts and scales */
.card {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

/* Utility: Accent Color Text */
.text-accent {
    color: var(--color-accent);
}

/* =========================================
   5. Homepage Sections
   ========================================= */

/* Hero */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hero-sub {
    font-size: 1.35rem;
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-subtle);
    font-weight: 400;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Sections */
section {
    padding: 7rem 0;
    border-bottom: 1px solid var(--color-border);
}

section:last-of-type {
    border-bottom: none;
}

.section-header {
    margin-bottom: 4rem;
}

/* Product Cards */
.product-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--color-text);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Philosophy */
.section-philosophy {
    background: #050505;
    color: #fff;
    border-radius: 16px;
    margin: 4rem 0;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.philosophy-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-philosophy h2 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.section-philosophy p {
    color: #999;
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.5;
}

.link-arrow {
    color: #fff;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
    transition: all 0.2s ease;
}

.link-arrow:hover {
    border-bottom-color: #fff;
    padding-bottom: 6px;
}

/* Momentum */
.update-list {
    max-width: 800px;
}

.update-item {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
    align-items: baseline;
    transition: background 0.2s ease;
}

.update-item:hover {
    background: #fafafa;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.update-item .date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    width: 120px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

/* Quiet CTA */
.section-cta {
    text-align: center;
    border-bottom: none;
    padding: 6rem 0;
}

.btn-quiet {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1.5rem;
    color: var(--color-text);
}

.btn-quiet:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: #fff;
    transform: scale(1.05);
}

/* Status Badges */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.status-badge.live {
    background: #DCFCE7;
    color: #14532D;
}

.status-badge.beta {
    background: #DBEAFE;
    color: #1E3A8A;
}

.status-badge.coming-soon {
    background: #F3F4F6;
    color: #374151;
}

.section-sub {
    font-size: 1.35rem;
    color: var(--color-text-subtle);
    margin-bottom: 4rem;
    font-weight: 300;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-sub {
        font-size: 1.15rem;
    }

    .header-container {
        padding: 0 1.25rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.85rem;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(90deg, #000 90%, transparent);
    }

    .section-philosophy {
        padding: 5rem 1.5rem;
        border-radius: 0;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }

    .section-philosophy h2 {
        font-size: 2.25rem;
    }

    .section-philosophy p {
        font-size: 1.15rem;
    }

    .update-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }

    .update-item .date {
        width: auto;
        font-size: 0.75rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}