/* ===================================
   janAGI - Enhanced Styles
   Modern, Responsive, Glassmorphism Design
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #00A9A5;
    --secondary-color: #4E5D94;
    --accent-color: #FF6B6B;
    --dark-bg: #0a0e27;
    --dark-bg-alt: #111827;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px;
    --section-padding-mobile: 60px;

    /* Typography */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
}

/* Light Mode */
body.light-mode {
    --dark-bg: #f5f7fa;
    --dark-bg-alt: #ffffff;
    --text-color: #2d3748;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

/* ===================================
   Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-main);
    background: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

/* ===================================
   Utility Classes
   =================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile - narrower padding */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* ===================================
   Loading Screen
   =================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-color);
}

.loader-logo span {
    color: var(--primary-color);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

/* ===================================
   Custom Cursor (Desktop Only)
   =================================== */

.cursor,
.cursor-follower {
    pointer-events: none;
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    opacity: 0.5;
}

/* Hide on mobile */
@media (max-width: 1024px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* ===================================
   Scroll Progress Bar
   =================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9998;
    width: 0%;
    transition: width 0.1s ease;
}

/* ===================================
   Particle Background
   =================================== */

.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* ===================================
   Navigation
   =================================== */

.main-nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.nav-logo {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--text-color);
    white-space: nowrap;
}

.nav-logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--glass-bg);
    color: var(--primary-color);
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--glass-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.theme-toggle .fa-moon {
    display: none;
}

body.light-mode .theme-toggle .fa-sun {
    display: none;
}

body.light-mode .theme-toggle .fa-moon {
    display: block;
}

.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    border: none;
    background: var(--glass-bg);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-bg-alt);
        border-top: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-xl);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* ===================================
   Hero Header
   =================================== */

.hero-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;
    text-align: center;
}

/* Animated Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary-color);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    right: -100px;
    animation-delay: 14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Reduce blob size on mobile */
@media (max-width: 768px) {
    .blob { filter: blur(50px); }
    .blob-1 { width: 250px; height: 250px; }
    .blob-2 { width: 200px; height: 200px; }
    .blob-3 { width: 180px; height: 180px; }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin-bottom: 30px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 600;
}

.status-badge i {
    color: var(--primary-color);
}

.logo-main {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

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

.typing-headline {
    min-height: clamp(60px, 10vw, 80px);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    color: var(--primary-color);
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Email Form */
.email-form {
    display: flex;
    gap: 10px;
    max-width: 550px;
    margin: 0 auto 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--dark-bg-alt);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.input-wrapper input:focus + .input-border {
    width: 100%;
}

.cta-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-cta-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-secondary {
    padding: 15px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    background: var(--glass-bg);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.cta-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .email-form {
        flex-direction: column;
        width: 100%;
    }

    .input-wrapper {
        width: 100%;
        min-width: auto;
    }

    .cta-button,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 60px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 28px; opacity: 0.5; }
}

/* ===================================
   Glass Cards
   =================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 169, 165, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover .card-glow {
    opacity: 1;
}

/* Mobile: reduce padding */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
    }
}

/* ===================================
   Sections
   =================================== */

section {
    padding: var(--section-padding) 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile) 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 20px auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* ===================================
   Features Grid (Problem Section)
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.card-problem {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.solution-divider {
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    margin: 20px 0;
}

.card-solution {
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-solution strong {
    color: var(--text-color);
}

.solution-keyword {
    color: var(--primary-color);
    font-weight: 700;
}

.card-learn-more {
    margin-top: 20px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-learn-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* ===================================
   Architecture Section
   =================================== */

.architecture-subtitle {
    margin-bottom: 35px;
    color: var(--text-muted);
}

.architecture-inline-link {
    margin-left: 12px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 169, 165, 0.6);
}

.architecture-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.architecture-badges span {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.architecture-layer-card {
    position: relative;
    border: 1px solid rgba(0, 169, 165, 0.25);
}

.architecture-layer-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--secondary-color);
    border-right: 2px solid var(--secondary-color);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.7;
}

.architecture-grid .architecture-layer-card:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.1;
}

