/* ============================================
   LUMICELLO - Main Stylesheet
   "Soft Science" / "Organic Intelligence" Design
   ============================================ */

/* ============================================
   RESET & FOUNDATIONS
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-hero);
}

h2 {
    font-size: var(--text-display);
}

h3 {
    font-size: var(--text-h2);
}

h4 {
    font-size: var(--text-h3);
}

p {
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-out);
}

/* Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

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

.text-accent {
    color: var(--color-accent);
}

.text-secondary {
    color: var(--color-text-secondary);
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    text-align: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-small);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    position: relative;
    overflow: hidden;
}

.announcement-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-accent-soft) 50%,
        transparent 100%
    );
    opacity: 0;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%,
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

.announcement-bar span {
    color: var(--color-accent);
    font-style: italic;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(249, 248, 244, 0.9);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border-bottom: 1px solid var(--color-border-subtle);
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    position: relative;
    transition: height var(--duration-normal) var(--ease-out);
}

/* Compact nav when scrolled */
.nav-wrapper.scrolled .nav-container {
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: var(--z-above);
}

.logo-image {
    height: 56px;
    width: auto;
    transition:
        height var(--duration-normal) var(--ease-out),
        transform var(--duration-normal) var(--ease-out);
}

/* Shrink logo when scrolled */
.nav-wrapper.scrolled .logo-image {
    height: 40px;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: var(--space-2xl);
    list-style: none;
}

.nav-links a {
    font-size: var(--text-small);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-text-primary);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-accent);
    border-radius: var(--radius-pill);
    transition: width var(--duration-normal) var(--ease-out);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Join Community button - prominent when at top */
.nav-actions .btn-secondary.nav-cta {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-actions .btn-secondary.nav-cta:hover {
    background: var(--color-brick);
    border-color: var(--color-brick);
    color: white;
    transform: translateY(-2px);
}

/* When scrolled - revert to subtle secondary style */
.nav-wrapper.scrolled .nav-actions .btn-secondary.nav-cta {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.nav-wrapper.scrolled .nav-actions .btn-secondary.nav-cta:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: calc(var(--z-sticky) + 1);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-pill);
    transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-small);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-sm);
}

.btn-gold {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow-sm);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-md);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-inverse);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-bg-main);
}

/* Organic background shapes */
.hero::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    background: radial-gradient(ellipse, var(--color-bg-mist) 0%, transparent 70%);
    border-radius: var(--radius-blob);
    animation: blob-morph 20s ease-in-out infinite;
    z-index: var(--z-below);
}

.hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(ellipse, var(--color-bg-clay) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-morph 25s ease-in-out infinite reverse;
    z-index: var(--z-below);
}

@keyframes blob-morph {
    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(180deg) scale(1.05);
    }

    75% {
        border-radius: 70% 30% 50% 50% / 30% 40% 60% 70%;
    }
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    width: 100%;
    position: relative;
    z-index: var(--z-base);
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-bg-clay);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    animation: fade-up var(--duration-slower) var(--ease-out) var(--stagger-1) both;
}

.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.hero h1 {
    font-size: var(--text-hero);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    animation: fade-up var(--duration-slower) var(--ease-out) var(--stagger-2) both;
}

.hero h1 span {
    color: var(--color-accent);
    font-style: italic;
    position: relative;
}

.hero h1 span::after {
    content: "";
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--color-accent);
    opacity: 0.3;
    border-radius: var(--radius-pill);
}

.hero p {
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    animation: fade-up var(--duration-slower) var(--ease-out) var(--stagger-3) both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fade-up var(--duration-slower) var(--ease-out) var(--stagger-4) both;
}

/* Hero Visual - Constellation Fingerprint */
.hero-visual {
    position: relative;
    animation: fade-up var(--duration-slowest) var(--ease-out) var(--stagger-5) both;
}

.hero-illustration {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--color-bg-sage) 0%,
        var(--color-bg-mist) 50%,
        var(--color-bg-clay) 100%
    );
    overflow: visible;
}

/* Constellation Container */
.constellation {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Glow - The "Light" */
.constellation-core {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: var(--shadow-glow-lg);
    animation: core-pulse 4s ease-in-out infinite;
}

.constellation-core::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--gradient-glow);
    border-radius: 50%;
    animation: glow-expand 4s ease-in-out infinite;
}

.constellation-core::after {
    content: "";
    position: absolute;
    inset: 15%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

@keyframes core-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes glow-expand {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Orbital Rings */
.orbital-ring {
    position: absolute;
    border: 2px dashed var(--color-border-medium);
    border-radius: 50%;
    animation: ring-rotate 30s linear infinite;
}

.orbital-ring--1 {
    width: 65%;
    height: 65%;
    animation-duration: 25s;
}

.orbital-ring--2 {
    width: 80%;
    height: 80%;
    animation-duration: 35s;
    animation-direction: reverse;
}

.orbital-ring--3 {
    width: 95%;
    height: 95%;
    animation-duration: 45s;
}

@keyframes ring-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Constellation Nodes */
.constellation-node {
    position: absolute;
    border-radius: 50%;
    animation: node-float 4s ease-in-out infinite;
}

.node--sage {
    width: 40px;
    height: 40px;
    background: var(--color-bg-sage-deep);
    box-shadow: var(--shadow-sage);
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.node--clay {
    width: 32px;
    height: 32px;
    background: var(--color-bg-clay-deep);
    box-shadow: var(--shadow-clay);
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
}

.node--mist {
    width: 36px;
    height: 36px;
    background: var(--color-bg-mist-deep);
    box-shadow: var(--shadow-mist);
    top: 50%;
    left: 8%;
    animation-delay: 2s;
}

.node--gold {
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    box-shadow: var(--shadow-glow-sm);
    bottom: 30%;
    right: 12%;
    animation-delay: 1.5s;
}

.node--primary {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    opacity: 0.3;
    top: 25%;
    left: 22%;
    animation-delay: 0.5s;
}

@keyframes node-float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.1);
    }
}

/* Connecting Lines */
.constellation-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.constellation-lines svg {
    width: 100%;
    height: 100%;
}

.constellation-line {
    stroke: var(--color-primary);
    stroke-width: 1.5;
    stroke-opacity: 0.15;
    stroke-dasharray: 8 4;
    animation: line-dash 20s linear infinite;
}

@keyframes line-dash {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 100;
    }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: sparkle-twinkle 2s ease-in-out infinite;
}

.sparkle--1 {
    top: 12%;
    left: 35%;
    animation-delay: 0s;
}

.sparkle--2 {
    top: 35%;
    right: 15%;
    animation-delay: 0.4s;
    width: 8px;
    height: 8px;
}

.sparkle--3 {
    bottom: 25%;
    left: 30%;
    animation-delay: 0.8s;
    width: 5px;
    height: 5px;
}

.sparkle--4 {
    bottom: 40%;
    right: 25%;
    animation-delay: 1.2s;
}

.sparkle--5 {
    top: 55%;
    left: 15%;
    animation-delay: 1.6s;
    width: 7px;
    height: 7px;
}

@keyframes sparkle-twinkle {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.8);
    }
}

/* Hero Floating Card */
.hero-floating-card {
    position: absolute;
    bottom: 10%;
    left: -10%;
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 280px;
    animation: float-card 6s ease-in-out infinite;
}

.floating-card-icon {
    width: 52px;
    height: 52px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-glow-sm);
}

.floating-card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
}

.hero-floating-card h4 {
    font-size: var(--text-body);
    margin-bottom: var(--space-xs);
}

.hero-floating-card p {
    font-size: var(--text-small);
    margin-bottom: 0;
}

@keyframes float-card {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Hero Decorative Elements */
.hero-decoration {
    position: absolute;
    pointer-events: none;
    z-index: var(--z-below);
}

.hero-decoration.dots {
    top: 15%;
    right: 8%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--color-accent) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.4;
    animation: fade-in var(--duration-slowest) var(--ease-out) 0.8s both;
}

