/* Alcymi Brand Landing Page — "The Living Page" Dark Theme */
/* Immersive particle canvas + scroll-driven color morphing */

/* Font Face Definitions */
@font-face {
    font-family: 'Attila Sans Sharp';
    src: url('/static/fonts/AttilaSansSharp-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Attila Sans Sharp';
    src: url('/static/fonts/AttilaSansSharp-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* === Dark Theme Palette === */
    --bg-deep: #07070c;
    --bg-section: #0c0c14;
    --bg-card: rgba(18, 18, 28, 0.7);
    --bg-card-hover: rgba(24, 24, 38, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Living colors */
    --life-green: #4ade80;
    --life-green-dim: rgba(74, 222, 128, 0.15);
    --life-green-glow: rgba(74, 222, 128, 0.25);
    --warmth-gold: #d4a853;
    --warmth-gold-dim: rgba(212, 168, 83, 0.15);
    --warmth-gold-glow: rgba(212, 168, 83, 0.25);
    --soul-violet: #8b5cf6;
    --soul-violet-dim: rgba(139, 92, 246, 0.15);

    /* Text */
    --text-primary: #f0efe8;
    --text-secondary: rgba(240, 239, 232, 0.65);
    --text-muted: rgba(240, 239, 232, 0.4);

    /* Semantic */
    --success: var(--life-green);
    --error: #ef4444;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    --space-4xl: 8rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s ease;
    --transition-slow: 0.6s ease;

    /* Shadows */
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);

    /* Dynamic glow color (set by ScrollChoreographer JS) */
    --current-glow-color: rgba(74, 222, 128, 0.15);
    --current-glow-strong: rgba(74, 222, 128, 0.3);
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
}

/* ================================================
   PARTICLE CANVAS
   ================================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* All content sits above the canvas */
.nav, .hero, .problem-section, .shift-section,
.philosophy-section, .how-section, .category-section,
.cta-section, .footer, .mobile-menu,
.email-modal-overlay {
    position: relative;
    z-index: 1;
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.6vw 0;
    transition: all var(--transition-base);
    background: rgba(7, 7, 12, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav.scrolled {
    background: rgba(7, 7, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-md) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
}

/* Logo Icon — SVG image */
.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-icon.small {
    width: 28px;
    height: 28px;
}

.logo-wordmark {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.logo-wordmark.small {
    height: 16px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--life-green);
}

.nav-cta {
    background: var(--life-green);
    color: var(--bg-deep);
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: #5eea96;
    transform: translateY(-1px);
}

/* Mobile Navigation */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

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

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(12, 12, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-xl);
    flex-direction: column;
    gap: var(--space-lg);
    z-index: 999;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-medium);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link, .mobile-cta {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: var(--space-sm) 0;
}

.mobile-cta {
    background: var(--life-green);
    color: var(--bg-deep);
    text-align: center;
    padding: var(--space-md);
    border-radius: 6px;
    margin-top: var(--space-md);
    font-weight: 600;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 140px var(--space-xl) 80px;
    overflow: hidden;
    background: transparent;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
}

/* WebGL Mesh Gradient — Hero */
.hero-mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
    --gradient-color-1: #4ade80;
    --gradient-color-2: #0a3d1f;
    --gradient-color-3: #d4a853;
    --gradient-color-4: #0c1a10;
}

/* WebGL Mesh Gradient — Category */
.category-mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.45;
    --gradient-color-1: #4ade80;
    --gradient-color-2: #d4a853;
    --gradient-color-3: #8b5cf6;
    --gradient-color-4: #0c0c14;
}

/* Organic shape container — shapes now replaced by canvas, but keep for structure */
.hero-organic {
    display: none;
}

.organic-shape {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 400;
    margin-bottom: var(--space-2xl);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--life-green), var(--warmth-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.9;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* "Life Design for Aliveness" highlight */
.highlight-category {
    color: var(--warmth-gold);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.12), rgba(74, 222, 128, 0.08));
    padding: 0.1em 0.5em;
    border-radius: 4px;
    border-bottom: 2px solid var(--warmth-gold);
    white-space: nowrap;
}

.hero-ctas {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--text-primary);
    color: var(--bg-deep);
    padding: 1rem 2.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
}

.cta-primary:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.cta-primary.large {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

/* === CTA Button Glow (for final CTA section) === */
.cta-section .cta-primary {
    background: linear-gradient(135deg, var(--warmth-gold), #e8a030);
    color: var(--bg-deep);
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.3), 0 0 60px rgba(212, 168, 83, 0.1);
    animation: cta-glow-pulse 3s ease-in-out infinite;
}

.cta-section .cta-primary:hover {
    background: linear-gradient(135deg, #e0b860, #f0b040);
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(212, 168, 83, 0.5), 0 0 80px rgba(212, 168, 83, 0.2);
}

@keyframes cta-glow-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(212, 168, 83, 0.3), 0 0 60px rgba(212, 168, 83, 0.1); }
    50% { box-shadow: 0 0 40px rgba(212, 168, 83, 0.45), 0 0 80px rgba(212, 168, 83, 0.15); }
}

