/* landing.css — marketing homepage: hero, features bento, value-props, who strip, cta. */

/* === HERO SECTION === */
.hero {
    position: relative;
    padding: 3rem;
    margin-bottom: 4rem;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Atmospheric gradient backdrop */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(193, 127, 89, 0.08) 0%,
        rgba(193, 127, 89, 0.03) 40%,
        transparent 70%
    );
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
}

/* Decorative corner marks - more dramatic */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background:
        /* Top left corner */
        linear-gradient(135deg, var(--accent-terracotta) 0%, var(--accent-terracotta) 2px, transparent 2px) 1.5rem 1.5rem / 60px 60px no-repeat,
        linear-gradient(135deg, transparent calc(100% - 2px), var(--accent-terracotta) calc(100% - 2px)) 1.5rem 1.5rem / 60px 60px no-repeat,
        /* Bottom right corner */
        linear-gradient(-45deg, var(--accent-terracotta) 0%, var(--accent-terracotta) 2px, transparent 2px) calc(100% - 1.5rem) calc(100% - 1.5rem) / 60px 60px no-repeat,
        linear-gradient(-45deg, transparent calc(100% - 2px), var(--accent-terracotta) calc(100% - 2px)) calc(100% - 1.5rem) calc(100% - 1.5rem) / 60px 60px no-repeat;
    opacity: 0.4;
}

/* Subtle grid pattern overlay */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(193, 127, 89, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(193, 127, 89, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0;
    animation: gridFadeIn 1.5s ease-out 0.5s forwards;
}

@keyframes gridFadeIn {
    to { opacity: 1; }
}

/* Floating geometric shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border: 1px solid var(--accent-terracotta);
    opacity: 0;
    animation:
        shapeFadeIn 1s ease-out forwards,
        shapeFloat 20s ease-in-out 1s infinite;
}

@keyframes shapeFadeIn {
    to { opacity: var(--opacity, 0.1); }
}

.hero-shape-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 8%;
    border-radius: 4px;
    transform: rotate(15deg);
    animation-delay: 0.5s, 1.5s;
    --rotate: 15deg;
    --opacity: 0.15;
}

.hero-shape-2 {
    width: 40px;
    height: 40px;
    top: 70%;
    left: 5%;
    border-radius: 50%;
    animation-delay: 0.7s, 1.7s;
    --rotate: 0deg;
    --opacity: 0.1;
}

.hero-shape-3 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 5%;
    border-radius: 4px;
    transform: rotate(-10deg);
    animation-delay: 0.9s, 1.9s;
    --rotate: -10deg;
    --opacity: 0.12;
}

.hero-shape-4 {
    width: 30px;
    height: 30px;
    bottom: 25%;
    right: 12%;
    border-radius: 50%;
    animation-delay: 1.1s, 2.1s;
    --rotate: 0deg;
    --opacity: 0.1;
}

.hero-shape-5 {
    width: 50px;
    height: 50px;
    bottom: 15%;
    left: 15%;
    border-radius: 4px;
    transform: rotate(25deg);
    animation-delay: 1.3s, 2.3s;
    --rotate: 25deg;
    --opacity: 0.08;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    25% {
        transform: translateY(-15px) rotate(calc(var(--rotate, 0deg) + 5deg));
    }
    50% {
        transform: translateY(-8px) rotate(calc(var(--rotate, 0deg) - 3deg));
    }
    75% {
        transform: translateY(-20px) rotate(calc(var(--rotate, 0deg) + 2deg));
    }
}

@keyframes heroGlow {
    0%, 100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-5%, 5%) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

/* Staggered text animations */
.hero-text {
    opacity: 0;
    animation: heroTextReveal 0.8s ease-out 0.2s forwards;
}

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

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    overflow: hidden;
}

/* Animated headline words */
.hero-text h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: wordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-text h1 .word:nth-child(1) { animation-delay: 0.3s; }
.hero-text h1 .word:nth-child(2) { animation-delay: 0.5s; }

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accent line under headline - animated */
.hero-text h1::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-gold));
    margin-top: 1.5rem;
    animation: lineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

@keyframes lineExpand {
    to { width: 100px; }
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.9s forwards;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 1.1s forwards;
}