.hero-decoration.circle {
    bottom: 20%;
    left: 5%;
    width: 180px;
    height: 180px;
    border: 3px solid var(--color-bg-mist);
    border-radius: 50%;
    opacity: 0.5;
    animation: fade-in var(--duration-slowest) var(--ease-out) 1s both;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: var(--text-body-lg);
}

/* ============================================
   BENTO GRID SECTION
   ============================================ */
.bento-section {
    padding: var(--spacing-section) var(--space-lg);
    background: var(--color-bg-sage);
    position: relative;
    overflow: hidden;
}

/* Organic background blob */
.bento-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, var(--color-bg-main) 0%, transparent 60%);
    border-radius: var(--radius-blob);
    z-index: var(--z-below);
}

.bento-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: var(--z-base);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: var(--grid-gap);
}

.bento-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--duration-slow) var(--ease-out);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(242, 201, 76, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Card color variants */
.bento-card.sage {
    background: linear-gradient(135deg, var(--color-bg-sage) 0%, white 100%);
}

.bento-card.clay {
    background: linear-gradient(135deg, var(--color-bg-clay) 0%, white 100%);
}

.bento-card.mist {
    background: linear-gradient(135deg, var(--color-bg-mist) 0%, white 100%);
}

/* Featured card - spans 2 columns */
.bento-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: 0;
    align-items: stretch;
}

.bento-card.featured .bento-content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-card.featured .bento-image {
    background: var(--color-bg-sage);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    overflow: hidden;
}

/* Tall card - spans 2 rows */
.bento-card.tall {
    grid-row: span 2;
}

.bento-icon {
    width: 64px;
    height: 64px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-glow-sm);
    transition: transform var(--duration-normal) var(--ease-bounce);
}

.bento-card:hover .bento-icon {
    transform: scale(1.1) rotate(-5deg);
}

.bento-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.bento-card h3 {
    font-size: var(--text-h3);
    margin-bottom: var(--space-sm);
}

.bento-card p {
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
}

/* ============================================
   CURIOSITY FINGERPRINT CINEMA
   "Mapping a Child's Unique Curiosity"
   Immersive, cinematic fingerprint animation
   ============================================ */

/* --- Container & Dark Backdrop --- */
.fingerprint-cinema {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 16px;
}

.fp-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(242, 201, 76, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 30%, rgba(100, 180, 255, 0.08) 0%, transparent 40%),
        linear-gradient(160deg, #0a1420 0%, #0f1d30 40%, #152238 70%, #0d1825 100%);
    z-index: 0;
}

/* Subtle scanline texture */
.fp-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.015) 2px,
        rgba(255, 255, 255, 0.015) 3px
    );
    pointer-events: none;
}

/* --- Prominent Stage Header --- */
.fp-stage-header {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.6s var(--ease-out);
}

.fingerprint-cinema.is-playing .fp-stage-header {
    opacity: 1;
    transform: translateY(0);
}

.fp-stage-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    background: rgba(242, 201, 76, 0.12);
    border: 1px solid rgba(242, 201, 76, 0.25);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.fp-stage-step {
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.fp-scene-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #f2c94c;
    line-height: 1;
    text-shadow: 0 0 20px rgba(242, 201, 76, 0.5);
}

.fp-stage-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
}

.fp-scene-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.1;
    transition: all 0.4s ease-out;
}

.fp-stage-desc {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

/* --- The Stage (LARGER - fills more space) --- */
.fp-stage {
    position: relative;
    width: 85%;
    max-width: 240px;
    aspect-ratio: 1;
    z-index: 1;
    margin-top: 24px;
    transition: transform 0.8s var(--ease-out);
}

/* --- Ambient Glow --- */
.fp-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.25) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.8s ease-out;
    animation: fp-glow-pulse 3s ease-in-out infinite;
}

@keyframes fp-glow-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

/* --- Fingerprint Ridges (SVG) --- */
.fp-ridges {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: url(#fp-ridge-glow);
}

.fp-ridge {
    fill: none;
    stroke: #f2c94c;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: opacity 0.5s ease-out;
}

/* Ridge thickness - varies for depth */
.fp-ridge-1 {
    stroke-width: 1.8;
    stroke: rgba(242, 201, 76, 0.65);
}
.fp-ridge-2 {
    stroke-width: 1.9;
    stroke: rgba(242, 201, 76, 0.7);
}
.fp-ridge-3 {
    stroke-width: 2;
    stroke: rgba(242, 201, 76, 0.75);
}
.fp-ridge-4 {
    stroke-width: 2.1;
    stroke: rgba(242, 201, 76, 0.8);
}
.fp-ridge-5 {
    stroke-width: 2.2;
    stroke: rgba(242, 201, 76, 0.85);
}
.fp-ridge-6 {
    stroke-width: 2.3;
    stroke: rgba(242, 201, 76, 0.9);
}
.fp-ridge-7 {
    stroke-width: 2.4;
    stroke: rgba(242, 201, 76, 0.95);
}
.fp-ridge-8 {
    stroke-width: 2.5;
    stroke: #f2c94c;
}
.fp-ridge-core {
    stroke-width: 3;
    stroke: #ffd700;
}

/* --- Minutiae Points (Interest Markers) --- */
.fp-minutiae {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fp-point {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s var(--ease-bounce);
}

.fp-point::before {
    content: "";
    position: absolute;
    inset: -6px;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: fp-point-glow 2s ease-in-out infinite;
}

.fp-point::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffd700 0%, #f2c94c 100%);
    border-radius: 50%;
    box-shadow:
        0 0 10px rgba(242, 201, 76, 0.9),
        0 0 20px rgba(242, 201, 76, 0.5);
}

/* Different point types */
.fp-point[data-type="core"]::after {
    background: linear-gradient(135deg, #ff8c00 0%, #ffd700 100%);
    box-shadow:
        0 0 15px rgba(255, 140, 0, 1),
        0 0 30px rgba(242, 201, 76, 0.6);
}

.fp-point[data-type="bifurcation"]::after {
    width: 8px;
    height: 8px;
    top: 1px;
    left: 1px;
}

@keyframes fp-point-glow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Stagger point appearances */
.fp-point:nth-child(1) {
    transition-delay: 0.1s;
}
.fp-point:nth-child(2) {
    transition-delay: 0.2s;
}
.fp-point:nth-child(3) {
    transition-delay: 0.3s;
}
.fp-point:nth-child(4) {
    transition-delay: 0.4s;
}
.fp-point:nth-child(5) {
    transition-delay: 0.5s;
}
.fp-point:nth-child(6) {
    transition-delay: 0.6s;
}
.fp-point:nth-child(7) {
    transition-delay: 0s;
}
.fp-point:nth-child(8) {
    transition-delay: 0.7s;
}

/* --- Connection Threads (Interest Network) - MORE VISIBLE --- */
.fp-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fp-thread {
    stroke: rgba(100, 180, 255, 0.7);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    filter: drop-shadow(0 0 4px rgba(100, 180, 255, 0.5));
}

.fp-thread-core {
    stroke: rgba(242, 201, 76, 0.8);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(242, 201, 76, 0.6));
}

/* --- The Core (Child's Spark) --- */
.fp-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    opacity: 0;
    transition: all 0.8s var(--ease-bounce);
}

.fp-core-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.7) 0%, transparent 65%);
    border-radius: 50%;
    opacity: 0;
    animation: fp-core-pulse 2s ease-in-out infinite;
}

@keyframes fp-core-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

.fp-core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 50%;
    box-shadow:
        0 0 20px rgba(255, 200, 100, 1),
        0 0 40px rgba(242, 201, 76, 0.7),
        0 0 60px rgba(242, 201, 76, 0.4);
    animation: fp-core-beat 1.5s ease-in-out infinite;
}