/* ================================================
   iPHONE MOCKUP
   ================================================ */
/* ================================================
   HERO ORB — heartbeat pulsing center piece
   ================================================ */
.hero-orb-display {
    display: none;
}

.hero-phone {
    display: none;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Phone radial glow */
.hero-phone::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--current-glow-color) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: phone-glow-pulse 4s ease-in-out infinite;
}

@keyframes phone-glow-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.iphone-frame {
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 45px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.iphone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f0f18 0%, #161622 100%);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px 15px;
}

.app-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.header-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
}

/* Wisdom Card in App */
.wisdom-card {
    margin: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(139, 92, 246, 0.08));
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(74, 222, 128, 0.15);
}

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

.card-symbol {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.card-insight {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Entity Orb in Phone */
.entity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    position: relative;
}

.entity-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--life-green-dim) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.entity-pulse {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(74, 222, 128, 0.3);
    animation: pulse-ring 4s ease-out infinite;
}

.pulse-1 {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.pulse-2 {
    width: 100px;
    height: 100px;
    animation-delay: 1.5s;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

.entity-orb {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.entity-orb::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    clip-path: polygon(50% 0%, 100% 100%, 85% 100%, 50% 25%, 15% 100%, 0% 100%);
}

.entity-orb::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: #0f0f18;
    border-radius: 50%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.entity-inner {
    display: none;
}

/* Action Buttons */
.action-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.action-record {
    background: var(--life-green);
    color: var(--bg-deep);
}

.action-mood {
    background: var(--warmth-gold);
    color: var(--bg-deep);
}

.action-chat {
    background: var(--soul-violet);
    color: white;
}

.action-listen {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* ================================================
   SECTION HEADERS (shared)
   ================================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-lg);
    padding: 0.4rem 1.4rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

/* Per-section label colors */
.problem-section .section-label {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
}

.shift-section .section-label {
    color: var(--warmth-gold);
    border-color: rgba(212, 168, 83, 0.3);
    background: rgba(212, 168, 83, 0.08);
}

.philosophy-section .section-label {
    color: var(--soul-violet);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
}

.how-section .section-label {
    color: var(--life-green);
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.08);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ================================================
   WORD-BY-WORD REVEAL
   ================================================ */
.word-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-right: 0.25em;
}

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

/* Keep gradient on revealed words */
.word-reveal .gradient-word {
    background: linear-gradient(135deg, var(--life-green), var(--warmth-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================================================
   PROBLEM SECTION
   ================================================ */
.problem-section {
    padding: var(--space-4xl) 0;
    background: transparent;
    position: relative;
}

/* Subtle red-tinted background to signal "pain point" */
.problem-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 113, 113, 0.03) 30%, rgba(248, 113, 113, 0.05) 50%, rgba(248, 113, 113, 0.03) 70%, transparent 100%);
    pointer-events: none;
}

/* Metrics Ticker — scrolling health device readouts */
.metrics-ticker {
    width: 100%;
    overflow: hidden;
    margin-bottom: var(--space-3xl);
    padding: var(--space-lg) 0;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.problem-section.in-view .metrics-ticker {
    opacity: 1;
}

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

.metrics-ticker:hover .metrics-ticker-track {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.ticker-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

/* Icon variations */
.ticker-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticker-icon--rings svg {
    width: 40px;
    height: 40px;
}

.ticker-icon--score {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: -0.02em;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.ticker-icon--score small {
    font-size: 0.6em;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 1px;
}

.ticker-icon--green { color: #4ade80; }
.ticker-icon--teal { color: #2dd4bf; }
.ticker-icon--blue { color: #60a5fa; }
.ticker-icon--amber { color: #fbbf24; }
.ticker-icon--red { color: #f87171; }
.ticker-icon--violet { color: #a78bfa; }

.ticker-icon--mini-chart svg,
.ticker-icon--pulse svg {
    width: 40px;
    height: 20px;
}

/* Data column */
.ticker-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.ticker-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.ticker-value small {
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.6;
    margin-left: 2px;
}

.ticker-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.problem-prose {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-prose.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-prose p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ================================================
   SHIFT SECTION
   ================================================ */
.shift-section {
    padding: var(--space-4xl) 0;
    background: transparent;
    position: relative;
}

/* Dawn Line — removed per feedback */
.dawn-line {
    display: none;
}

/* Shift Gallery — stock images of people feeling alive */
.shift-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.shift-section.in-view .shift-gallery {
    opacity: 1;
    transform: translateY(0);
}

.shift-image {
    width: 220px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 168, 83, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.shift-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 168, 83, 0.1);
}

.shift-image.featured {
    width: 240px;
    height: 320px;
}

.shift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Warm golden tint overlay */
.shift-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 7, 12, 0.5) 100%);
    pointer-events: none;
}

/* Fallback gradient if image fails to load */
.shift-image img[src]::before {
    content: '';
    position: absolute;
    inset: 0;
}

.shift-prose {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    z-index: 1;
}

.shift-prose.visible {
    opacity: 1;
    transform: translateY(0);
}

.shift-prose p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ================================================
   PHILOSOPHY / "WHAT ALCYMI IS" SECTION
   ================================================ */
.philosophy-section {
    padding: var(--space-4xl) 0;
    background: transparent;
    position: relative;
}

/* Prominent background glow for "What Alcymi Is" */
.philosophy-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.04) 30%, rgba(139, 92, 246, 0.06) 50%, rgba(139, 92, 246, 0.04) 70%, transparent 100%);
    pointer-events: none;
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    align-items: center;
}

.philosophy-prose {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.philosophy-prose.visible {
    opacity: 1;
    transform: translateX(0);
}

.philosophy-prose p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: center;
    max-width: 720px;
}

/* Embossed tile feel for What Alcymi Is section header */
.philosophy-section .section-header {
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 16px;
    padding: var(--space-2xl) var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.philosophy-section .section-title {
    color: var(--text-primary);
}

/* Philosophy Orb GIF — centered after section heading */
.philosophy-orb-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.philosophy-orb-gif {
    width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 16px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Philosophy Visual — removed orb, replaced with pillar grid */
.philosophy-visual { display: none; }
.visual-orb, .visual-orbit { display: none; }

/* Philosophy Pillars — 2x2 image grid */
.philosophy-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    width: 100%;
    max-width: 640px;
}

.pillar-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* Fallback gradient if image doesn't load */
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(74, 222, 128, 0.1));
}

.pillar-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.12);
}

.pillar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pillar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 7, 12, 0.1) 0%, rgba(7, 7, 12, 0.65) 100%);
    pointer-events: none;
}

