/* ===== Design System Tokens ===== */
:root {
    /* Colors */
    --color-primary: #cc785c;
    --color-primary-active: #a9583e;
    --color-primary-disabled: #e6dfd8;
    --color-ink: #141413;
    --color-body: #3d3d3a;
    --color-body-strong: #252523;
    --color-muted: #6c6a64;
    --color-muted-soft: #8e8b82;
    --color-hairline: #e6dfd8;
    --color-hairline-soft: #ebe6df;
    --color-canvas: #faf9f5;
    --color-surface-soft: #f5f0e8;
    --color-surface-card: #efe9de;
    --color-surface-cream-strong: #e8e0d2;
    --color-surface-dark: #181715;
    --color-surface-dark-elevated: #252320;
    --color-surface-dark-soft: #1f1e1b;
    --color-on-primary: #ffffff;
    --color-on-dark: #faf9f5;
    --color-on-dark-soft: #a09d96;
    --color-accent-teal: #5db8a6;
    --color-accent-amber: #e8a55a;
    --color-success: #5db872;
    --color-warning: #d4a017;
    --color-error: #c64545;

    /* Landing Page Colors */
    --landing-cream: #E1E0CC;
    --landing-cream-muted: rgba(225, 224, 204, 0.7);
    --landing-black: #000000;
    --landing-dark: #101010;

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Tiempos Headline', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-code: 'JetBrains Mono', ui-monospace, monospace;
    --font-serif-italic: 'Instrument Serif', serif;

    /* Spacing */
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-section: 96px;

    /* Border Radius */
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

/* ===== Cinematic Landing Page ===== */
.landing-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    overflow: hidden;
    padding: 24px;
}

.landing-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Landing Navigation */
.landing-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding-top: 0;
    pointer-events: none;
}

.landing-nav-container {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 224, 204, 0.1);
    border-radius: 0 0 24px 24px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    pointer-events: all;
    opacity: 0;
    animation: fadeDown 0.8s ease forwards 0.1s;
}

.landing-nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #E1E0CC;
    flex-shrink: 0;
}

.landing-nav .brand-mark {
    font-size: 20px;
    color: var(--color-primary);
}

.landing-nav .brand-name {
    font-size: 16px;
}

.landing-nav .nav-links {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.landing-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(225, 224, 204, 0.7);
    transition: color 0.2s;
    white-space: nowrap;
}

.landing-nav .nav-link:hover {
    color: #E1E0CC;
}

.landing-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.button-text-link-landing {
    font-size: 14px;
    font-weight: 500;
    color: #E1E0CC;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

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

.button-primary-landing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.button-primary-landing:hover {
    background-color: var(--color-primary-active);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.landing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    z-index: 1;
}

.landing-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(204, 120, 92, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(204, 120, 92, 0.1) 0%, transparent 50%);
    z-index: 2;
}

.landing-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1485846234645-a62644f84728?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
}

/* Noise Overlay */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 2;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 3;
}

.landing-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 48px 80px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: end;
}

.landing-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.landing-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

.landing-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.landing-title {
    margin: 0;
    padding: 0;
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.07em;
    color: #E1E0CC;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    font-size: clamp(60px, 8vw, 120px);
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 500;
    animation-delay: 0.4s;
}

.title-main {
    color: var(--color-primary);
}

.landing-subtitle {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.5;
    color: #E1E0CC;
    margin-bottom: 0;
    max-width: 100%;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(225, 224, 204, 0.08);
}

.landing-subtitle em {
    font-family: var(--font-serif-italic);
    font-style: italic;
    color: var(--color-primary);
}

.landing-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(225, 224, 204, 0.1);
}

.stat-pill .stat-number {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1;
    min-width: 60px;
}

.stat-pill .stat-label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(225, 224, 204, 0.6);
    text-transform: none;
    letter-spacing: 0;
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #E1E0CC;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 18px 14px 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.landing-cta:hover {
    gap: 18px;
    background-color: var(--color-primary);
    color: #ffffff;
}

.cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #000000;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.landing-cta:hover .cta-circle {
    transform: scale(1.15);
    background-color: #ffffff;
}

.cta-circle svg {
    stroke: #E1E0CC;
}