@keyframes fp-core-beat {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.25);
    }
}

/* --- Data Flow Particles (Analysis Phase) --- */
.fp-data-flow {
    position: absolute;
    inset: -40%;
    pointer-events: none;
}

.fp-data {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #64b4ff;
    border-radius: 50%;
    opacity: 0;
    box-shadow:
        0 0 8px #64b4ff,
        0 0 16px rgba(100, 180, 255, 0.6);
    transform: rotate(var(--angle)) translateX(140%);
}

@keyframes fp-data-flow-in {
    0% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(140%) scale(0.5);
    }
    15% {
        opacity: 1;
        transform: rotate(var(--angle)) translateX(120%) scale(1);
    }
    85% {
        opacity: 0.9;
        transform: rotate(var(--angle)) translateX(25%) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(10%) scale(0.3);
    }
}

/* --- Timeline Progress (bottom) --- */
.fp-timeline {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.fingerprint-cinema.is-playing .fp-timeline {
    opacity: 1;
}

.fp-timeline-track {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.fp-timeline-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #64b4ff 0%, #f2c94c 50%, #ff8c00 100%);
    border-radius: 4px;
    transition: width 0.3s linear;
    box-shadow: 0 0 10px rgba(242, 201, 76, 0.6);
}

.fp-timeline-dots {
    display: flex;
    gap: 12px;
}

.fp-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.3s ease-out;
    cursor: pointer;
}

.fp-dot.active {
    background: #f2c94c;
    box-shadow: 0 0 12px rgba(242, 201, 76, 0.8);
    transform: scale(1.4);
}

.fp-dot.passed {
    background: rgba(242, 201, 76, 0.6);
}

/* ============================================
   CINEMA ACTS - Coherent Curiosity Fingerprint Story
   Each act is DISTINCT with clear visual changes
   ACT 1: SCAN - Fingerprint appears (ridges draw in)
   ACT 2: ANALYZE - Data flows in, points light up
   ACT 3: MAP - Connections form (BRIGHT BLUE lines)
   ACT 4: PROFILE - Living, breathing curiosity map
   ============================================ */

/* --- ACT 1: SCAN - Fingerprint Ridges Draw In --- */
.fingerprint-cinema[data-act="1"] .fp-glow {
    opacity: 0.4;
}

.fingerprint-cinema[data-act="1"] .fp-ridge {
    opacity: 1;
    animation: fp-draw-ridge 2s ease-out forwards;
}

/* Stagger ridge drawing from outer to inner */
.fingerprint-cinema[data-act="1"] .fp-ridge-1 {
    animation-delay: 0s;
}
.fingerprint-cinema[data-act="1"] .fp-ridge-2 {
    animation-delay: 0.12s;
}
.fingerprint-cinema[data-act="1"] .fp-ridge-3 {
    animation-delay: 0.24s;
}
.fingerprint-cinema[data-act="1"] .fp-ridge-4 {
    animation-delay: 0.36s;
}
.fingerprint-cinema[data-act="1"] .fp-ridge-5 {
    animation-delay: 0.48s;
}
.fingerprint-cinema[data-act="1"] .fp-ridge-6 {
    animation-delay: 0.6s;
}
.fingerprint-cinema[data-act="1"] .fp-ridge-7 {
    animation-delay: 0.72s;
}
.fingerprint-cinema[data-act="1"] .fp-ridge-8 {
    animation-delay: 0.84s;
}
.fingerprint-cinema[data-act="1"] .fp-ridge-core {
    animation-delay: 0.96s;
}

