@font-face {
    font-family: 'AxiomLogoFont';
    src: url('axiom_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #050507;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-glow: #6366f1;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-logo: 'AxiomLogoFont', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-switch {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: default;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-opt {
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-opt:hover {
    color: var(--text-primary);
}

.lang-opt.active {
    color: var(--text-primary);
    font-weight: 700;
}

.divider {
    opacity: 0.3;
}

/* --- Advanced Background --- */
.background-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
    /* Fallback */
}

/* The Canvas will inject here. We just need to make sure it's positioned right */
.background-texture canvas {
    display: block;
    opacity: 0.6;
    /* Subtle blend */
}

.ambient-light {
    display: none;
    /* Replaced by Canvas */
}

.overlay-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('assets/noise.png');
    /* If available, else optional */
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.logo {
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(90deg, #fff, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 99px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-cta:hover {
    background: var(--primary-glow);
    box-shadow: 0 0 25px var(--primary-glow);
    border-color: transparent;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
    perspective: 2000px;
    /* Enhanced 3D */
    z-index: 1;
    /* Ensure hero is above background */
}

.spotlight-beam {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 120vh;
    background: radial-gradient(circle at 50% -20%,
            rgba(99, 102, 241, 0.5) 0%,
            /* Indigo Core */
            rgba(79, 70, 229, 0.2) 30%,
            /* Deep Indigo */
            rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    /* Extremely soft ambient glow */
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    /* Light additive blending */
}

/* Add a second "Beam" layer for directional emphasis */
.spotlight-beam::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 100%;
    background: conic-gradient(from 180deg at 50% -100px,
            transparent 165deg,
            rgba(129, 140, 248, 0.25) 180deg,
            /* Light Indigo Beam */
            transparent 195deg);
    filter: blur(50px);
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #c7d2fe;
    border: 1px solid rgba(199, 210, 254, 0.2);
    background: rgba(99, 102, 241, 0.15);
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
    animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    /* Responsive Giant Text */
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;

    /* Liquid Metal Text Effect - Smoother Version */
    background-image: linear-gradient(135deg,
            #ffffff 0%,
            #ffffff 40%,
            #a5b4fc 50%,
            #ffffff 60%,
            #ffffff 100%);
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: shine 8s ease-in-out infinite;
}

@keyframes shine {

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

    50% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 48px;
    font-weight: 400;
}

.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #fff;
    color: #000;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.app-store-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* --- 3D iPhone - The Masterpiece --- */
.hero-visual {
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.iphone-mockup {
    width: 340px;
    height: 700px;
    background: #000;
    border-radius: 56px;
    /* High fidelity metallic bezel */
    box-shadow:
        inset 0 0 0 4px #444,
        /* Inner bezel */
        inset 0 0 0 8px #000,
        /* Screen gap */
        0 0 0 6px #2a2a2a,
        /* Outer frame */
        0 40px 100px -20px rgba(0, 0, 0, 0.8),
        /* Shadow */
        0 0 120px -30px rgba(99, 102, 241, 0.5);
    /* The Indigo Halo */
    position: relative;
    overflow: hidden;
    /* Initial state for JS tilt */
    transform: rotateX(10deg);
    transition: transform 0.1s ease-out;
    /* Smooth JS follow */
}

.screen-content {
    width: 100%;
    height: 100%;
    background: #000;
    /* The Screen is deeply immersive */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* The Liquid Orb inside the phone */
.fluid-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: conic-gradient(from 0deg, #6366f1, #8b5cf6, #00f0ff, #6366f1);
    filter: blur(60px);
    opacity: 0.6;
    animation: orb-spin 8s linear infinite;
}

@keyframes orb-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.liquid-card {
    width: 85%;
    padding: 40px 30px;
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    /* Safari */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    /* Top highlight */
    border-radius: 32px;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.word {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #c7d2fe);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.phonetic {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-glow);
    margin-bottom: 20px;
    display: block;
    opacity: 0.8;
}

.definition {
    color: #e0e0e0;
    font-weight: 500;
    line-height: 1.6;
}

/* --- Features Bento Grid - Spotlight Edition --- */
.features {
    padding: 160px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

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

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    /* Important for spotlight */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Spotlight Setup */
    --mouse-x: -100px;
    --mouse-y: -100px;
}

/* The Spotlight Glow Layer */
.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

/* Border Glow Triggered by JS Mouse Position - Refined Mask */
.bento-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    padding: 1.5px;
    /* Slightly thicker for visibility */
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.4),
            transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
    /* Soften the border intensity */
    transition: opacity 0.5s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
}

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

/* Layout helpers */
.card-large {
    grid-column: span 2;
}

.card-wide {
    grid-column: span 3;
}

.card-content {
    position: relative;
    z-index: 5;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 90%;
}

/* Visuals inside cards */
.card-visual {
    z-index: 3;
}

/* Enhanced Wave Animation */
.visual-audio {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 60px;
}

.wave-bar {
    width: 6px;
    background: linear-gradient(to top, var(--primary-glow), var(--electric-blue));
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Code Snippet */
.visual-code {
    background: rgba(0, 0, 0, 0.3);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.visual-code code {
    color: #a5b4fc;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--card-border);
    padding: 80px 40px;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 15, 0.8));
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* --- Science Section (Deep Dive) --- */
.science {
    padding: 160px 40px;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
    position: relative;
}

.science-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.science-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.science-visual {
    position: relative;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 70%);
    border-radius: 32px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}

/* Abstract Graph Animation */
.graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: var(--primary-glow);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawGraph 4s ease-out forwards;
}

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

.factor-list {
    margin-top: 40px;
    display: grid;
    gap: 24px;
}

.factor-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.factor-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-glow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* --- Ecosystem Section --- */
.ecosystem {
    padding: 160px 40px;
    text-align: center;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.eco-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 24px;
    text-align: left;
    transition: transform 0.3s ease;
}

.eco-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
}

.eco-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--electric-blue);
}