.landing-cta:hover .cta-circle svg {
    stroke: #000000;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(225, 224, 204, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 9px;
    font-weight: 500;
    color: rgba(225, 224, 204, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(15px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-hero {
        padding: 16px;
    }
    
    .landing-container {
        border-radius: 24px;
    }
    
    .landing-nav {
        padding-top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }
    
    .landing-nav-container {
        border-radius: 0 0 20px 20px;
        padding: 12px 20px;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .landing-nav .nav-links {
        display: none;
    }
    
    .landing-nav .nav-actions {
        gap: 12px;
    }
    
    .button-text-link-landing {
        font-size: 13px;
    }
    
    .button-primary-landing {
        font-size: 13px;
        padding: 8px 16px;
        height: 32px;
    }
    
    .landing-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 24px 48px 24px;
    }
    
    .landing-left {
        order: 1;
    }
    
    .landing-right {
        order: 2;
    }
    
    .title-line:nth-child(1) {
        font-size: clamp(40px, 10vw, 60px);
    }
    
    .title-line:nth-child(2) {
        font-size: clamp(50px, 12vw, 80px);
    }
    
    .landing-stats {
        gap: 8px;
    }
    
    .stat-pill {
        padding: 10px 16px;
    }
    
    .stat-pill .stat-number {
        font-size: 20px;
        min-width: 50px;
    }
    
    .stat-pill .stat-label {
        font-size: 11px;
    }
    
    .landing-cta {
        font-size: 13px;
        padding: 12px 16px 12px 24px;
    }
    
    .cta-circle {
        width: 32px;
        height: 32px;
    }
    
    .scroll-indicator {
        bottom: 24px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .landing-nav-container {
        padding: 16px 28px;
        gap: 24px;
    }
    
    .landing-nav .nav-links {
        gap: 20px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--color-body);
    background-color: var(--color-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== Typography Classes ===== */
.display-xl {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--color-ink);
}

.display-lg {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--color-ink);
}

.display-md {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--color-ink);
}

.display-sm {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: var(--color-ink);
}

.title-lg {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-ink);
}

.title-md {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-ink);
}

.title-sm {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-ink);
}

.body-md {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--color-body);
}

.body-sm {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--color-body);
}

.caption {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-muted);
}

/* ===== Buttons ===== */
.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-primary:hover {
    background-color: var(--color-primary-active);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-canvas);
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--color-hairline);
    cursor: pointer;
    transition: all 0.2s;
}

.button-secondary:hover {
    background-color: var(--color-surface-card);
}

.button-secondary-on-coral {
    background-color: var(--color-canvas);
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.button-secondary-on-coral:hover {
    background-color: var(--color-surface-card);
}

.button-text-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-ink);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

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

.button-text-link-on-coral {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-on-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.button-text-link-on-coral:hover {
    opacity: 0.8;
}

/* ===== Badges ===== */
.badge-pill {
    display: inline-block;
    background-color: var(--color-surface-card);
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--rounded-pill);
}

.badge-coral {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--rounded-pill);
}

/* ===== Hero Section ===== */
.hero-band {
    padding: var(--space-section) 0;
    background-color: var(--color-canvas);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: var(--color-body-strong);
    margin-top: var(--space-md);
}

.hero-description {
    color: var(--color-body);
    max-width: 540px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.5px;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-illustration-card {
    background-color: var(--color-surface-card);
    border-radius: var(--rounded-xl);
    padding: var(--space-xl);
    text-align: center;
}

.hero-graph {
    width: 100%;
    border-radius: var(--rounded-lg);
    margin-bottom: var(--space-md);
}

/* ===== Section Bands ===== */
.section-band {
    padding: var(--space-section) 0;
    background-color: var(--color-canvas);
}

.section-band.section-dark {
    background-color: var(--color-surface-dark);
}

.section-band.section-dark .display-xl,
.section-band.section-dark .display-lg,
.section-band.section-dark .display-md,
.section-band.section-dark .display-sm,
.section-band.section-dark .title-lg,
.section-band.section-dark .title-md,
.section-band.section-dark .title-sm {
    color: var(--color-on-dark);
}

.section-band.section-dark .body-md,
.section-band.section-dark .body-sm {
    color: var(--color-on-dark-soft);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-intro {
    margin-top: var(--space-md);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-body);
}

.section-band.section-dark .section-intro {
    color: var(--color-on-dark-soft);
}

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xxl);
}