@keyframes fp-draw-ridge {
    0% {
        stroke-dashoffset: 800;
        opacity: 0.2;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* --- ACT 2: ANALYZE - Data Flows In, Points Appear --- */
.fingerprint-cinema[data-act="2"] .fp-glow {
    opacity: 0.5;
}

.fingerprint-cinema[data-act="2"] .fp-ridge {
    opacity: 1;
    stroke-dashoffset: 0;
}

/* Data particles flow inward - ACTIVE */
.fingerprint-cinema[data-act="2"] .fp-data {
    animation: fp-data-flow-in 1.8s ease-out infinite;
    animation-delay: var(--delay);
}

/* Minutiae points pop in */
.fingerprint-cinema[data-act="2"] .fp-point {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: fp-point-pop 0.5s var(--ease-bounce) forwards;
}

@keyframes fp-point-pop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* --- ACT 3: MAP - Connections Form (HIGHLY VISIBLE) --- */
.fingerprint-cinema[data-act="3"] .fp-glow {
    opacity: 0.5;
    background: radial-gradient(circle, rgba(100, 180, 255, 0.3) 0%, transparent 55%);
}

.fingerprint-cinema[data-act="3"] .fp-ridge {
    opacity: 0.6;
    stroke-dashoffset: 0;
}

.fingerprint-cinema[data-act="3"] .fp-point {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: fp-point-pulse-map 1s ease-in-out infinite;
}

@keyframes fp-point-pulse-map {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(242, 201, 76, 0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 20px rgba(242, 201, 76, 1);
    }
}

/* Connection threads draw - BRIGHT AND VISIBLE */
.fingerprint-cinema[data-act="3"] .fp-thread {
    opacity: 1;
    animation: fp-draw-thread-bright 0.8s ease-out forwards;
}

/* Faster stagger for threads */
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(1) {
    animation-delay: 0s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(2) {
    animation-delay: 0.1s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(3) {
    animation-delay: 0.2s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(4) {
    animation-delay: 0.3s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(5) {
    animation-delay: 0.4s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(6) {
    animation-delay: 0.5s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(7) {
    animation-delay: 0.6s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(8) {
    animation-delay: 0.7s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(9) {
    animation-delay: 0.8s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(10) {
    animation-delay: 0.9s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(11) {
    animation-delay: 1s;
}
.fingerprint-cinema[data-act="3"] .fp-thread:nth-child(12) {
    animation-delay: 1.1s;
}

@keyframes fp-draw-thread-bright {
    0% {
        stroke-dashoffset: 200;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Core begins to glow during mapping */
.fingerprint-cinema[data-act="3"] .fp-core {
    opacity: 1;
}

.fingerprint-cinema[data-act="3"] .fp-core-glow {
    opacity: 0.6;
    background: radial-gradient(circle, rgba(100, 180, 255, 0.5) 0%, transparent 65%);
}

.fingerprint-cinema[data-act="3"] .fp-core-center {
    opacity: 0.8;
    background: linear-gradient(135deg, #64b4ff 0%, #f2c94c 100%);
}

/* --- ACT 4: PROFILE - Complete Living Fingerprint --- */
.fingerprint-cinema[data-act="4"] .fp-glow {
    opacity: 1;
    animation: fp-glow-breathe 3s ease-in-out infinite;
}

@keyframes fp-glow-breathe {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.fingerprint-cinema[data-act="4"] .fp-ridge {
    opacity: 1;
    stroke-dashoffset: 0;
    animation: fp-ridge-breathe 3s ease-in-out infinite;
}

@keyframes fp-ridge-breathe {
    0%,
    100% {
        opacity: 0.9;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3);
    }
}

/* Stagger ridge breathing */
.fingerprint-cinema[data-act="4"] .fp-ridge-1 {
    animation-delay: 0s;
}
.fingerprint-cinema[data-act="4"] .fp-ridge-2 {
    animation-delay: 0.15s;
}
.fingerprint-cinema[data-act="4"] .fp-ridge-3 {
    animation-delay: 0.3s;
}
.fingerprint-cinema[data-act="4"] .fp-ridge-4 {
    animation-delay: 0.45s;
}
.fingerprint-cinema[data-act="4"] .fp-ridge-5 {
    animation-delay: 0.6s;
}
.fingerprint-cinema[data-act="4"] .fp-ridge-6 {
    animation-delay: 0.75s;
}
.fingerprint-cinema[data-act="4"] .fp-ridge-7 {
    animation-delay: 0.9s;
}
.fingerprint-cinema[data-act="4"] .fp-ridge-8 {
    animation-delay: 1.05s;
}
.fingerprint-cinema[data-act="4"] .fp-ridge-core {
    animation-delay: 1.2s;
}

.fingerprint-cinema[data-act="4"] .fp-point {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: fp-point-float 2.5s ease-in-out infinite;
}

@keyframes fp-point-float {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, calc(-50% - 3px)) scale(1.15);
    }
}

/* Stagger point floating */
.fingerprint-cinema[data-act="4"] .fp-point:nth-child(1) {
    animation-delay: 0s;
}
.fingerprint-cinema[data-act="4"] .fp-point:nth-child(2) {
    animation-delay: 0.25s;
}
.fingerprint-cinema[data-act="4"] .fp-point:nth-child(3) {
    animation-delay: 0.5s;
}
.fingerprint-cinema[data-act="4"] .fp-point:nth-child(4) {
    animation-delay: 0.75s;
}
.fingerprint-cinema[data-act="4"] .fp-point:nth-child(5) {
    animation-delay: 1s;
}
.fingerprint-cinema[data-act="4"] .fp-point:nth-child(6) {
    animation-delay: 1.25s;
}
.fingerprint-cinema[data-act="4"] .fp-point:nth-child(7) {
    animation-delay: 0.125s;
}
.fingerprint-cinema[data-act="4"] .fp-point:nth-child(8) {
    animation-delay: 1.5s;
}

/* Threads pulse with energy */
.fingerprint-cinema[data-act="4"] .fp-thread {
    opacity: 1;
    stroke-dashoffset: 0;
    animation: fp-thread-pulse 2s ease-in-out infinite;
}

@keyframes fp-thread-pulse {
    0%,
    100% {
        opacity: 0.5;
        stroke-width: 2;
    }
    50% {
        opacity: 1;
        stroke-width: 3;
    }
}

/* Full core activation - BRIGHT */
.fingerprint-cinema[data-act="4"] .fp-core {
    opacity: 1;
}

.fingerprint-cinema[data-act="4"] .fp-core-glow {
    opacity: 1;
    animation: fp-core-radiate 2s ease-in-out infinite;
}

@keyframes fp-core-radiate {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.fingerprint-cinema[data-act="4"] .fp-core-center {
    opacity: 1;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

/* Stage breathes gently */
.fingerprint-cinema[data-act="4"] .fp-stage {
    animation: fp-stage-breathe 4s ease-in-out infinite;
}

@keyframes fp-stage-breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fp-stage {
        width: 80%;
        max-width: 200px;
        margin-top: 16px;
    }

    .fp-stage-header {
        top: 12px;
        left: 12px;
        right: 12px;
        gap: 8px;
    }

    .fp-scene-num {
        font-size: 20px;
    }

    .fp-scene-name {
        font-size: 14px;
    }

    .fp-stage-desc {
        font-size: 9px;
    }

    .fp-point {
        width: 8px;
        height: 8px;
    }

    .fp-timeline {
        bottom: 10px;
    }

    .fp-timeline-track {
        width: 80px;
    }

    .fp-core {
        width: 40px;
        height: 40px;
    }

    .fp-core-center {
        width: 16px;
        height: 16px;
    }
}

/* Bento Visual - Progress bars */
.bento-visual {
    margin-top: var(--space-xl);
    padding: var(--space-xl);
    background: rgba(26, 43, 76, 0.03);
    border-radius: var(--radius-lg);
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */
.community-section {
    padding: var(--spacing-section) var(--space-lg);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    position: relative;
    overflow: hidden;
}

/* Glowing orbs background */
.community-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 60%);
    z-index: var(--z-below);
}

.community-section::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(227, 242, 245, 0.1) 0%, transparent 60%);
    z-index: var(--z-below);
}

.community-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: var(--z-base);
}

.community-section .section-header {
    color: white;
}

.community-section .section-header h2 {
    color: white;
}

.community-section .section-header p {
    color: rgba(255, 255, 255, 0.85);
}

.community-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--grid-gap);
}

.community-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--duration-slow) var(--ease-out);
    backdrop-filter: blur(var(--blur-sm));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.community-card.newsletter {
    background: linear-gradient(135deg, rgba(242, 201, 76, 0.15) 0%, rgba(242, 201, 76, 0.05) 100%);
    border-color: rgba(242, 201, 76, 0.2);
}

.community-icon {
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-glow-sm);
}

.community-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.community-icon-line {
    background: var(--color-line);
}

.community-icon-facebook {
    background: var(--color-facebook);
}

.community-card h3 {
    font-size: var(--text-h3);
    margin-bottom: var(--space-sm);
    color: white;
}

.community-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
}

/* Social Cards Stack */
.social-cards-container {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
}

.community-card-small {
    padding: var(--space-lg);
    flex: 1;
}

.community-card-small .community-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
}

.community-card-small .community-icon svg {
    width: 24px;
    height: 24px;
}

.community-card-small h3 {
    font-size: var(--text-body);
    color: white;
}

.community-card-small p {
    font-size: var(--text-small);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.85);
}

/* Clickable card link */
a.community-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    font-size: var(--text-small);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    transition: all var(--duration-normal) var(--ease-out);
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.social-link-line:hover {
    background: var(--color-line);
    color: white;
}

.social-link-facebook:hover {
    background: var(--color-facebook);
    color: white;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.newsletter-form .form-row {
    display: flex;
    gap: var(--space-sm);
}

/* Floating Label Field */
.floating-field {
    position: relative;
    flex: 1;
}

.floating-field input {
    width: 100%;
    padding: var(--space-lg) var(--space-lg) var(--space-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: var(--text-body);
    transition: all var(--duration-normal) var(--ease-out);
}

.floating-field label {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-body);
    pointer-events: none;
    transition: all var(--duration-normal) var(--ease-out);
    background: transparent;
}

/* Label floats up when input is focused or has content */
.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label {
    top: 12px;
    transform: translateY(0);
    font-size: var(--text-xs);
    color: var(--color-accent);
}

.floating-field input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.15);
}

/* Hide the space placeholder */
.floating-field input::placeholder {
    color: transparent;
}

/* Floating Field - Light variant (for light backgrounds) */
.floating-field-light {
    position: relative;
    flex: 1;
}

.floating-field-light input {
    width: 100%;
    padding: 22px var(--space-lg) 10px;
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--text-body);
    background: var(--color-bg-main);
    color: var(--color-text-primary);
    transition: all var(--duration-normal) var(--ease-out);
}

.floating-field-light label {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    pointer-events: none;
    transition: all var(--duration-normal) var(--ease-out);
}

.floating-field-light input:focus + label,
.floating-field-light input:not(:placeholder-shown) + label {
    top: 12px;
    transform: translateY(0);
    font-size: var(--text-xs);
    color: var(--color-accent-dark);
    font-weight: 600;
}

.floating-field-light input::placeholder {
    color: transparent;
}

.floating-field-light input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: white;
    box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.form-note {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-xs);
}

.form-note a {
    color: inherit;
    text-decoration: underline;
}

/* ============================================
   SPLIT SECTION (50/50)
   ============================================ */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.split-image {
    background: var(--color-bg-mist);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-4xl);
    background: var(--color-bg-clay);
}

.split-content h2 {
    font-size: var(--text-h1);
    margin-bottom: var(--space-lg);
}

.split-content p {
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-xl);
}

/* Prism Illustration */
.prism-illustration {
    position: relative;
    width: 260px;
    height: 240px;
}