/* --- Investment (Pricing) --- */
.investment {
    padding: 160px 40px;
    background: #000;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 60px auto 0;
}

.price-card {
    background: #111;
    border: 1px solid #222;
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border-color: var(--primary-glow);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.price-tier {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.iphone-mockup .word {
    font-family: var(--font-logo);
    /* Decorative font as requested */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.price-period {
    font-size: 0.9rem;
    color: #666;
}

.feature-list {
    margin: 32px 0;
    list-style: none;
}

.feature-list li {
    margin-bottom: 12px;
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary-glow);
}

/* --- Roadmap --- */
.roadmap {
    padding: 160px 40px;
    border-bottom: 1px solid var(--card-border);
}

.timeline {
    max-width: 800px;
    margin: 80px auto 0;
    position: relative;
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -45px;
    top: 0;
    width: 9px;
    height: 9px;
    background: var(--electric-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--electric-blue);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-glow);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}

/* Responsive Updates */
@media (max-width: 960px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-large,
    .card-wide {
        grid-column: span 1;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .spotlight-beam {
        display: none;
    }

    .science-container,
    .ecosystem-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Methodology (Tri-State) --- */
.methodology {
    padding: 140px 40px;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05), transparent 60%);
    text-align: center;
}

.tri-state-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.state-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 20px;
    width: 300px;
    position: relative;
    transition: all 0.3s ease;
}

.state-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.factor-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.factor-item.active {
    opacity: 1;
}

.factor-item.active .factor-icon {
    background: var(--primary-glow) !important;
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary-glow) !important;
}

.factor-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* --- Design Stratum (Visual Architecture) --- */
.design-stratum {
    padding: 160px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.stratum-visual {
    position: relative;
    width: 400px;
    height: 500px;
    perspective: 1000px;
}

.layer {
    position: absolute;
    width: 100%;
    height: 280px;
    top: 100px;
    /* Center it */
    /* Overlapping cards */
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

.layer.active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    z-index: 100 !important;
    top: 60px !important;
    /* Force center alignment */
    pointer-events: auto;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(30px);
    /* Make it opaque to hide layers behind */
}

/* --- Visual: Celebration --- */
.visual-celebration {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.celebration-star {
    font-size: 4rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    animation: pulse-star 2s infinite ease-in-out;
}

@keyframes pulse-star {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

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

/* --- Visual: Focus --- */
.visual-focus {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.focus-text {
    font-family: var(--font-logo);
    /* Use stylish logo font */
    font-size: 2rem;
    color: white;
    letter-spacing: -0.02em;
    filter: blur(0px);
    animation: focus-in 1.5s ease-out forwards;
}

@keyframes focus-in {
    0% {
        filter: blur(10px);
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        filter: blur(0px);
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Visual: Speed --- */
.visual-speed {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 16px;
}

.speed-bar {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.speed-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #6366f1;
    transform: translateX(-100%);
    animation: dash 1.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.speed-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #6366f1;
}

@keyframes dash {
    0% {
        transform: translateX(-100%);
    }

    50%,
    100% {
        transform: translateX(0%);
    }
}

.layer:nth-child(1) {
    top: 0;
    transform: translateZ(-100px) translateY(0);
    opacity: 0.5;
    z-index: 1;
}

/* Mechanical */
.layer:nth-child(2) {
    top: 60px;
    transform: translateZ(-50px) translateY(20px);
    opacity: 0.8;
    z-index: 2;
}

/* Instrument */
.layer:nth-child(3) {
    top: 120px;
    transform: translateZ(0) translateY(40px);
    z-index: 3;
    border-color: var(--primary-glow);
}

/* Ritual */

.stratum-visual:hover .layer:nth-child(1) {
    transform: translateZ(-100px) translateY(-40px);
}

.stratum-visual:hover .layer:nth-child(2) {
    transform: translateZ(-50px) translateY(0px);
}

.stratum-visual:hover .layer:nth-child(3) {
    transform: translateZ(0) translateY(40px);
}


/* --- Persona (Witty Researcher) --- */
.persona {
    padding: 120px 40px;
    text-align: center;
    background: linear-gradient(0deg, transparent, rgba(99, 102, 241, 0.02));
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.08);
    /* Distinct from cards */
    display: inline-block;
    padding: 24px 40px;
    border-radius: 32px;
    border-bottom-left-radius: 4px;
    /* Callout shape */
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 700px;
    position: relative;
    margin-top: 40px;
}

.chat-bubble::before {
    content: "AXIOM System";
    position: absolute;
    top: -24px;
    left: 0;
    font-size: 0.8rem;
    color: var(--primary-glow);
    font-family: 'JetBrains Mono', monospace;
}

/* --- Philosophy Section --- */
.philosophy {
    padding: 160px 40px;
    background: #000;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-content h2 {
    font-size: 3rem;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.philosophy-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.signature {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive */
@media (max-width: 960px) {
    .design-stratum {
        flex-direction: column;
    }

    .stratum-visual {
        width: 100%;
        height: 400px;
    }

    .tri-state-container {
        flex-direction: column;
        align-items: center;
    }
}

.apple-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* --- Apple-Style Language Selector --- */
.language-selector {
    position: relative;
    z-index: 1000;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 12px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-option.selected {
    color: white;
    background: rgba(99, 102, 241, 0.2);
}

.lang-option.selected::after {
    content: '✓';
    font-size: 12px;
    color: var(--primary-glow);
}