.hero-cta .btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-terracotta) 0%, var(--accent-terracotta-dark) 100%);
    box-shadow:
        0 4px 15px rgba(193, 127, 89, 0.4),
        0 0 0 0 rgba(193, 127, 89, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(193, 127, 89, 0.5),
        0 0 0 4px rgba(193, 127, 89, 0.15);
    background: linear-gradient(135deg, var(--accent-terracotta) 0%, var(--accent-terracotta-dark) 100%);
}

.hero-cta .btn-primary:active {
    transform: translateY(-1px) scale(1);
}

/* Button shine effect */
.hero-cta .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    animation: buttonShine 4s ease-in-out 2.5s infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    15% { left: 100%; }
    100% { left: 100%; }
}

/* Arrow animation on hover */
.hero-cta .btn-primary .icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta .btn-primary:hover .icon {
    transform: translateX(4px);
}

.hero-cta .cta-note {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Social proof badge */
.hero-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(125, 154, 125, 0.1);
    border: 1px solid rgba(125, 154, 125, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--color-success);
    opacity: 0;
    animation: fadeUp 0.6s ease-out 1.3s forwards;
}

.hero-social-proof .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Hero illustration container */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glow effect behind illustration */
.hero-illustration::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(
        circle,
        rgba(193, 127, 89, 0.15) 0%,
        rgba(193, 127, 89, 0.05) 50%,
        transparent 70%
    );
    filter: blur(40px);
    animation: illustrationGlow 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes illustrationGlow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Floating animation for the building */
.hero-illustration svg.hero-building {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    height: auto;
    color: var(--accent-terracotta);
    opacity: 0;
    animation:
        buildingReveal 1s ease-out 0.4s forwards,
        buildingFloat 8s ease-in-out 2s infinite;
    transition: transform 0.3s ease-out;
}

/* Subtle hover interaction */
.hero-illustration:hover svg.hero-building {
    animation-play-state: paused;
    transform: scale(1.02);
}

@keyframes buildingReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 0.95;
        transform: translateY(0) scale(1);
    }
}

@keyframes buildingFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ========================================
   SOPHISTICATED SVG ANIMATIONS
   ======================================== */

/* Line drawing animation base */
.hero-building .draw-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: drawPath 1.5s ease-out forwards;
}

.hero-building .draw-path.delay-1 { animation-delay: 0.2s; }
.hero-building .draw-path.delay-2 { animation-delay: 0.4s; }
.hero-building .draw-path.delay-3 { animation-delay: 0.6s; }
.hero-building .draw-path.delay-4 { animation-delay: 0.8s; }
.hero-building .draw-path.delay-5 { animation-delay: 1s; }

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

/* Window animations - staggered appearance and lighting */
.hero-building .window {
    opacity: 0;
    animation: windowAppear 0.4s ease-out forwards;
}

.hero-building .window-1 { animation-delay: 1.2s; }
.hero-building .window-2 { animation-delay: 1.25s; }
.hero-building .window-3 { animation-delay: 1.3s; }
.hero-building .window-4 { animation-delay: 1.35s; }
.hero-building .window-5 { animation-delay: 1.4s; }
.hero-building .window-6 { animation-delay: 1.45s; }
.hero-building .window-7 { animation-delay: 1.5s; }
.hero-building .window-8 { animation-delay: 1.55s; }
.hero-building .window-9 { animation-delay: 1.6s; }
.hero-building .window-10 { animation-delay: 1.65s; }
.hero-building .window-11 { animation-delay: 1.7s; }

.hero-building .window-s1 { animation-delay: 1.3s; }
.hero-building .window-s2 { animation-delay: 1.35s; }
.hero-building .window-s3 { animation-delay: 1.4s; }
.hero-building .window-s4 { animation-delay: 1.45s; }
.hero-building .window-s5 { animation-delay: 1.5s; }
.hero-building .window-s6 { animation-delay: 1.55s; }
.hero-building .window-s7 { animation-delay: 1.6s; }
.hero-building .window-s8 { animation-delay: 1.65s; }

@keyframes windowAppear {
    to { opacity: 1; }
}