.prism-shape {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: prism-rotate 10s ease-in-out infinite;
}

.prism-shape::before {
    content: "";
    position: absolute;
    inset: 10px;
    background: var(--color-accent);
    border-radius: 6px;
}

@keyframes prism-rotate {
    0%,
    100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
    }
}

.prism-ray {
    position: absolute;
    height: 10px;
    border-radius: var(--radius-pill);
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: ray-pulse 3s ease-in-out infinite;
}

.prism-ray-1 {
    width: 70px;
    background: var(--color-bg-sage);
    transform: translate(40px, -50%) rotate(-25deg);
    animation-delay: 0s;
}

.prism-ray-2 {
    width: 80px;
    background: var(--color-bg-mist);
    transform: translate(40px, -50%) rotate(0deg);
    animation-delay: 0.2s;
}

.prism-ray-3 {
    width: 70px;
    background: var(--color-bg-clay);
    transform: translate(40px, -50%) rotate(25deg);
    animation-delay: 0.4s;
}

@keyframes ray-pulse {
    0%,
    100% {
        width: 70px;
        opacity: 0.7;
    }

    50% {
        width: 90px;
        opacity: 1;
    }
}

.prism-beam {
    position: absolute;
    width: 60px;
    height: 8px;
    background: linear-gradient(to right, transparent, var(--color-accent));
    border-radius: var(--radius-pill);
    top: 50%;
    right: 50%;
    transform: translate(-40px, -50%);
    animation: beam-pulse 3s ease-in-out infinite;
}

@keyframes beam-pulse {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.prism-float {
    position: absolute;
    border-radius: var(--radius-sm);
    animation: prism-float 4s ease-in-out infinite;
}

.prism-float-1 {
    width: 35px;
    height: 35px;
    background: var(--color-bg-sage);
    top: 15px;
    left: 25px;
}

.prism-float-2 {
    width: 28px;
    height: 28px;
    background: var(--color-bg-clay);
    top: 20px;
    right: 20px;
    animation-delay: 0.5s;
}

.prism-float-3 {
    width: 25px;
    height: 25px;
    background: var(--color-bg-mist);
    bottom: 25px;
    left: 20px;
    animation-delay: 1s;
}

.prism-float-4 {
    width: 30px;
    height: 30px;
    background: var(--color-bg-sage);
    bottom: 20px;
    right: 30px;
    animation-delay: 1.5s;
}

@keyframes prism-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-12px) rotate(5deg);
        opacity: 1;
    }
}

.prism-sparkle {
    position: absolute;
    background: var(--color-accent);
    border-radius: 50%;
    animation: sparkle-twinkle 2s ease-in-out infinite;
}

.prism-sparkle-1 {
    width: 8px;
    height: 8px;
    top: 35px;
    right: 55px;
}

.prism-sparkle-2 {
    width: 6px;
    height: 6px;
    bottom: 45px;
    right: 45px;
    animation-delay: 0.4s;
}

.prism-sparkle-3 {
    width: 5px;
    height: 5px;
    top: 55px;
    left: 45px;
    animation-delay: 0.8s;
}

.prism-sparkle-4 {
    width: 7px;
    height: 7px;
    bottom: 40px;
    left: 55px;
    animation-delay: 1.2s;
}

/* ============================================
   EXPLORATION KITS SECTION
   ============================================ */
.kits-section {
    padding: var(--spacing-section) var(--space-lg);
    background: var(--color-bg-sage);
    position: relative;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.kit-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-slow) var(--ease-out);
    /* Enhanced shadow for better definition against sage background */
    box-shadow:
        0 2px 8px rgba(26, 43, 76, 0.06),
        0 8px 32px rgba(26, 43, 76, 0.08);
    /* Slightly more visible border with warm undertone */
    border: 1px solid rgba(26, 43, 76, 0.1);
    /* Safari border-radius + overflow fix */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
    /* Flexbox for consistent height alignment of kit-meta across cards */
    display: flex;
    flex-direction: column;
}

/* Only apply hover effects on devices that support hover (not touch) */
@media (hover: hover) {
    .kit-card:hover {
        transform: translateY(-10px);
        box-shadow:
            0 4px 16px rgba(26, 43, 76, 0.08),
            0 16px 48px rgba(26, 43, 76, 0.12);
    }
}

.kit-image {
    aspect-ratio: 1/1;
    position: relative;
    /* Warm gradient that always contrasts with sage section background
       Removed sage from gradient - uses warmer progression instead */
    background: linear-gradient(
        155deg,
        var(--color-bg-clay) 0%,
        #f5ede5 45%,
        var(--color-bg-mist) 100%
    );
    padding: var(--space-lg);
    /* Safari fix - explicit overflow clipping */
    overflow: hidden;
}

/* Inner container for the actual image with shadow lift */
.kit-image::before {
    content: "";
    position: absolute;
    inset: var(--space-md);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 20px rgba(26, 43, 76, 0.08),
        0 8px 40px rgba(26, 43, 76, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    z-index: 0;
}

.kit-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--duration-slow) var(--ease-out);
    z-index: 1;
    /* Subtle padding so image doesn't touch edges */
    padding: var(--space-xs);
    /* Ensure images clip to container */
    border-radius: var(--radius-md);
}

@media (hover: hover) {
    .kit-card:hover .kit-image img {
        transform: scale(1.05);
    }
}

/* Kit Image Carousel */
.kit-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Safari fix - force proper layer isolation */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.kit-carousel-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform var(--duration-slow) var(--ease-out);
}

.kit-carousel-track img {
    width: 50%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    cursor: pointer;
    padding: var(--space-xs);
}

.kit-carousel-dots {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-xs);
    z-index: 10;
    background: rgba(26, 43, 76, 0.6);
    backdrop-filter: blur(8px);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-pill);
}

.kit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.kit-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.kit-dot.active {
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent-glow);
    transform: scale(1.1);
}

/* Kit Lightbox - Cinematic Gallery Experience */
.kit-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--duration-slow) var(--ease-out),
        visibility var(--duration-slow) var(--ease-out);
}

.kit-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 26, 46, 0.97) 0%, rgba(26, 43, 76, 0.95) 100%);
    backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--space-2xl);
}

.lightbox-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
    color: white;
    transition: transform var(--duration-normal) var(--ease-out);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-nav svg {
    width: 26px;
    height: 26px;
    color: white;
    transition: transform var(--duration-fast) var(--ease-out);
}

.lightbox-prev:hover svg {
    transform: translateX(-3px);
}

.lightbox-next:hover svg {
    transform: translateX(3px);
}

.lightbox-prev {
    left: var(--space-xl);
}

.lightbox-next {
    right: var(--space-xl);
}

.lightbox-image-container {
    max-width: 85vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Warm glow behind image */
    filter: drop-shadow(0 0 100px rgba(242, 201, 76, 0.1));
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: white;
    /* Smooth crossfade transition */
    transition:
        opacity var(--duration-normal) var(--ease-out),
        transform var(--duration-normal) var(--ease-out);
}

/* Transition states for image changes */
.lightbox-image.transitioning {
    opacity: 0;
    transform: scale(0.96);
}

.lightbox-dots {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
    background: rgba(26, 43, 76, 0.7);
    backdrop-filter: blur(12px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--duration-normal) var(--ease-bounce);
}

.lightbox-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.lightbox-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent-glow);
    transform: scale(1.15);
}

/* Counter indicator */
.lightbox-counter {
    position: absolute;
    top: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    z-index: 10;
}