.pillar-label {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Distinct accent color per pillar */
.pillar-card:nth-child(1) { border-color: rgba(74, 222, 128, 0.2); }
.pillar-card:nth-child(1) .pillar-label { color: var(--life-green); }
.pillar-card:nth-child(2) { border-color: rgba(139, 92, 246, 0.2); }
.pillar-card:nth-child(2) .pillar-label { color: var(--soul-violet); }
.pillar-card:nth-child(3) { border-color: rgba(212, 168, 83, 0.2); }
.pillar-card:nth-child(3) .pillar-label { color: var(--warmth-gold); }
.pillar-card:nth-child(4) { border-color: rgba(74, 222, 128, 0.2); }
.pillar-card:nth-child(4) .pillar-label { color: var(--life-green); }

@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-item {
    position: absolute;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    animation: counter-rotate 30s linear infinite;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.orbit-body {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--life-green);
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.08);
}

.orbit-mind {
    bottom: 30px;
    left: -20px;
    color: var(--soul-violet);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.08);
}

.orbit-spirit {
    bottom: 30px;
    right: -20px;
    color: var(--warmth-gold);
    border-color: rgba(212, 168, 83, 0.3);
    box-shadow: 0 0 15px rgba(212, 168, 83, 0.08);
}

/* ================================================
   HOW IT WORKS — GLASSMORPHIC CARDS
   ================================================ */
.how-section {
    padding: var(--space-4xl) 0;
    background: transparent;
}

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

.how-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* 3D tilt setup */
    transform-style: preserve-3d;
    perspective: 800px;
}

.how-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance */
.how-card:nth-child(1) { transition-delay: 0ms; }
.how-card:nth-child(2) { transition-delay: 150ms; }
.how-card:nth-child(3) { transition-delay: 300ms; }
.how-card:nth-child(4) { transition-delay: 450ms; }

.how-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Gradient border glow on hover */
.how-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(139, 92, 246, 0.1), rgba(212, 168, 83, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.how-visual {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.how-content {
    padding: var(--space-xl);
}

.how-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.how-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Rhythm List */
.rhythm-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-md);
}

.rhythm-list li {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1.2em;
    position: relative;
    font-style: italic;
}

.rhythm-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--life-green);
    font-style: normal;
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1.4;
}

/* Voice Visual — recolored green */
.voice-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--life-green);
    z-index: 2;
    box-shadow: 0 0 20px var(--life-green-dim);
}

.voice-wave {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(74, 222, 128, 0.3);
    animation: voice-pulse 3s ease-out infinite;
}

.wave-1 { width: 80px; height: 80px; animation-delay: 0s; }
.wave-2 { width: 100px; height: 100px; animation-delay: 0.4s; }
.wave-3 { width: 120px; height: 120px; animation-delay: 0.8s; }

@keyframes voice-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Connect Visual — recolored gold */
.connect-visual {
    position: relative;
    width: 120px;
    height: 120px;
}

.connect-node {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--warmth-gold);
}

.node-center {
    width: 32px;
    height: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--warmth-gold-dim);
}

.node-1 { top: 10px; left: 50%; transform: translateX(-50%); background: rgba(212, 168, 83, 0.5); }
.node-2 { bottom: 10px; right: 10px; background: rgba(212, 168, 83, 0.5); }

.connect-line {
    position: absolute;
    height: 2px;
    background: rgba(212, 168, 83, 0.2);
}