/* Window lighting effect - random pattern */
.hero-building .window-1 { animation: windowAppear 0.4s ease-out 1.2s forwards, windowGlow 5s ease-in-out 3s infinite; }
.hero-building .window-3 { animation: windowAppear 0.4s ease-out 1.3s forwards, windowGlow 5s ease-in-out 3.5s infinite; }
.hero-building .window-5 { animation: windowAppear 0.4s ease-out 1.4s forwards, windowGlow 5s ease-in-out 4s infinite; }
.hero-building .window-7 { animation: windowAppear 0.4s ease-out 1.5s forwards, windowGlow 5s ease-in-out 2.5s infinite; }
.hero-building .window-9 { animation: windowAppear 0.4s ease-out 1.6s forwards, windowGlow 5s ease-in-out 4.5s infinite; }
.hero-building .window-s2 { animation: windowAppear 0.4s ease-out 1.35s forwards, windowGlow 5s ease-in-out 3.2s infinite; }
.hero-building .window-s4 { animation: windowAppear 0.4s ease-out 1.45s forwards, windowGlow 5s ease-in-out 2.8s infinite; }
.hero-building .window-s6 { animation: windowAppear 0.4s ease-out 1.55s forwards, windowGlow 5s ease-in-out 3.8s infinite; }

@keyframes windowGlow {
    0%, 100% { fill: rgba(255, 255, 255, 0.05); }
    40%, 60% { fill: rgba(212, 168, 75, 0.5); }
}

/* Antenna light pulse */
.hero-building .pulse-light {
    transform-box: fill-box;
    transform-origin: center;
    animation: antennaPulse 4s ease-in-out infinite;
}

@keyframes antennaPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.35); }
}

/* Crane trolley movement */
.hero-building .crane-trolley {
    animation: trolleyMove 8s ease-in-out 2s infinite;
}

@keyframes trolleyMove {
    0%, 12%, 100% { transform: translateX(0); }
    42% { transform: translateX(-38px); }
    52% { transform: translateX(-42px); }
    68% { transform: translateX(-34px); }
}

/* Crane hook swinging */
.hero-building .crane-hook {
    transform-origin: 131px 95px;
    animation: hookSwing 3s ease-in-out 2.5s infinite;
}

@keyframes hookSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

/* Crane load swaying (follows hook) */
.hero-building .crane-load {
    transform-origin: 131px 95px;
    animation: loadSway 3s ease-in-out 2.5s infinite;
}

@keyframes loadSway {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(2deg) translateY(1px); }
    75% { transform: rotate(-2deg) translateY(1px); }
}

/* Hook cable length animation */
.hero-building .hook-cable {
    transform-origin: 131px 60px;
    animation: cableLength 8s ease-in-out 2s infinite;
}

@keyframes cableLength {
    0%, 12%, 100% { transform: scaleY(1); }
    42%, 52% { transform: scaleY(1.24); }
    68% { transform: scaleY(1.1); }
}


/* Flying birds */
.hero-building .bird {
    opacity: 0;
}

.hero-building .bird-1 {
    animation: birdFly1 12s linear 2s infinite;
}

.hero-building .bird-2 {
    animation: birdFly2 15s linear 4s infinite;
}

.hero-building .bird-3 {
    animation: birdFly3 10s linear 3s infinite;
}

@keyframes birdFly1 {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    5% { opacity: 0.6; }
    95% { opacity: 0.6; }
    100% {
        opacity: 0;
        transform: translate(-150px, 20px);
    }
}

@keyframes birdFly2 {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    5% { opacity: 0.5; }
    95% { opacity: 0.5; }
    100% {
        opacity: 0;
        transform: translate(-180px, 15px);
    }
}

@keyframes birdFly3 {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    5% { opacity: 0.4; }
    95% { opacity: 0.4; }
    100% {
        opacity: 0;
        transform: translate(-120px, 25px);
    }
}

/* Sun rays rotation */
.hero-building .sun-rays {
    transform-origin: 370px 45px;
    animation: sunRaysRotate 30s linear infinite;
}

@keyframes sunRaysRotate {
    to { transform: rotate(360deg); }
}

/* Street lamp glow */
.hero-building .lamp-glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: lampFlicker 4s ease-in-out infinite;
}