/* Lightbox responsive */
@media (max-width: 768px) {
    .lightbox-content {
        padding: var(--space-lg);
    }

    .lightbox-nav {
        width: 48px;
        height: 48px;
    }

    .lightbox-nav svg {
        width: 22px;
        height: 22px;
    }

    .lightbox-prev {
        left: var(--space-sm);
    }

    .lightbox-next {
        right: var(--space-sm);
    }

    .lightbox-close {
        top: var(--space-md);
        right: var(--space-md);
        width: 44px;
        height: 44px;
    }

    .lightbox-close svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-image-container {
        max-width: 95vw;
        max-height: 70vh;
    }

    .lightbox-image {
        max-height: 70vh;
        border-radius: var(--radius-lg);
    }

    .lightbox-dots {
        bottom: var(--space-lg);
        padding: var(--space-xs) var(--space-md);
    }
}

.kit-badge {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-glow-sm);
    z-index: 5;
}

.kit-content {
    padding: var(--space-xl);
    /* Subtle warm-to-white gradient creates visual continuity with kit-image */
    background: linear-gradient(180deg, rgba(245, 237, 229, 0.3) 0%, white 30%);
    /* Flexbox to push kit-meta to bottom for alignment across cards */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kit-category {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xs);
}

.kit-card h3 {
    font-size: var(--text-h3);
    margin-bottom: var(--space-sm);
}

.kit-tagline {
    /* Tagline as a warm accent element - gold as background, not text */
    display: inline-block;
    font-style: italic;
    font-size: var(--text-small);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    /* Dark text on soft gold background for excellent readability */
    color: var(--color-primary-dark);
    background: linear-gradient(135deg, var(--color-accent-soft) 0%, rgba(242, 201, 76, 0.25) 100%);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    /* Subtle left accent bar for editorial feel */
    border-left: 3px solid var(--color-accent);
    /* Soft inner glow */
    box-shadow: inset 0 1px 2px rgba(242, 201, 76, 0.2);
}

.kit-card p {
    font-size: var(--text-small);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
}

.kit-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-subtle);
    /* Push to bottom of kit-content for alignment across all cards */
    margin-top: auto;
}

.kit-age {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-primary);
}

.kit-interests {
    display: flex;
    gap: var(--space-xs);
}

.interest-tag {
    font-size: var(--text-xs);
    padding: 4px var(--space-sm);
    /* Use clay instead of sage - contrasts better with sage section background */
    background: var(--color-bg-clay);
    border-radius: var(--radius-pill);
    color: var(--color-text-secondary);
}

/* ============================================
   KITS JOURNEY SCROLLER (Mobile)
   Horizontal scroll with developmental journey
   ============================================ */
.kits-journey-wrapper {
    position: relative;
}

/* Journey Progress - Hidden on desktop, shown on mobile */
.journey-progress {
    display: none;
}

.journey-hint {
    display: none;
}

/* ============================================
   PROBLEM STATEMENT SECTION
   Real parent voices - scrolling marquee
   ============================================ */
.problem-section {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: var(--spacing-section) 0;
    overflow: hidden;
    position: relative;
}

/* Subtle texture overlay */
.problem-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.problem-header {
    text-align: center;
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.problem-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
}

.problem-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.problem-header p {
    font-size: var(--text-body);
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
}

/* Scrolling voices container */
.voices-container {
    width: 100%;
    overflow: hidden;
    padding: var(--space-xl) 0;
    /* Fade edges */
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.voices-track {
    display: flex;
    gap: var(--space-lg);
    width: max-content;
    animation: scroll-voices 120s linear infinite;
}

/* Pause on container hover (not track) to prevent jitter between cards */
.voices-container:hover .voices-track {
    animation-play-state: paused;
}

@keyframes scroll-voices {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Individual voice cards */
.voice-card {
    flex-shrink: 0;
    width: 340px;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out);
}

.voice-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.voice-quote {
    font-family: var(--font-body);
    font-size: var(--text-small);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.voice-source {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Transition text */
.problem-transition {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
    position: relative;
    z-index: 1;
}

.transition-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-accent);
    font-style: italic;
    text-shadow: 0 0 40px rgba(242, 201, 76, 0.3);
}

/* ============================================
   SOLUTION SECTION (follows problem)
   ============================================ */
.solution-section {
    background: linear-gradient(180deg, var(--color-bg-main) 0%, white 100%);
    padding: var(--spacing-section) var(--space-lg);
    position: relative;
}

/* Connecting gradient from dark to light */
.solution-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, var(--color-primary) 0%, transparent 100%);
    opacity: 0.05;
    pointer-events: none;
}

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

.solution-visual {
    background: var(--color-bg-sage);
    border-radius: var(--radius-2xl);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.solution-text {
    padding: var(--space-xl) 0;
}

.solution-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-accent-soft);
    border-radius: var(--radius-pill);
}

.solution-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