.feature-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ai-chip-group {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
    display: grid;
    gap: 12px;
}

.ai-chip-group .feature-tags {
    margin-top: 0;
}

@media (max-width: 640px) {
    .ai-chip-group .feature-tags {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-chip-group .feature-tags .tag {
        text-align: center;
    }
}

.ai-chip-group .tag-outline {
    justify-self: start;
}

.tag {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.layer-bullets {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

.flow-example {
    margin-top: 30px;
}

.flow-usecase-switch {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 18px 0 22px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    width: fit-content;
    background: rgba(255, 255, 255, 0.02);
}

.flow-switch-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-color);
    border-radius: 999px;
    padding: 8px 16px 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.flow-switch-btn::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 150ms ease;
}

.flow-switch-btn:hover,
.flow-switch-btn.active {
    border-color: rgba(0, 169, 165, 0.75);
    background: rgba(0, 169, 165, 0.22);
    color: #e8fbff;
}

.flow-switch-btn.active::after {
    transform: scaleX(1);
}

.flow-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.flow-tab-caption {
    margin: -8px 0 14px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.flow-timeline {
    width: 100%;
}

.flow-sequence {
    display: none;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 12px;
}

.flow-sequence.active {
    display: grid;
}

.flow-timeline.is-switching .flow-sequence.active {
    animation: flowSwitchIn 150ms ease;
}

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

.flow-step-card {
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    min-height: 168px;
}

.flow-step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.flow-step-card.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(0, 169, 165, 0.2);
}

.flow-step-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 169, 165, 0.18);
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.flow-step-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.flow-step-card h4 {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.flow-step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.arrow-step::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--secondary-color);
    border-right: 2px solid var(--secondary-color);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.8;
}

.section-highlight {
    animation: sectionPulse 1.2s ease;
}

@keyframes sectionPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 169, 165, 0.45); }
    100% { box-shadow: 0 0 0 18px rgba(0, 169, 165, 0); }
}