@keyframes lampFlicker {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* Tree sway */
.hero-building .tree {
    transform-origin: 380px 280px;
    animation: treeSway 6s ease-in-out infinite;
}

@keyframes treeSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

/* Measurement text fade in */
.hero-building .measurement-text {
    opacity: 0;
    animation: measureFadeIn 0.5s ease-out 2s forwards;
}

@keyframes measureFadeIn {
    to { opacity: 0.3; }
}

/* Door handle gleam */
.hero-building .door-handle {
    animation: handleGleam 3s ease-in-out infinite;
}

@keyframes handleGleam {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Background buildings subtle movement */
.hero-building .bg-building {
    opacity: 0;
    animation:
        drawPath 1.5s ease-out forwards,
        bgBuildingAppear 1s ease-out forwards;
}

.hero-building .bg-building.delay-1 {
    animation-delay: 0.3s, 0.3s;
}

@keyframes bgBuildingAppear {
    to { opacity: 0.2; }
}

/* Legacy hero support (centered) */
.hero.hero-centered {
    text-align: center;
}

.hero.hero-centered .hero-text {
    max-width: 700px;
    margin: 0 auto;
}

.hero.hero-centered h1::after {
    margin-left: auto;
    margin-right: auto;
}

.hero.hero-centered p {
    margin-left: auto;
    margin-right: auto;
}

.hero.hero-centered .hero-cta {
    align-items: center;
}

/* === FEATURES SECTION - BENTO LAYOUT === */
.features {
    margin-bottom: 5rem;
}

.features-bento {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

/* Hero Feature - Large card spanning 2 rows */
.feature-hero {
    grid-row: 1 / 3;
    position: relative;
    background: linear-gradient(135deg, var(--bg-paper) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-gold), var(--accent-terracotta));
    background-size: 200% 100%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.feature-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-terracotta);
}

.feature-hero-content {
    position: relative;
    z-index: 1;
}

.feature-eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-terracotta);
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(193, 127, 89, 0.1);
    border-radius: 100px;
}

.feature-hero h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-hero p {
    font-size: 1.0625rem;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 400px;
}

.feature-hero-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.feature-hero-stat .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-terracotta);
    line-height: 1;
}

.feature-hero-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.feature-hero-visual {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.08;
    pointer-events: none;
}

.feature-hero-visual svg {
    width: 200px;
    height: 200px;
}

/* Secondary Features - Smaller cards */
.feature-secondary {
    position: relative;
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.feature-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-terracotta);
    transition: height 0.3s ease;
}

.feature-secondary:hover {
    transform: translateX(4px);
    border-color: var(--accent-terracotta);
    background: var(--bg-elevated);
}

.feature-secondary:hover::before {
    height: 100%;
}

.feature-secondary .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--accent-terracotta);
}

.feature-secondary h3 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}