.solution-text p {
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.solution-text .btn {
    margin-top: var(--space-lg);
}

.solution-highlight {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    color: var(--color-primary) !important;
    font-style: italic;
    padding: var(--space-md) 0;
    border-left: 4px solid var(--color-accent);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0 !important;
    background: linear-gradient(90deg, var(--color-accent-soft) 0%, transparent 100%);
}

/* Family illustration (reused from pattern section) */
.solution-visual .family-illustration {
    width: 280px;
    height: 280px;
}

/* ============================================
   LEGACY PATTERN SECTION (keep for other uses)
   ============================================ */
.pattern-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.pattern-section.reverse .pattern-image {
    order: 2;
}

.pattern-image {
    background: var(--color-bg-sage);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pattern-content {
    padding: var(--space-4xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-bg-main);
}

.pattern-content h2 {
    font-size: var(--text-h1);
    margin-bottom: var(--space-lg);
}

.pattern-content p {
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
}

/* Family Illustration */
.family-illustration {
    position: relative;
    width: 240px;
    height: 240px;
}

.family-hub {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-glow-md);
    animation: hub-pulse 3s ease-in-out infinite;
}

.family-hub::before {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes hub-pulse {
    0%,
    100% {
        box-shadow: var(--shadow-glow-md);
    }

    50% {
        box-shadow: var(--shadow-glow-lg);
    }
}

.family-orbit {
    position: absolute;
    border-radius: 50%;
    animation: orbit-float 4s ease-in-out infinite;
}

.family-orbit-1 {
    width: 44px;
    height: 44px;
    background: var(--color-bg-sage-deep);
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.family-orbit-2 {
    width: 38px;
    height: 38px;
    background: var(--color-bg-clay-deep);
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.family-orbit-3 {
    width: 42px;
    height: 42px;
    background: var(--color-bg-mist-deep);
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.family-orbit-4 {
    width: 36px;
    height: 36px;
    background: var(--color-bg-sage-deep);
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes orbit-float {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: translateX(-50%) scale(1.15);
        opacity: 1;
    }
}

.family-orbit-2,
.family-orbit-4 {
    animation-name: orbit-float-y;
}

@keyframes orbit-float-y {
    0%,
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-50%) scale(1.15);
        opacity: 1;
    }
}

.family-line {
    position: absolute;
    height: 3px;
    background: var(--color-primary);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: line-pulse 3s ease-in-out infinite;
}

.family-line-1 {
    width: 60px;
    transform: rotate(-90deg);
}

.family-line-2 {
    width: 55px;
    transform: rotate(0deg);
    animation-delay: 0.3s;
}

.family-line-3 {
    width: 60px;
    transform: rotate(90deg);
    animation-delay: 0.6s;
}

.family-line-4 {
    width: 55px;
    transform: rotate(180deg);
    animation-delay: 0.9s;
}

@keyframes line-pulse {
    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.4;
    }
}

.family-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: dot-twinkle 2s ease-in-out infinite;
}

.family-dot-1 {
    top: 32px;
    left: 65px;
}

.family-dot-2 {
    top: 65px;
    right: 32px;
    animation-delay: 0.3s;
}

.family-dot-3 {
    bottom: 35px;
    right: 65px;
    animation-delay: 0.6s;
}

.family-dot-4 {
    bottom: 65px;
    left: 35px;
    animation-delay: 0.9s;
}

@keyframes dot-twinkle {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-4xl) var(--space-lg) var(--space-2xl);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

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

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand .logo-image {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: var(--text-body);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--leading-relaxed);
    max-width: 280px;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: var(--text-body);
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--duration-normal) var(--ease-out);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-copyright {
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--duration-slower) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-slower) var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) {
    transition-delay: var(--stagger-1);
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(2) {
    transition-delay: var(--stagger-2);
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(3) {
    transition-delay: var(--stagger-3);
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(4) {
    transition-delay: var(--stagger-4);
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(5) {
    transition-delay: var(--stagger-5);
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(6) {
    transition-delay: var(--stagger-6);
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PLACEHOLDER IMAGES
   ============================================ */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--color-bg-sage) 0%,
        var(--color-bg-mist) 50%,
        var(--color-bg-clay) 100%
    );
}

/* ============================================
   SUBPAGE STYLES - Legal Pages
   ============================================ */
.legal-hero {
    background: linear-gradient(135deg, var(--color-bg-sage) 0%, var(--color-bg-mist) 100%);
    padding: var(--space-5xl) var(--space-lg) var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--color-accent-soft) 0%, transparent 60%);
    z-index: var(--z-below);
}

.legal-hero.clay {
    background: linear-gradient(135deg, var(--color-bg-clay) 0%, var(--color-bg-sage) 100%);
}

.legal-hero h1 {
    font-size: var(--text-display);
    margin-bottom: var(--space-md);
}

.legal-hero p {
    font-size: var(--text-body);
}

.legal-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.legal-content h2 {
    font-size: var(--text-h2);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: var(--text-h3);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-content p {
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
    margin: var(--space-md) 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-secondary);
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: var(--space-sm);
    line-height: var(--leading-relaxed);
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
    transition: all var(--duration-normal) var(--ease-out);
}

.legal-content a:hover {
    color: var(--color-accent);
}

.legal-card {
    background: var(--color-bg-clay);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.legal-card.sage {
    background: var(--color-bg-sage);
}

.legal-card h4 {
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.legal-card p {
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    font-size: var(--text-small);
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.back-link:hover {
    color: var(--color-accent);
    transform: translateX(-4px);
}

.back-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   SUBPAGE STYLES - Contact Page
   ============================================ */
.contact-hero {
    background: linear-gradient(135deg, var(--color-bg-mist) 0%, var(--color-bg-sage) 100%);
    padding: var(--space-5xl) var(--space-lg) var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--color-accent-soft) 0%, transparent 60%);
    z-index: var(--z-below);
}

.contact-hero h1 {
    font-size: var(--text-display);
    margin-bottom: var(--space-md);
}

.contact-hero p {
    font-size: var(--text-body-lg);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

.contact-section {
    padding: var(--space-3xl) var(--space-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

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

.contact-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease-out);
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Contact card color variants */
.contact-card.line {
    background: var(--color-line);
    color: white;
}

.contact-card.line .contact-card-title {
    color: white;
}

.contact-card.line .contact-card-text {
    color: rgba(255, 255, 255, 0.85);
}

.contact-card.line .contact-icon {
    background: rgba(255, 255, 255, 0.15);
}

.contact-card.line .contact-icon svg {
    color: white;
}

.contact-card.line .contact-card-link {
    background: white;
    color: var(--color-line);
}

.contact-card.line .contact-card-link:hover {
    background: rgba(255, 255, 255, 0.9);
}

.contact-card.facebook {
    background: var(--color-facebook);
    color: white;
}

.contact-card.facebook .contact-card-title {
    color: white;
}

.contact-card.facebook .contact-card-text {
    color: rgba(255, 255, 255, 0.85);
}

.contact-card.facebook .contact-icon {
    background: rgba(255, 255, 255, 0.15);
}

.contact-card.facebook .contact-icon svg {
    color: white;
}

.contact-card.facebook .contact-card-link {
    background: white;
    color: var(--color-facebook);
}

.contact-card.facebook .contact-card-link:hover {
    background: rgba(255, 255, 255, 0.9);
}

.contact-card.email {
    background: var(--color-email);
    color: white;
}

.contact-card.email .contact-card-title {
    color: white;
}

.contact-card.email .contact-card-text {
    color: rgba(255, 255, 255, 0.85);
}

.contact-card.email .contact-icon {
    background: rgba(255, 255, 255, 0.15);
}

.contact-card.email .contact-icon svg {
    color: white;
}

.contact-card.email .contact-card-link {
    background: white;
    color: var(--color-email);
}

.contact-card.email .contact-card-link:hover {
    background: rgba(255, 255, 255, 0.9);
}

.contact-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--color-bg-sage);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

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

.contact-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.contact-card-text {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    font-size: var(--text-small);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-clay);
    border-radius: var(--radius-pill);
    color: var(--color-primary);
    transition: all var(--duration-normal) var(--ease-out);
}

.contact-card-link:hover {
    background: var(--color-accent);
    transform: translateX(4px);
}

.contact-card-link svg {
    width: 16px;
    height: 16px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-bg-clay);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.contact-form-wrapper h2 {
    font-size: var(--text-h2);
    margin-bottom: var(--space-xs);
}

.contact-form-wrapper > p {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

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

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

.form-group label {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    background: white;
    font-family: inherit;
    font-size: var(--text-body);
    color: var(--color-primary);
    transition: all var(--duration-normal) var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-submit {
    margin-top: var(--space-xs);
}

.form-submit .btn {
    width: 100%;
}

/* FAQ Section */
.faq-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--color-bg-sage);
}

.faq-container {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.faq-header h2 {
    font-size: var(--text-h1);
    margin-bottom: var(--space-sm);
}

.faq-header p {
    font-size: var(--text-body);
}

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

.faq-item {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.faq-question::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--color-accent);
    border-radius: var(--radius-xs);
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 700;
    color: var(--color-primary);
}

.faq-answer {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    padding-left: 40px;
}

.faq-answer a {
    color: var(--color-facebook);
    font-weight: 600;
    background: rgba(24, 119, 242, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
}

.faq-answer a:hover {
    background: var(--color-facebook);
    color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-illustration {
        max-width: 400px;
    }

    .hero-floating-card {
        display: none;
    }

    .split-section,
    .pattern-section {
        grid-template-columns: 1fr;
    }

    .split-content,
    .pattern-content {
        padding: var(--space-2xl);
    }

    .split-image,
    .pattern-image {
        min-height: 350px;
    }

    .pattern-section.reverse .pattern-image {
        order: 0;
    }

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

    .bento-card.featured {
        grid-column: span 2;
    }

    .bento-card.tall {
        grid-row: span 1;
    }

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

    .social-cards-container {
        flex-direction: row;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none !important;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-main);
        padding: var(--space-lg);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
        animation: slideDown var(--duration-normal) var(--ease-out);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        height: 72px;
    }

    .nav-wrapper.scrolled .nav-container {
        height: 64px;
    }

    .logo-image {
        height: 44px;
    }

    .nav-wrapper.scrolled .logo-image {
        height: 36px;
    }

    .nav-actions .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-xs);
    }

    /* Announcement Bar */
    .announcement-bar {
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-md);
    }

    /* Hero */
    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-illustration {
        max-width: 280px;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .bento-card.featured .bento-image {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        min-height: 200px;
    }

    .bento-card {
        padding: var(--space-xl);
    }

    /* Fingerprint Neural Map - Mobile */
    .fingerprint-neural-map {
        width: 180px;
        height: 180px;
    }

    .fp-node {
        width: 12px;
        height: 12px;
    }

    .fp-core-center {
        width: 18px;
        height: 18px;
    }

    .fp-core-ring {
        width: 34px;
        height: 34px;
    }

    .fp-core-glow {
        width: 60px;
        height: 60px;
    }

    /* Hide some particles on mobile for performance */
    .fp-particle:nth-child(n + 5) {
        display: none;
    }

    /* ==========================================
       KITS JOURNEY SCROLLER - Mobile Layout
       Redesigned: Timeline ABOVE cards, always visible
       Compact cards that show peek of next
       ========================================== */
    .kits-section {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .kits-section .container {
        max-width: 100%;
        padding: 0;
    }

    .kits-section .section-header {
        padding: 0 var(--space-lg);
        margin-bottom: var(--space-lg);
    }

    .kits-journey-wrapper {
        position: relative;
    }

    /* ===== JOURNEY TIMELINE - ALWAYS VISIBLE ABOVE CARDS ===== */
    .journey-progress {
        display: block;
        padding: 0 var(--space-lg) var(--space-lg);
        position: relative;
        background: var(--color-bg-sage);
    }

    .journey-progress-track {
        position: relative;
        height: 4px;
        background: rgba(26, 43, 76, 0.12);
        border-radius: 2px;
        margin-bottom: var(--space-sm);
    }

    .journey-progress-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, var(--color-accent), var(--color-brick));
        border-radius: 2px;
        transition: width var(--duration-slow) var(--ease-out);
    }

    .journey-progress-dots {
        display: flex;
        justify-content: space-between;
        position: relative;
        margin-top: -12px;
    }

    .journey-dot {
        position: relative;
        width: 20px;
        height: 20px;
        background: white;
        border: 2px solid var(--color-border-medium);
        border-radius: 50%;
        cursor: pointer;
        transition: all var(--duration-normal) var(--ease-out);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .journey-dot::before {
        content: "";
        width: 6px;
        height: 6px;
        background: var(--color-text-tertiary);
        border-radius: 50%;
        transition: all var(--duration-normal) var(--ease-out);
    }

    .journey-dot:hover {
        border-color: var(--color-accent);
        transform: scale(1.1);
    }

    .journey-dot:hover::before {
        background: var(--color-accent);
    }

    .journey-dot.active {
        border-color: var(--color-accent);
        background: var(--color-accent);
        box-shadow: 0 0 0 3px var(--color-accent-soft);
        transform: scale(1.2);
    }

    .journey-dot.active::before {
        background: white;
    }

    .journey-dot.passed {
        border-color: var(--color-accent);
        background: var(--color-accent);
    }

    .journey-dot.passed::before {
        background: white;
    }

    .journey-dot-label {
        position: absolute;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 9px;
        font-weight: 700;
        color: var(--color-text-tertiary);
        white-space: nowrap;
        transition: color var(--duration-normal) var(--ease-out);
    }

    .journey-dot.active .journey-dot-label {
        color: var(--color-primary);
    }

    .journey-dot.passed .journey-dot-label {
        color: var(--color-text-secondary);
    }

    /* Current kit indicator text */
    .journey-hint {
        display: block;
        text-align: center;
        font-size: var(--text-xs);
        font-weight: 600;
        color: var(--color-primary);
        margin-top: var(--space-xl);
        padding-top: var(--space-xs);
    }

    .journey-hint .current-kit-name {
        color: var(--color-accent-dark);
    }

    /* ===== HORIZONTAL SCROLL CONTAINER ===== */
    .kits-grid {
        display: flex !important;
        gap: var(--space-md);
        padding: var(--space-sm) var(--space-md);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: relative;
    }

    .kits-grid::-webkit-scrollbar {
        display: none;
    }

    /* ===== COMPACT KIT CARDS ===== */
    /* Card takes ~72% of viewport width so next card peeks */
    .kits-grid .kit-card {
        flex: 0 0 72vw;
        max-width: 300px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        position: relative;
    }

    /* First card offset for centering */
    .kits-grid .kit-card:first-child {
        margin-left: calc((100vw - 72vw) / 2 - var(--space-md));
    }

    /* Last card offset */
    .kits-grid .kit-card:last-child {
        margin-right: calc((100vw - 72vw) / 2 - var(--space-md));
    }

    /* Make kit image square and smaller */
    .kits-grid .kit-image {
        aspect-ratio: 1/1;
        padding: var(--space-sm);
    }

    /* Compact content area */
    .kits-grid .kit-content {
        padding: var(--space-md);
    }

    .kits-grid .kit-card h3 {
        font-size: 1.1rem;
        margin-bottom: var(--space-xs);
    }

    .kits-grid .kit-tagline {
        font-size: var(--text-xs);
        margin-bottom: var(--space-xs);
        /* Smaller padding on mobile */
        padding: 3px var(--space-sm);
        border-left-width: 2px;
    }

    /* Hide full description on mobile - show truncated */
    .kits-grid .kit-card > .kit-content > p:not(.kit-tagline) {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: var(--text-xs);
        line-height: 1.5;
        margin-bottom: var(--space-sm);
    }

    .kits-grid .kit-meta {
        padding-top: var(--space-sm);
        gap: var(--space-xs);
    }

    .kits-grid .kit-age {
        font-size: var(--text-xs);
    }

    .kits-grid .interest-tag {
        font-size: 10px;
        padding: 2px var(--space-xs);
    }

    /* Visual indicator: current card has subtle glow */
    .kits-grid .kit-card.active {
        box-shadow:
            var(--shadow-lg),
            0 0 0 2px var(--color-accent);
    }

    /* Inactive cards slightly faded */
    .kits-grid .kit-card:not(.active) {
        opacity: 0.7;
        transform: scale(0.97);
        transition: all var(--duration-normal) var(--ease-out);
    }

    .kits-grid .kit-card:not(.active):hover {
        opacity: 0.85;
    }

    /* Community */
    .community-card {
        padding: var(--space-xl);
    }

    .newsletter-form .form-row {
        flex-direction: column;
    }

    .social-cards-container {
        flex-direction: column;
    }

    /* Split Sections */
    .split-content,
    .pattern-content {
        padding: var(--space-2xl) var(--space-lg);
    }

    .split-image,
    .pattern-image {
        min-height: 280px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: var(--space-2xl);
    }

    /* Kits Content Adjustments */
    .kit-content {
        padding: var(--space-lg);
    }

    .kit-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    /* Problem Section - Mobile */
    .problem-section {
        padding: var(--space-3xl) 0;
    }

    .problem-header {
        margin-bottom: var(--space-xl);
    }

    .problem-header h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .voice-card {
        width: 280px;
        padding: var(--space-lg);
    }

    .voice-quote {
        font-size: var(--text-xs);
    }

    .voices-track {
        animation-duration: 40s;
    }

    .problem-transition {
        padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    }

    .transition-text {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    /* Solution Section - Mobile */
    .solution-section {
        padding: var(--space-3xl) var(--space-md);
    }

    .solution-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .solution-visual {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }

    .solution-visual .family-illustration {
        width: 200px;
        height: 200px;
    }

    .solution-text {
        text-align: center;
        padding: 0;
    }

    .solution-highlight {
        text-align: left;
        font-size: var(--text-body);
    }

    /* Footer */
    .footer {
        padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-form-wrapper {
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--space-md);
    }

    .hero-container {
        padding: var(--space-xl) var(--space-md);
    }

    .bento-section,
    .kits-section,
    .testimonials-section,
    .community-section {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .bento-card,
    .community-card {
        padding: var(--space-lg);
    }

    .bento-icon,
    .community-icon {
        width: 52px;
        height: 52px;
    }

    .bento-icon svg,
    .community-icon svg {
        width: 26px;
        height: 26px;
    }

    .split-content,
    .pattern-content {
        padding: var(--space-xl) var(--space-md);
    }

    .footer {
        padding: var(--space-xl) var(--space-md) var(--space-md);
    }

    .contact-form-wrapper {
        padding: var(--space-xl);
    }
}