.line-1 {
    width: 40px;
    top: 35px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

.line-2 {
    width: 50px;
    bottom: 35px;
    right: 20px;
    transform: rotate(45deg);
}

/* Insight Visual — recolored violet */
.insight-visual {
    position: relative;
}

.insight-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--soul-violet-dim) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.insight-icon {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--soul-violet);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--soul-violet-dim);
}

.insight-icon svg {
    stroke: white;
}

/* ================================================
   CATEGORY STATEMENT — THE CENTERPIECE
   ================================================ */
.category-section {
    padding: var(--space-4xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    border: none;
    overflow: hidden;
}

/* Large soft radial gradient behind text */
.category-section::before {
    content: '';
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, rgba(212, 168, 83, 0.04) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.category-content {
    text-align: center;
    padding: var(--space-3xl) 0;
    position: relative;
}

.category-name {
    margin-bottom: var(--space-lg);
    line-height: 1;
}

.category-wordmark {
    height: clamp(5rem, 12vw, 10rem);
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@keyframes shimmer-sweep {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.category-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--warmth-gold);
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 1.5s ease 0.5s;
}

.category-section.in-view .category-subtitle,
.footer-category.in-view .category-subtitle {
    opacity: 1;
}

/* ================================================
   ABOUT US SECTION
   ================================================ */
.about-section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: 1100px;
    margin: 0 auto;
}

.about-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-card:nth-child(2) {
    transition-delay: 0.15s;
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.about-card:hover .about-photo {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

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

.about-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.about-bio p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
    padding: var(--space-4xl) 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    border: none;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.cta-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(212, 168, 83, 0.12);
    top: -100px;
    right: -100px;
    opacity: 0;
    transition: opacity 1s ease;
}

.cta-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(74, 222, 128, 0.1);
    bottom: -50px;
    left: -50px;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.cta-section.in-view .cta-orb-1,
.cta-section.in-view .cta-orb-2 {
    opacity: 1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.cta-content > p {
    color: var(--warmth-gold);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
    font-weight: 500;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    padding: 0 0 var(--space-xl);
    background: rgba(7, 7, 12, 0.8);
    border-top: 1px solid var(--border-subtle);
}

.footer-category {
    padding: var(--space-4xl) 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-3xl);
}

.footer-category::before {
    content: '';
    position: absolute;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, rgba(212, 168, 83, 0.04) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: var(--space-4xl);
}

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

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--life-green);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ================================================
   EMAIL MODAL — dark glassmorphic
   ================================================ */
.email-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 12, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.email-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.email-modal {
    background: rgba(18, 18, 28, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: var(--space-3xl);
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.email-modal-overlay.active .email-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-orb {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.modal-orb-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-orb-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--life-green);
    animation: pulse-ring 2s ease-out infinite;
}

.email-modal h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.email-modal > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.email-form {
    margin-bottom: var(--space-md);
}

.input-group {
    display: flex;
    gap: var(--space-sm);
}

.input-group input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.input-group input:focus {
    outline: none;
    border-color: var(--life-green);
}

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

.submit-btn {
    padding: var(--space-md) var(--space-2xl);
    background: var(--life-green);
    border: none;
    border-radius: 50px;
    color: var(--bg-deep);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.submit-btn:hover {
    background: #5eea96;
}

.btn-loading {
    display: none;
}

.email-form.loading .btn-text {
    display: none;
}

.email-form.loading .btn-loading {
    display: block;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

.spinner-track {
    stroke: rgba(7, 7, 12, 0.3);
}

.spinner-fill {
    stroke: var(--bg-deep);
    stroke-dasharray: 60;
    stroke-dashoffset: 45;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

.success-message {
    display: none;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: var(--life-green);
    color: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.success-message h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

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

/* =================================================================
   Onboarding Flow Styles — dark adapted
   ================================================================= */

.onboarding-modal {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Progress Bar */
.onboarding-progress {
    margin-bottom: var(--space-xl);
    transition: opacity var(--transition-base);
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: var(--life-green);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Onboarding Steps */
.onboarding-step {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.onboarding-step.active {
    display: block;
}

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

.onboarding-step h2 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.onboarding-step > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

/* Step Icon */
.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--life-green-dim), var(--soul-violet-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* Options Grid (Multi-select for wearables) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.option-card {
    cursor: pointer;
}

.option-card input {
    display: none;
}

.option-card .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition-fast);
}

.option-card:hover .option-content {
    border-color: rgba(212, 168, 83, 0.3);
    background: var(--warmth-gold-dim);
}

.option-card input:checked + .option-content {
    border-color: var(--life-green);
    background: var(--life-green-dim);
}

.option-card .option-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.option-card input:checked + .option-content .option-icon {
    background: var(--life-green);
    color: var(--bg-deep);
}

.option-card .option-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* Options List (Single-select for radio buttons) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.option-row {
    cursor: pointer;
}

.option-row input {
    display: none;
}

.option-row .option-content {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition-fast);
}

.option-row:hover .option-content {
    border-color: rgba(212, 168, 83, 0.3);
    background: var(--warmth-gold-dim);
}

.option-row input:checked + .option-content {
    border-color: var(--life-green);
    background: var(--life-green-dim);
}

.option-row .option-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.option-row .option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.option-row input:checked + .option-content .option-label {
    color: var(--life-green);
}

/* Next/Complete Button */
.step-next-btn,
.step-done-btn {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--life-green);
    border: none;
    border-radius: 50px;
    color: var(--bg-deep);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.step-next-btn:hover,
.step-done-btn:hover {
    background: #5eea96;
    transform: translateY(-2px);
}

.step-done-btn {
    margin-top: var(--space-lg);
}

/* Success/Complete State */
.success-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    border-radius: 50%;
    background: var(--life-green);
    color: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.success-details {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: var(--space-lg);
}

.success-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Shake animation for required field */
.onboarding-step.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ================================================
   RESPONSIVE — 1024px
   ================================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .philosophy-pillars {
        max-width: 500px;
        gap: var(--space-md);
    }

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

    .footer-content {
        flex-direction: column;
        gap: var(--space-2xl);
    }
}

/* ================================================
   RESPONSIVE — 640px
   ================================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .hero {
        min-height: auto;
        padding: 100px var(--space-lg) 40px;
    }

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

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }

    .highlight-category {
        white-space: normal;
    }

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

    .cta-primary {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.8rem;
    }

    /* Section spacing reduced on mobile */
    .problem-section,
    .shift-section,
    .philosophy-section,
    .how-section,
    .cta-section {
        padding: var(--space-3xl) 0;
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .section-label {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }

    /* Metrics ticker */
    .metrics-ticker-track {
        gap: var(--space-md);
        animation-duration: 30s;
    }

    .ticker-card {
        padding: 10px 14px;
    }

    .ticker-icon {
        width: 36px;
        height: 36px;
    }

    .ticker-icon--score {
        font-size: 1rem;
    }

    .ticker-icon--rings svg {
        width: 34px;
        height: 34px;
    }

    /* Shift gallery */
    .shift-gallery {
        gap: var(--space-md);
        flex-wrap: wrap;
    }

    .shift-image {
        width: 100px;
        height: 150px;
        border-radius: 12px;
    }

    .shift-image.featured {
        width: 120px;
        height: 170px;
    }

    .shift-prose p {
        font-size: 1.1rem;
    }

    /* Philosophy orb GIF */
    .philosophy-orb-gif {
        width: 200px;
        height: 200px;
    }

    .philosophy-section .section-header {
        padding: var(--space-xl) var(--space-lg);
    }

    .philosophy-prose p {
        font-size: 1.05rem;
    }

    /* Philosophy pillars */
    .philosophy-pillars {
        max-width: 100%;
        gap: var(--space-sm);
    }

    .pillar-card {
        border-radius: 12px;
    }

    .pillar-label {
        font-size: 0.85rem;
        bottom: var(--space-md);
        left: var(--space-md);
    }

    /* How It Works cards */
    .how-grid {
        grid-template-columns: 1fr;
    }

    .how-visual {
        height: 120px;
    }

    .how-content {
        padding: var(--space-lg);
    }

    /* Category statement */
    .category-section,
    .footer-category {
        min-height: 40vh;
    }

    .category-wordmark {
        height: clamp(3rem, 15vw, 5rem);
    }

    .category-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }

    /* About section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        max-width: 540px;
    }

    .about-photo-wrap {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    .about-name {
        font-size: 1.3rem;
    }

    .about-bio p {
        font-size: 0.95rem;
    }

    /* CTA section */
    .cta-content h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .cta-orb-1 {
        width: 250px;
        height: 250px;
    }

    .cta-orb-2 {
        width: 180px;
        height: 180px;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .footer-brand {
        max-width: 100%;
    }

    /* Modal */
    .input-group {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
    }

    .email-modal {
        padding: var(--space-2xl);
        border-radius: 16px;
    }
}

/* ================================================
   MOBILE — 480px (onboarding)
   ================================================ */
@media (max-width: 480px) {
    .onboarding-modal {
        padding: var(--space-xl);
        max-height: 95vh;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs);
    }

    .option-card .option-content {
        padding: var(--space-sm);
    }

    .option-card .option-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .option-card .option-label {
        font-size: 0.75rem;
    }

    .option-row .option-content {
        padding: var(--space-sm) var(--space-md);
    }

    .option-row .option-label {
        font-size: 0.9rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .onboarding-step h2 {
        font-size: 1.2rem;
    }
}

/* ================================================
   VERY SMALL MOBILE — 380px
   ================================================ */
@media (max-width: 380px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        padding: 90px var(--space-md) 30px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .philosophy-orb-gif {
        width: 160px;
        height: 160px;
    }

    .philosophy-pillars {
        grid-template-columns: 1fr;
        max-width: 240px;
        margin: 0 auto;
    }

    .shift-gallery {
        gap: var(--space-sm);
    }

    .shift-image {
        width: 80px;
        height: 120px;
    }

    .shift-image.featured {
        width: 95px;
        height: 140px;
    }

    .category-wordmark {
        height: clamp(2.5rem, 18vw, 4rem);
    }

    .metrics-ticker-track {
        gap: 10px;
        animation-duration: 25s;
    }

    .ticker-card {
        padding: 8px 12px;
        border-radius: 10px;
    }

    .ticker-icon {
        width: 32px;
        height: 32px;
    }

    .ticker-icon--score {
        font-size: 0.9rem;
    }

    .ticker-value {
        font-size: 0.8rem;
    }

    .ticker-label {
        font-size: 0.6rem;
    }

    .email-modal {
        padding: var(--space-xl);
        width: 95%;
    }

    .nav-container {
        padding: 0 var(--space-md);
    }

    .footer-column h4 {
        font-size: 0.85rem;
    }

    .footer-column a {
        font-size: 0.85rem;
    }
}

/* ================================================
   TOUCH DEVICE — disable card tilt
   ================================================ */
@media (hover: none) {
    .how-card {
        transform-style: flat;
        perspective: none;
    }
}

/* ================================================
   MODE TOGGLE COMPONENT
   ================================================ */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.mode-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.mode-label--human {
    color: var(--text-primary);
    opacity: 1;
}

.mode-label--machine {
    color: var(--text-muted);
    opacity: 0.5;
}

.mode-toggle-track {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mode-toggle-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-primary);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Active (terminal mode) toggle state */
.mode-toggle.active .mode-label--human {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.mode-toggle.active .mode-label--machine {
    color: #00ff41;
    opacity: 1;
}

.mode-toggle.active .mode-toggle-track {
    background: rgba(0, 255, 65, 0.15);
    border-color: rgba(0, 255, 65, 0.4);
}

.mode-toggle.active .mode-toggle-thumb {
    transform: translateX(18px);
    background: #00ff41;
}

/* Mobile toggle centering */
.mobile-mode-toggle {
    justify-content: center;
    padding: var(--space-sm) 0;
}

/* ================================================
   CRT OVERLAY (Machine Mode)
   ================================================ */
.crt-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: multiply;
}

/* ================================================
   MODE TRANSITION
   ================================================ */
body.mode-transitioning * {
    transition-duration: 0.6s !important;
}

/* ================================================
   MACHINE MODE — Full Override
   ================================================ */

/* --- Root variable overrides --- */
body.machine-mode {
    --bg-deep: #000000;
    --bg-section: #000000;
    --bg-card: rgba(0, 255, 65, 0.03);
    --bg-card-hover: rgba(0, 255, 65, 0.06);
    --border-subtle: rgba(0, 255, 65, 0.15);
    --border-hover: rgba(0, 255, 65, 0.35);
    --life-green: #00ff41;
    --life-green-dim: rgba(0, 255, 65, 0.1);
    --life-green-glow: rgba(0, 255, 65, 0.25);
    --warmth-gold: #00ff41;
    --warmth-gold-dim: rgba(0, 255, 65, 0.1);
    --warmth-gold-glow: rgba(0, 255, 65, 0.2);
    --soul-violet: #00ff41;
    --soul-violet-dim: rgba(0, 255, 65, 0.1);
    --text-primary: #00ff41;
    --text-secondary: rgba(0, 255, 65, 0.65);
    --text-muted: rgba(0, 255, 65, 0.35);
    --font-primary: 'JetBrains Mono', 'Courier New', monospace;
    --font-display: 'JetBrains Mono', 'Courier New', monospace;

    background: #000000;
    color: #00ff41;
}

/* --- CRT active --- */
body.machine-mode .crt-overlay {
    opacity: 1;
}

/* --- Typography --- */
body.machine-mode h1,
body.machine-mode h2,
body.machine-mode h3,
body.machine-mode h4 {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0;
}

body.machine-mode .hero-title {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
}

body.machine-mode .section-title {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3rem);
}

/* --- Gradient text → flat green --- */
body.machine-mode .gradient-text,
body.machine-mode .word-reveal .gradient-word {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #00ff41;
    color: #00ff41;
}

body.machine-mode .highlight-category {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.08);
    border-bottom-color: #00ff41;
}

/* --- Blinking cursor after section titles --- */
body.machine-mode .section-title::after {
    content: '_';
    animation: blink-cursor 1s step-end infinite;
    color: #00ff41;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Section labels --- */
body.machine-mode .section-label {
    color: #00ff41;
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.06);
    border-radius: 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 0.05em;
}

body.machine-mode .problem-section .section-label,
body.machine-mode .shift-section .section-label,
body.machine-mode .philosophy-section .section-label,
body.machine-mode .how-section .section-label,
body.machine-mode .about-section .section-label {
    color: #00ff41;
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.06);
}

/* --- Navigation --- */
body.machine-mode .nav {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
}

body.machine-mode .nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(0, 255, 65, 0.25);
}

body.machine-mode .nav-link {
    color: rgba(0, 255, 65, 0.6);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body.machine-mode .nav-link:hover {
    color: #00ff41;
}

body.machine-mode .nav-cta {
    background: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    border-radius: 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body.machine-mode .nav-cta:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: none;
}

/* --- Logo / Wordmark / SVGs → green --- */
body.machine-mode .logo-wordmark {
    filter: brightness(0) saturate(100%) invert(68%) sepia(74%) saturate(4106%) hue-rotate(88deg) brightness(113%) contrast(113%);
}

body.machine-mode .nav-mobile-toggle span {
    background: #00ff41;
}

/* --- Mobile menu --- */
body.machine-mode .mobile-menu {
    background: rgba(0, 0, 0, 0.98);
    border-bottom-color: rgba(0, 255, 65, 0.2);
}

body.machine-mode .mobile-link {
    color: rgba(0, 255, 65, 0.7);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body.machine-mode .mobile-cta {
    background: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    border-radius: 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* --- Cards (How It Works) → sharp corners --- */
body.machine-mode .how-card {
    background: rgba(0, 255, 65, 0.02);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.machine-mode .how-card:hover {
    border-color: rgba(0, 255, 65, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
}

body.machine-mode .how-card::before {
    background: none;
}

body.machine-mode .how-visual {
    background: rgba(0, 255, 65, 0.03);
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

/* --- Ticker cards → sharp corners --- */
body.machine-mode .ticker-card {
    border-radius: 0;
    border-color: rgba(0, 255, 65, 0.15);
    background: rgba(0, 255, 65, 0.02);
    backdrop-filter: none;
}

body.machine-mode .ticker-card:hover {
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.05);
}

body.machine-mode .ticker-icon--green,
body.machine-mode .ticker-icon--teal,
body.machine-mode .ticker-icon--blue,
body.machine-mode .ticker-icon--amber,
body.machine-mode .ticker-icon--red,
body.machine-mode .ticker-icon--violet {
    color: #00ff41;
}

body.machine-mode .ticker-icon--rings svg circle {
    stroke: #00ff41;
}

body.machine-mode .ticker-icon--mini-chart svg polyline,
body.machine-mode .ticker-icon--mini-chart svg rect,
body.machine-mode .ticker-icon--pulse svg path {
    stroke: #00ff41;
    fill: none;
}

body.machine-mode .ticker-icon--mini-chart svg rect {
    fill: rgba(0, 255, 65, 0.4);
}

/* --- Philosophy section tile → sharp --- */
body.machine-mode .philosophy-section .section-header {
    background: rgba(0, 255, 65, 0.03);
    border-color: rgba(0, 255, 65, 0.15);
    border-radius: 0;
}

/* --- Pillar cards → sharp + green tint --- */
body.machine-mode .pillar-card {
    border-radius: 0;
    border-color: rgba(0, 255, 65, 0.2);
}

body.machine-mode .pillar-card:nth-child(1),
body.machine-mode .pillar-card:nth-child(2),
body.machine-mode .pillar-card:nth-child(3),
body.machine-mode .pillar-card:nth-child(4) {
    border-color: rgba(0, 255, 65, 0.2);
}

body.machine-mode .pillar-card:nth-child(1) .pillar-label,
body.machine-mode .pillar-card:nth-child(2) .pillar-label,
body.machine-mode .pillar-card:nth-child(3) .pillar-label,
body.machine-mode .pillar-card:nth-child(4) .pillar-label {
    color: #00ff41;
}

body.machine-mode .pillar-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

/* --- Photos → Braille art overlays --- */
.ascii-overlay {
    display: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000000;
    color: #00ff41;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    white-space: pre;
    line-height: 1;
    margin: 0;
    padding: 0;
    z-index: 3;
    pointer-events: none;
}

body.machine-mode .ascii-overlay {
    display: block;
}

body.machine-mode .shift-image img,
body.machine-mode .pillar-card img,
body.machine-mode .about-photo {
    opacity: 0;
}

body.machine-mode .shift-image {
    border-radius: 0;
    border-color: rgba(0, 255, 65, 0.2);
    background: #000000;
}

body.machine-mode .shift-image::after {
    background: none;
}

body.machine-mode .pillar-card {
    background: #000000;
}

body.machine-mode .pillar-overlay {
    display: none;
}

body.machine-mode .pillar-label {
    z-index: 5;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

body.machine-mode .about-photo-wrap {
    border-radius: 0;
    border-color: rgba(0, 255, 65, 0.2);
    background: #000000;
}

body.machine-mode .about-card:hover .about-photo {
    opacity: 0;
}

/* --- Orb GIF → green tint --- */
body.machine-mode .philosophy-orb-gif {
    filter: grayscale(100%) brightness(0.8) sepia(100%) hue-rotate(70deg) saturate(400%);
    border-radius: 0;
}

/* --- WebGL Mesh Canvases → hidden --- */
body.machine-mode .hero-mesh-canvas,
body.machine-mode .category-mesh-canvas {
    opacity: 0 !important;
}

/* --- Hero section backgrounds → muted --- */
body.machine-mode .hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 255, 65, 0.04) 0%, transparent 70%);
}

body.machine-mode .problem-section::before {
    background: none;
}

body.machine-mode .philosophy-section::before {
    background: none;
}

body.machine-mode .category-section::before,
body.machine-mode .footer-category::before {
    background: radial-gradient(circle, rgba(0, 255, 65, 0.04) 0%, transparent 70%);
}

/* --- Category wordmark → green --- */
body.machine-mode .category-wordmark {
    filter: brightness(0) saturate(100%) invert(68%) sepia(74%) saturate(4106%) hue-rotate(88deg) brightness(113%) contrast(113%);
}

body.machine-mode .category-subtitle {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-style: normal;
    color: #00ff41;
}

/* --- Buttons / CTAs --- */
body.machine-mode .cta-primary {
    background: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    border-radius: 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    box-shadow: none;
    animation: none;
}

body.machine-mode .cta-primary:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: none;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}

body.machine-mode .cta-section .cta-primary {
    background: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
    animation: machine-cta-glow 2s ease-in-out infinite;
}

body.machine-mode .cta-section .cta-primary:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.25);
}

@keyframes machine-cta-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.15); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 65, 0.25); }
}