.feature-secondary p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Animation */
.features-bento > * {
    opacity: 0;
    animation: bentoReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-hero { animation-delay: 0.1s; }
.feature-secondary:nth-of-type(1) { animation-delay: 0.2s; }
.feature-secondary:nth-of-type(2) { animation-delay: 0.3s; }

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

/* === VALUE PROPOSITIONS SECTION === */
.value-props {
    margin-bottom: 4rem;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-prop {
    position: relative;
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
}

.value-prop-number {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-terracotta);
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.value-prop h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.value-prop p {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.65;
    margin: 0;
}

/* Staggered animation for value props */
.value-props-grid .value-prop {
    opacity: 0;
    animation: valueReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.value-props-grid .value-prop:nth-child(1) { animation-delay: 0.1s; }
.value-props-grid .value-prop:nth-child(2) { animation-delay: 0.2s; }
.value-props-grid .value-prop:nth-child(3) { animation-delay: 0.3s; }

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

/* Legacy features list support */
.features ul {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.features li {
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: var(--radius-md);
    position: relative;
    transition: all var(--transition-smooth);
    color: var(--text-body);
}

.features li:hover {
    transform: translateY(-4px);
    border-color: var(--accent-terracotta);
    box-shadow: var(--shadow-glow);
}

.features li strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* === WHO SECTION - MINIMAL STRIP === */
.who {
    margin-bottom: 3rem;
}

.who-strip {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.who-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.who-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.who-item {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.who-divider {
    color: var(--text-faint);
    font-weight: 300;
    user-select: none;
}

/* Legacy who section support */
.who ul {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.who li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    color: var(--text-body);
    background: var(--bg-ink);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
}

.who li:hover {
    border-color: var(--accent-terracotta);
    transform: translateX(4px);
}

.who li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-terracotta);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================================================
   PLAN-CHOICE SECTION — "Subscriptions Vol. II"
   Editorial broadsheet treatment: asymmetric grid, surface elevation as
   hierarchy, newspaper-headline price numerals, printed-timetable specs.
   ========================================================================= */
.cta-section {
    position: relative;
    padding: 5rem 3rem 4rem;
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-paper);
    scroll-margin-top: 2rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0,
        rgba(193, 127, 89, 0.10) 25%,
        rgba(193, 127, 89, 0.10) 75%,
        transparent 100%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-masthead {
    text-align: center;
    margin-bottom: 4rem;
}

.cta-meta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.cta-meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent-terracotta-light);
}

.cta-meta-rule {
    width: 44px;
    height: 1px;
    background: rgba(193, 127, 89, 0.35);
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.cta-section h2 em {
    font-style: italic;
    color: var(--accent-terracotta);
}

.cta-subhead {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--text-body);
    max-width: 580px;
    margin: 0 auto;
}

.plan-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 2rem;
    align-items: stretch;
    text-align: left;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 3rem 2.75rem 2.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-paper);
    overflow: hidden;
    transition: border-color 280ms ease, transform 280ms ease, box-shadow 280ms ease;
}

.plan-card:hover {
    border-color: rgba(193, 127, 89, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.6);
}

.plan-card-feature {
    background: var(--bg-elevated);
    border-color: rgba(193, 127, 89, 0.35);
}

.plan-card-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 92% 8%,
        rgba(212, 168, 75, 0.07) 0%,
        transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.plan-card > * {
    position: relative;
    z-index: 1;
}

.plan-roman {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-gold);
    opacity: 0.13;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.plan-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    /* Reserve right-side breathing room for the roman-numeral watermark */
    padding-right: 5rem;
}

.plan-meta-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-terracotta-light);
}

.plan-meta-trial {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(212, 168, 75, 0.4);
    border-radius: 100px;
    background: rgba(212, 168, 75, 0.07);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-gold);
}

.plan-meta-trial-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: planTrialPulse 2.4s ease-in-out infinite;
}

@keyframes planTrialPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.3); }
}

.plan-name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.75rem, 2.6vw, 2.4rem);
    line-height: 1.1;
    margin: 0 0 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}

.plan-lede {
    font-family: 'Crimson Pro', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 2.25rem;
    color: var(--text-body);
    max-width: 42ch;
}

.plan-price {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 2.25rem;
    color: var(--accent-terracotta);
}

.plan-price-muted {
    color: var(--text-primary);
}

.plan-price-currency {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.85rem;
    line-height: 1.35;
    padding-top: 0.4rem;
    opacity: 0.8;
}