@media (max-width: 900px) {
    .flow-sequence {
        grid-template-columns: 1fr;
    }

    .arrow-step::before,
    .architecture-layer-card::after {
        display: none;
    }

    .flow-usecase-switch {
        width: 100%;
        justify-content: space-between;
    }

    .flow-switch-btn {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* ===================================
   Timeline (Roadmap Section)
   =================================== */

.interactive-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Vertical line on mobile, hide on desktop */
.interactive-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

@media (min-width: 769px) {
    .interactive-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    cursor: pointer;
    position: relative;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: row;
        gap: 20px;
    }
}

.timeline-marker {
    position: relative;
    flex-shrink: 0;
}

.marker-icon {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

@media (max-width: 768px) {
    .marker-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.marker-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.timeline-item:hover .marker-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.timeline-content {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
    position: relative;
}

@media (max-width: 768px) {
    .timeline-content {
        padding: 20px;
    }
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.timeline-badge {
    display: inline-block;
    padding: 6px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 20px;
}

.timeline-item.expanded .timeline-details {
    max-height: 300px;
}

.timeline-details ul {
    list-style: none;
    padding: 0;
}

.timeline-details li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-details li i {
    color: var(--success-color);
}

.expand-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.expand-btn:hover {
    transform: scale(1.1);
}

.timeline-item.expanded .expand-btn i {
    transform: rotate(180deg);
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 80px;
    padding: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 30px 20px;
        margin-top: 50px;
    }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ===================================
   Workflow Section
   =================================== */

.workflow-steps {
    max-width: 900px;
    margin: 0 auto;
}

.workflow-step {
    display: block;
    margin-bottom: 50px;
    position: relative;
}

@media (max-width: 768px) {
    .workflow-step {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
}

.step-number {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    z-index: 3;
}

.number-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

.step-content {
    flex: 1;
    padding-top: 28px;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% - 10px);
    width: 1px;
    height: calc(100% + 50px);
    background: linear-gradient(180deg, rgba(0, 169, 165, 0.65), transparent);
}

@media (max-width: 768px) {
    .step-number {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        top: 12px;
        left: 12px;
    }
}

.workflow-step:last-child .step-connector {
    display: none;
}

/* ===================================
   Audience Section
   =================================== */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

.audience-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.benefit-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.benefit-list i {
    color: var(--success-color);
    font-size: 1.1rem;
}

/* Stats Counter */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 80px;
    padding: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 20px;
        margin-top: 50px;
    }
}

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

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================
   Investors Section (Forms)
   =================================== */

.investor-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .investor-forms {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.form-card {
    padding: 40px;
}

@media (max-width: 768px) {
    .form-card {
        padding: 25px;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group .input-wrapper {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 45px 15px 15px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--dark-bg-alt);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-group textarea + .input-icon {
    top: 20px;
    transform: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-status {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.form-status.error {
    color: var(--accent-color);
}

/* ===================================
   Footer
   =================================== */

.main-footer {
    background: var(--dark-bg-alt);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-tagline {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===================================
   Modal System
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

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

.modal-container {
    background: var(--dark-bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .modal-container {
        padding: 25px;
        max-height: 85vh;
    }
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error-color);
    color: white;
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ===================================
   Confetti Canvas
   =================================== */

.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ===================================
   Ripple Effect
   =================================== */

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.ripple-effect:active::after {
    transform: translate(-50%, -50%) scale(2);
}

/* ===================================
   Responsive Utilities
   =================================== */

/* Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block !important;
    }
}

/* ===================================
   Animations
   =================================== */

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   Accessibility
   =================================== */

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .main-nav-fixed,
    .scroll-progress,
    .particle-canvas,
    .cursor,
    .cursor-follower,
    .loading-screen,
    footer,
    .modal-overlay,
    .confetti-canvas {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* === 2026-architecture-flow polish === */
.architecture-subtitle,
.cta-section p,
.timeline-content p,
.timeline-details li,
.step-content p,
.flow-step-card p {
    color: #b0e0e6;
}

.architecture-subtitle {
    background: rgba(6, 24, 40, 0.55);
    border: 1px solid rgba(176, 224, 230, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
}

.timeline-content,
.step-content,
.flow-step-card {
    background: rgba(10, 20, 35, 0.58);
}

.flow-switch-btn {
    font-weight: 700;
    color: #cbe9f0;
}

.flow-switch-btn.active {
    box-shadow: 0 0 0 1px rgba(0, 169, 165, 0.55), 0 10px 22px rgba(0, 169, 165, 0.3);
    transform: translateY(-1px);
}

.flow-deepdive-btn {
    border: 1px solid rgba(0, 169, 165, 0.45);
    background: rgba(0, 169, 165, 0.12);
    color: #d8f7fa;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    cursor: pointer;
    font-weight: 600;
}

.flow-step-card {
    overflow: visible;
}

.flow-step-arrow {
    position: absolute;
    left: -16px;
    top: 44%;
    color: #7ec8d5;
    font-size: 0.9rem;
    opacity: 0;
}

.flow-step-card.arrow-step .flow-step-arrow {
    opacity: 1;
}

.flow-step-card::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 12px;
    height: 2px;
    background: linear-gradient(90deg, rgba(126, 200, 213, 0.85), rgba(126, 200, 213, 0));
}

.flow-step-card:first-child::after {
    display: none;
}

.flow-step-detail {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -10px;
    transform: translateY(100%);
    background: rgba(7, 16, 28, 0.95);
    border: 1px solid rgba(126, 200, 213, 0.35);
    color: #d1ecf2;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
    padding: 9px 10px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 5;
}

.flow-step-card:hover .flow-step-detail,
.flow-step-card:focus-within .flow-step-detail,
.flow-step-card:focus .flow-step-detail {
    opacity: 1;
    transform: translateY(calc(100% + 6px));
}

.audience-notice {
    margin-top: 34px;
    border-radius: 14px;
    border: 1px solid rgba(176, 224, 230, 0.25);
    background: rgba(12, 27, 44, 0.45);
    padding: 18px 20px;
    text-align: center;
}

.audience-notice p {
    margin: 0;
    color: #b0e0e6;
}

@media (max-width: 900px) {
    .flow-step-arrow,
    .flow-step-card::after {
        display: none;
    }
}

.arrow-step::before { display: none; }


/* === level-2 clarity iteration === */
.architecture-practical-note {
    margin: -4px 0 24px;
    color: var(--text-color);
    font-weight: 600;
}

.integration-examples {
    margin-top: 14px;
    font-size: 0.83rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--glass-border);
    padding-top: 10px;
}

.flow-sequence {
    column-gap: 22px;
}

.flow-step-card {
    overflow: visible;
}

.flow-step-card:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid rgba(126, 200, 213, 0.85);
    border-right: 2px solid rgba(126, 200, 213, 0.85);
    transform: translateY(-50%) rotate(45deg);
}

.flow-step-card:not(:first-child)::after {
    content: '';
    position: absolute;
    left: -22px;
    right: calc(100% + 2px);
    top: 50%;
    border-top: 1px solid rgba(126, 200, 213, 0.45);
}

@media (max-width: 900px) {
    .flow-sequence {
        row-gap: 16px;
    }

    .flow-step-card {
        margin-left: 16px;
    }

    .flow-step-card:not(:first-child)::before {
        left: -15px;
        top: -11px;
        transform: rotate(135deg);
    }

    .flow-step-card:not(:first-child)::after {
        left: -16px;
        right: auto;
        top: -16px;
        width: 1px;
        height: 18px;
        border-top: 0;
        border-left: 1px solid rgba(126, 200, 213, 0.5);
    }
}

.hero-bullets {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.hero-bullets li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 0.6rem;
    font-weight: 700;
}

.section-manifesto,
.section-proof {
    padding: var(--section-padding) 0 40px;
}

.manifesto-grid,
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.manifesto-conclusion {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.proof-grid figure img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

.audience-toggle {
    display: flex;
    gap: 0.6rem;
    margin: 0 0 1.2rem;
    flex-wrap: wrap;
}

.audience-toggle-btn {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.audience-toggle-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.pilot-scope {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
}

.pilot-scope ul {
    margin-left: 1.1rem;
}


.section-reality {
    padding: var(--section-padding) 0 40px;
}

.reality-grid,
.reality-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.reality-list {
    margin: .8rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-color);
}

.reality-callout {
    margin-top: 1.2rem;
    font-weight: 600;
}

.reality-quote {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color);
    background: rgba(0, 169, 165, .12);
    border: 1px solid rgba(0, 169, 165, .35);
    border-radius: 14px;
    padding: 14px 16px;
}

.proof-link {
    display: block;
}

.proof-link img {
    transition: transform .25s ease, box-shadow .25s ease;
}

.proof-link:hover img {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
}

.proof-points {
    margin-top: .8rem;
    padding-left: 1.1rem;
    color: var(--text-color-muted);
}

/* Reality + positioning additions */
.section-reality {
    padding: var(--section-padding) 0 40px;
}

.reality-lead {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--text-color);
}

.reality-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.reality-accordion {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.reality-accordion details {
    padding: 1rem 1.1rem;
}

.reality-accordion summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.reality-accordion summary::-webkit-details-marker {
    display: none;
}

.reality-accordion details p {
    margin-top: 0.8rem;
    color: var(--text-color-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: rgba(0, 169, 165, .2);
    border: 1px solid rgba(0, 169, 165, .4);
}

.reality-takeaway {
    margin-top: 1rem;
    padding: 1.2rem;
}

.reality-quote {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color);
    background: rgba(0, 169, 165, .12);
    border: 1px solid rgba(0, 169, 165, .35);
    border-radius: 14px;
    padding: 14px 16px;
}

.hero-tagline {
    margin-top: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.paths-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.paths-grid .glass-card {
    padding: 1.1rem;
}

@media (max-width: 900px) {
    .reality-grid,
    .paths-grid {
        grid-template-columns: 1fr;
    }
}