/* --- CTA orbs → green --- */
body.machine-mode .cta-orb-1 {
    background: rgba(0, 255, 65, 0.06);
}

body.machine-mode .cta-orb-2 {
    background: rgba(0, 255, 65, 0.04);
}

/* --- Voice/Connect/Insight visuals → green --- */
body.machine-mode .voice-circle {
    background: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

body.machine-mode .voice-wave {
    border-color: rgba(0, 255, 65, 0.3);
}

body.machine-mode .connect-node {
    background: #00ff41;
}

body.machine-mode .node-1,
body.machine-mode .node-2 {
    background: rgba(0, 255, 65, 0.5);
}

body.machine-mode .connect-line {
    background: rgba(0, 255, 65, 0.2);
}

body.machine-mode .insight-icon {
    background: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

body.machine-mode .insight-icon svg {
    stroke: #000000;
}

body.machine-mode .insight-glow {
    background: radial-gradient(circle, rgba(0, 255, 65, 0.15) 0%, transparent 70%);
}

body.machine-mode .rhythm-list li::before {
    color: #00ff41;
}

/* --- Footer --- */
body.machine-mode .footer {
    background: rgba(0, 0, 0, 0.9);
    border-top-color: rgba(0, 255, 65, 0.15);
}

body.machine-mode .footer-column a:hover {
    color: #00ff41;
}

/* --- Email Modal → terminal styled --- */
body.machine-mode .email-modal-overlay {
    background: rgba(0, 0, 0, 0.9);
}

body.machine-mode .email-modal {
    background: #000000;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.1);
}

body.machine-mode .modal-orb-pulse {
    border-color: #00ff41;
}

body.machine-mode .modal-orb-logo {
    filter: brightness(0) saturate(100%) invert(68%) sepia(74%) saturate(4106%) hue-rotate(88deg) brightness(113%) contrast(113%);
}

body.machine-mode .input-group input {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.25);
    border-radius: 0;
    color: #00ff41;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body.machine-mode .input-group input:focus {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

body.machine-mode .input-group input::placeholder {
    color: rgba(0, 255, 65, 0.3);
}

body.machine-mode .submit-btn {
    background: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    border-radius: 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body.machine-mode .submit-btn:hover {
    background: rgba(0, 255, 65, 0.1);
}

body.machine-mode .step-next-btn,
body.machine-mode .step-done-btn {
    background: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    border-radius: 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body.machine-mode .step-next-btn:hover,
body.machine-mode .step-done-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: none;
}

body.machine-mode .progress-fill {
    background: #00ff41;
}

body.machine-mode .step-icon {
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 0;
}

body.machine-mode .option-card .option-content {
    border-radius: 0;
    border-color: rgba(0, 255, 65, 0.15);
    background: rgba(0, 255, 65, 0.02);
}

body.machine-mode .option-card:hover .option-content {
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.06);
}

body.machine-mode .option-card input:checked + .option-content {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
}

body.machine-mode .option-card .option-icon {
    background: rgba(0, 255, 65, 0.08);
    border-radius: 0;
}

body.machine-mode .option-card input:checked + .option-content .option-icon {
    background: #00ff41;
    color: #000000;
}

body.machine-mode .option-row .option-content {
    border-radius: 0;
    border-color: rgba(0, 255, 65, 0.15);
    background: rgba(0, 255, 65, 0.02);
}

body.machine-mode .option-row:hover .option-content {
    border-color: rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.06);
}

body.machine-mode .option-row input:checked + .option-content {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
}

body.machine-mode .option-row input:checked + .option-content .option-label {
    color: #00ff41;
}

body.machine-mode .success-icon-large {
    background: #00ff41;
    color: #000000;
    border-radius: 0;
}

body.machine-mode .success-details {
    border-radius: 0;
    border-color: rgba(0, 255, 65, 0.15);
    background: rgba(0, 255, 65, 0.03);
}

/* --- About section names --- */
body.machine-mode .about-name {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* --- Responsive machine mode --- */
@media (max-width: 1024px) {
    .mode-toggle:not(.mobile-mode-toggle) {
        display: none;
    }
}

@media (min-width: 1025px) {
    .mobile-mode-toggle {
        display: none;
    }
}

@media (max-width: 640px) {
    body.machine-mode .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    body.machine-mode .section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
}