.plan-price-figure {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(4.25rem, 7vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
}

.plan-price-unit {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.plan-price-unit-primary {
    color: var(--text-body);
    font-weight: 500;
}

.plan-price-unit-secondary {
    color: var(--text-muted);
}

.plan-spec {
    margin: 0 0 2.25rem;
    padding: 0;
    border-top: 1px solid var(--border-subtle);
}

.plan-spec-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.plan-spec-row dt {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.plan-spec-row dd {
    margin: 0;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: right;
}

.plan-cta {
    margin-top: auto;
    align-self: stretch;
    justify-content: center;
}

.plan-fineprint {
    margin: 0.9rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-align: center;
}

.cta-coda {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.cta-coda-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.cta-coda-rule {
    flex: 1;
    max-width: 96px;
    height: 1px;
    background: var(--border-subtle);
}

@media (max-width: 1024px) {
    .cta-section { padding: 4rem 2rem 3.5rem; }
    .plan-grid { grid-template-columns: 1.25fr 1fr; gap: 1.5rem; }
    .plan-card { padding: 2.5rem 2rem 2.25rem; }
    .plan-roman { font-size: 4rem; top: 1.25rem; right: 1.5rem; }
}

@media (max-width: 768px) {
    .cta-section { padding: 3.5rem 1.5rem 3rem; }
    .cta-section::before { display: none; }
    .cta-masthead { margin-bottom: 2.75rem; }
    .plan-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .plan-card { padding: 2.5rem 1.75rem 2rem; }
    .plan-roman { font-size: 3.75rem; top: 1rem; right: 1.25rem; }
    .plan-meta { padding-right: 4rem; }
    .cta-coda { gap: 0.75rem; margin-top: 2.5rem; flex-wrap: wrap; }
    .cta-coda-rule { max-width: 48px; }
    .cta-coda-text { font-size: 0.65rem; text-align: center; }
}

@media (max-width: 640px) {
    .plan-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        padding-right: 3.5rem;
    }
    .plan-price-figure { font-size: 4.25rem; }
    .plan-spec-row { grid-template-columns: 1fr; gap: 0.25rem; }
    .plan-spec-row dd { text-align: left; }
}

@media (max-width: 480px) {
    .cta-section h2 { font-size: 2rem; }
    .cta-subhead { font-size: 1.02rem; }
    .plan-card { padding: 2.25rem 1.5rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .plan-card,
    .plan-meta-trial-dot {
        transition: none;
        animation: none;
    }
}

/* Actions */
.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cta-btn {
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
    background: linear-gradient(135deg, var(--accent-terracotta) 0%, var(--accent-terracotta-dark) 100%);
    box-shadow:
        0 4px 20px rgba(193, 127, 89, 0.4),
        0 0 0 0 rgba(193, 127, 89, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(193, 127, 89, 0.5),
        0 0 0 4px rgba(193, 127, 89, 0.15);
    background: linear-gradient(135deg, var(--accent-terracotta) 0%, var(--accent-terracotta-dark) 100%);
}

.cta-btn .icon {
    transition: transform 0.3s ease;
}

.cta-btn:hover .icon {
    transform: translateX(4px);
}

.cta-note {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* CTA pricing tiers */
.cta-pricing-tiers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.cta-tier-price {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.cta-tier-divider {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-terracotta);
}

@media (max-width: 768px) {
    .cta-pricing-tiers {
        flex-direction: column;
        gap: 0.25rem;
    }

    .cta-tier-divider {
        display: none;
    }

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

/* Proof points */
.cta-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

.cta-proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cta-proof-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-terracotta);
}

.cta-proof-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cta-proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* === LEGACY SUBSCRIBE SECTION SUPPORT (Landing Page) === */
.subscribe-section {
    background: var(--bg-paper);
    border: 1px solid var(--border-subtle);
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.subscribe-section h2 {
    margin-bottom: 0.5rem;
}

.subscribe-section > p {
    margin-bottom: 2rem;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form .form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.subscribe-form input[type="email"],
.subscribe-form input[type="text"] {
    flex: 1;
    background: var(--bg-ink);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    margin: 0;
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 0 3px rgba(193, 127, 89, 0.15);
}

.subscribe-note {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-style: italic;
}


/* Responsive rules for this file, distributed from the pre-split combined @media block */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-illustration {
        order: -1;
    }

    .hero-illustration::before {
        width: 200px;
        height: 200px;
    }

    .hero-illustration svg.hero-building {
        max-width: 300px;
    }

    .hero-text h1::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-social-proof {
        margin-left: auto;
        margin-right: auto;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

}

/* Responsive rules for this file, distributed from the pre-split combined @media block */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text h1 .word {
        display: inline;
    }

    .hero-text p {
        font-size: 1.0625rem;
    }

    .hero-illustration::before {
        width: 160px;
        height: 160px;
        filter: blur(25px);
    }

    .hero-illustration svg.hero-building {
        max-width: 260px;
    }

    .hero-social-proof {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }

    .features-bento {
        grid-template-columns: 1fr;
    }

    .feature-hero {
        grid-row: auto;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .value-prop {
        padding: 1.5rem 0;
    }

    .value-prop h3 {
        font-size: 1.25rem;
    }


    .who-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .who-list {
        gap: 0.5rem;
    }

    .who-item {
        font-size: 1rem;
    }

    .cta-section {
        padding: 2.5rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-subhead {
        font-size: 1.0625rem;
    }

    .cta-proof {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-proof-divider {
        width: 40px;
        height: 1px;
    }

    .cta-proof-number {
        font-size: 1.5rem;
    }

}