.feature-card {
    background-color: var(--color-surface-card);
    border-radius: var(--rounded-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-icon {
    font-size: 32px;
    line-height: 1;
}

/* ===== Rule Blocks ===== */
.rule-block {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--space-xxl);
    align-items: start;
    margin-bottom: var(--space-section);
}

.rule-block:last-child {
    margin-bottom: 0;
}

.rule-block.rule-reverse {
    direction: rtl;
}

.rule-block.rule-reverse > * {
    direction: ltr;
}

.rule-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.rule-number {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.rule-insight,
.rule-action {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.data-highlight {
    background-color: var(--color-surface-dark-elevated);
    border-radius: var(--rounded-md);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.highlight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight-label {
    font-weight: 500;
    color: var(--color-on-dark);
}

.highlight-value {
    color: var(--color-accent-amber);
    font-weight: 500;
}

.data-table {
    background-color: var(--color-surface-dark-elevated);
    border-radius: var(--rounded-md);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-surface-dark-soft);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.table-row-highlight {
    background-color: var(--color-surface-dark-soft);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--rounded-sm);
}

.table-cell {
    color: var(--color-on-dark-soft);
    font-size: 14px;
}

.table-cell-highlight {
    color: var(--color-accent-amber);
    font-weight: 500;
}

.rule-visual {
    position: sticky;
    top: 80px;
}

.product-mockup-card-dark {
    background-color: var(--color-surface-dark);
    border-radius: var(--rounded-lg);
    padding: var(--space-xl);
    text-align: center;
}

.rule-graph {
    width: 100%;
    border-radius: var(--rounded-lg);
    margin-bottom: var(--space-md);
    max-width: none;
}

/* Make the first graph (ROI bar chart) even bigger */
.rule-block:first-of-type .rule-graph {
    transform: scale(1.1);
    transform-origin: center;
    margin: var(--space-lg) 0;
}

/* Make the second graph (Runtime vs Rating) bigger too */
.rule-block:nth-of-type(2) .rule-graph {
    transform: scale(1.1);
    transform-origin: center;
    margin: var(--space-lg) 0;
}

/* ===== Insight Grid ===== */
.insight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xxl);
    margin-top: var(--space-xxl);
}

.insight-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.insight-card:nth-child(even) {
    direction: rtl;
}

.insight-card:nth-child(even) > * {
    direction: ltr;
}

.insight-card-full {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.insight-visual {
    background-color: var(--color-surface-card);
    border-radius: var(--rounded-lg);
    padding: var(--space-lg);
}

.insight-graph {
    width: 100%;
    border-radius: var(--rounded-md);
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.insight-list {
    list-style: disc;
    padding-left: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.insight-list li {
    color: var(--color-body);
}

/* Section Dividers and Subheaders */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-hairline), transparent);
    margin: var(--space-xxl) 0;
}

.section-subheader {
    text-align: center;
    margin: var(--space-xxl) 0 var(--space-xl) 0;
}

.section-subheader .display-md {
    margin-bottom: var(--space-sm);
}

.section-subheader .body-lg {
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CTA Band ===== */
.cta-band-coral {
    background-color: var(--color-primary);
    padding: 64px 0;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
}

.cta-band-coral .display-sm,
.cta-band-coral .title-md {
    color: var(--color-on-primary);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* ===== Methodology Grid ===== */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xxl);
}

.methodology-card {
    background-color: var(--color-surface-dark-elevated);
    border-radius: var(--rounded-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.method-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--color-primary);
}

.data-summary {
    margin-top: var(--space-xxl);
    background-color: var(--color-surface-dark-elevated);
    border-radius: var(--rounded-lg);
    padding: var(--space-xxl);
    text-align: center;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.summary-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.summary-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--color-accent-amber);
}

.summary-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-on-dark-soft);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-surface-dark);
    padding: 64px 0 var(--space-xl) 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xxl);
}

.footer-brand .brand-mark {
    color: var(--color-primary);
}

.footer-brand .brand-name {
    color: var(--color-on-dark);
    font-weight: 500;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.footer-heading {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-on-dark);
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 14px;
    color: var(--color-on-dark-soft);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-on-dark);
}

.footer-section p {
    font-size: 14px;
    color: var(--color-on-dark-soft);
    line-height: 1.6;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-surface-dark-elevated);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-muted-soft);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rule-block,
    .rule-block.rule-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .rule-visual {
        position: static;
    }

    .insight-card,
    .insight-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .display-xl {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .display-lg {
        font-size: 36px;
        letter-spacing: -0.5px;
    }

    .display-md {
        font-size: 28px;
        letter-spacing: -0.3px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        gap: var(--space-sm);
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .button-primary,
    .hero-actions .button-secondary {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .button-secondary-on-coral,
    .cta-actions .button-text-link-on-coral {
        width: 100%;
    }
}

/* ===== Smooth Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .methodology-card,
    .insight-card {
        transition: transform 0.2s ease;
    }

    .feature-card:hover,
    .methodology-card:hover {
        transform: translateY(-4px);
    }
}
