/* ==========================================
   Alphie Official Website - CSS Styles
   Personal AI Runtime
   Using Alphie Design System Tokens
   ========================================== */

/* Design System Tokens */
:root {
    /* Alphie DS Colors */
    --ds-accent: #6366F1;
    --ds-accent-bg: #EEF2FF;
    --ds-accent-dim: #818CF8;
    --ds-accent-hover: rgba(99,102,241,0.08);
    --ds-surface: #FAFAFA;
    --ds-surface-hover: #F5F5F5;
    --ds-border: #F0F0F0;
    --ds-border-med: #E6E6E6;
    --ds-text-primary: #1e293b;
    --ds-text-secondary: #64748b;
    --ds-text-tertiary: #94a3b8;
    --ds-bg-page: #f8fafc;
    --ds-bg-white: #ffffff;

    /* Functional */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-text: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--ds-bg-white);
    color: var(--ds-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--ds-text-primary);
}

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

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ds-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ds-text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 10px;
    font-weight: 800;
    font-size: 20px;
    color: white;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ds-text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

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

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

.nav-links a {
    color: var(--ds-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--ds-text-primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--ds-border-med);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--ds-text-tertiary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--ds-text-secondary);
}

.lang-btn.active {
    color: var(--ds-text-primary);
    background: var(--ds-surface);
}

.lang-divider {
    color: var(--ds-border-med);
    font-size: 12px;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: var(--ds-bg-white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: #6366f1;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.08;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border-med);
    border-radius: 100px;
    font-size: 13px;
    color: var(--ds-text-secondary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--ds-text-secondary);
}

.hero-description {
    font-size: 18px;
    color: var(--ds-text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-description strong {
    color: var(--ds-text-primary);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

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

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

.btn-secondary {
    background: var(--ds-bg-white);
    color: var(--ds-text-primary);
    border: 1px solid var(--ds-border-med);
}

.btn-secondary:hover {
    background: var(--ds-surface);
    border-color: var(--ds-accent);
    color: var(--ds-accent);
}

.btn-primary.large, .btn-secondary.large {
    padding: 18px 36px;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--ds-text-tertiary);
}

/* ==========================================
   Section Styles
   ========================================== */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--ds-accent-bg);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 13px;
    color: var(--ds-accent);
    font-weight: 500;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--ds-text-secondary);
    font-size: 18px;
    margin-top: 16px;
}

/* ==========================================
   Innovation / How It Works Section
   ========================================== */
.innovation-section {
    background: var(--ds-bg-page);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.innovation-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.innovation-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.innovation-badge {
    margin-bottom: 24px;
}

.world-first {
    display: inline-block;
    padding: 8px 20px;
    background: var(--ds-accent-bg);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.innovation-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.3;
}

/* Innovation Grid - Two Cards */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
    align-items: stretch;
}

.innovation-grid > .innovation-card {
    min-width: 300px;
}

.innovation-card {
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.innovation-card .loop-square,
.innovation-card .memory-features {
    flex: 1;
}

.innovation-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-md);
}

.innovation-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.innovation-card .card-desc {
    font-size: 15px;
    color: var(--ds-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Loop Square */
.loop-square {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    justify-items: center;
    padding: 24px;
    background: var(--ds-bg-page);
    border-radius: var(--radius-md);
    height: 100%;
    min-height: 280px;
}

.loop-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ds-bg-white);
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid var(--ds-border);
    transition: var(--transition-fast);
    min-width: 110px;
    box-shadow: var(--shadow-sm);
}

.loop-node:hover {
    border-color: var(--ds-accent);
    background: var(--ds-accent-bg);
}

.loop-node .node-icon {
    font-size: 24px;
}

.loop-node .node-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-text-primary);
    text-align: center;
}

.loop-arrow {
    font-size: 20px;
    font-weight: bold;
    color: var(--ds-accent);
}

.loop-arrow.arrow-top { color: #6366f1; }
.loop-arrow.arrow-right { color: #8b5cf6; }
.loop-arrow.arrow-bottom { color: #a855f7; }
.loop-arrow.arrow-left { color: #a855f7; }

.loop-center {
    width: 8px;
    height: 8px;
    background: var(--ds-accent);
    border-radius: 50%;
    opacity: 0.3;
    grid-column: 2;
    grid-row: 2;
}

/* Grid Positioning */
.loop-node.top-left { grid-column: 1; grid-row: 1; }
.loop-arrow.arrow-top { grid-column: 2; grid-row: 1; }
.loop-node.top-right { grid-column: 3; grid-row: 1; }
.loop-arrow.arrow-left { grid-column: 1; grid-row: 2; }
.loop-arrow.arrow-right { grid-column: 3; grid-row: 2; }
.loop-node.bottom-left { grid-column: 1; grid-row: 3; }
.loop-arrow.arrow-bottom { grid-column: 2; grid-row: 3; }
.loop-node.bottom-right { grid-column: 3; grid-row: 3; }

/* Memory Features */
.memory-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.memory-features li {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--ds-bg-page);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.memory-features li:hover {
    background: var(--ds-surface-hover);
    border-left-color: var(--ds-accent);
}

.memory-features .feature-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.memory-features .feature-content strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-text-primary);
}

.memory-features .feature-content span {
    font-size: 13px;
    color: var(--ds-text-secondary);
    line-height: 1.5;
}

/* ==========================================
   Comparison Section
   ========================================== */
.problem-section {
    background: var(--ds-bg-white);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
}

.comparison-card {
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border-med);
    border-radius: var(--radius-xl);
    padding: 40px;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.comparison-card.alphie {
    border-color: var(--ds-accent);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--ds-surface);
    border-radius: 12px;
}

.comparison-card.alphie .card-icon {
    background: var(--gradient-primary);
    font-weight: 800;
    color: white;
}

.card-header h3 {
    font-size: 20px;
}

.featured-badge {
    margin-left: auto;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--ds-border);
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list .cost {
    font-size: 18px;
    font-weight: 700;
    color: var(--ds-text-tertiary);
}

.comparison-list .cost.highlight {
    color: var(--success);
}

.comparison-list .desc {
    color: var(--ds-text-secondary);
    font-size: 14px;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-divider span {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border-med);
    border-radius: 50%;
    font-weight: 700;
    color: var(--ds-text-tertiary);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   Capabilities / Team Section
   ========================================== */
.ai-team-section {
    background: var(--ds-bg-page);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-md);
}

.team-card.center-card {
    grid-column: 1 / -1;
    background: var(--ds-bg-white);
    border-color: var(--ds-accent);
    box-shadow: var(--shadow-glow);
    padding: 40px 48px;
    position: relative;
    overflow: hidden;
}

.team-card.center-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.team-card.center-card h4 {
    font-size: 24px;
    margin-bottom: 8px;
}

.hub-subtitle {
    color: var(--ds-accent);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hub-capabilities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.hub-cap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--ds-bg-page);
    border-radius: 10px;
    font-size: 13px;
    color: var(--ds-text-secondary);
    text-align: left;
    border: 1px solid var(--ds-border);
}

.hub-cap .cap-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.team-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--ds-bg-page);
    border-radius: 14px;
}

.team-avatar.main {
    width: 72px;
    height: 72px;
    font-size: 36px;
    background: var(--gradient-primary);
    color: white;
}

.team-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 13px;
    color: var(--ds-text-secondary);
    line-height: 1.5;
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    background: var(--ds-bg-white);
}

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

.feature-card {
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card.large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    background: var(--ds-bg-page);
    border-color: var(--ds-border);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--ds-bg-page);
    border-radius: 14px;
    margin-bottom: 20px;
}

.feature-card.large .feature-icon {
    background: var(--gradient-primary);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--ds-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.feature-demo {
    background: var(--ds-bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--ds-border);
}

.feature-demo code {
    display: block;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 14px;
    line-height: 2;
}

.feature-demo .prompt {
    color: var(--ds-accent);
}

.feature-demo .response {
    color: var(--success);
}

/* ==========================================
   Demo Section
   ========================================== */
.demo-section {
    background: var(--ds-bg-page);
}

.demo-terminal {
    max-width: 800px;
    margin: 0 auto;
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border-med);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--ds-surface);
    border-bottom: 1px solid var(--ds-border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #febc2e; }
.btn-maximize { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--ds-text-tertiary);
}

.terminal-body {
    padding: 24px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.chat-message .avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-surface);
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-message.assistant .avatar {
    background: var(--gradient-primary);
    font-weight: 800;
    color: white;
}

.message-content {
    flex: 1;
    background: var(--ds-bg-page);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.chat-message.user .message-content {
    background: var(--ds-accent-bg);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.message-content p {
    margin-bottom: 12px;
    color: var(--ds-text-primary);
}

.message-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 8px;
    color: var(--ds-text-secondary);
}

.message-content li strong {
    color: var(--ds-text-primary);
}

.thinking {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--ds-text-tertiary);
    font-size: 13px;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    background: var(--ds-accent);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.agent-calls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.agent-tag {
    padding: 4px 10px;
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--ds-text-secondary);
}

.verdict {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 8px;
}

.verdict.bullish {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.backtest-result {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.backtest-result .metric {
    text-align: center;
    padding: 16px;
    background: var(--ds-bg-white);
    border-radius: 10px;
    border: 1px solid var(--ds-border);
}

.backtest-result .label {
    display: block;
    font-size: 12px;
    color: var(--ds-text-tertiary);
    margin-bottom: 4px;
}

.backtest-result .value {
    font-size: 20px;
    font-weight: 700;
}

.backtest-result .value.positive { color: var(--success); }
.backtest-result .value.negative { color: var(--danger); }

/* ==========================================
   Architecture / Platforms Section
   ========================================== */
.architecture-section {
    background: var(--ds-bg-page);
}

.architecture-diagram {
    max-width: 800px;
    margin: 0 auto;
}

.arch-layer {
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.arch-layer.base {
    background: var(--ds-accent-bg);
    border-color: rgba(99, 102, 241, 0.15);
}

.layer-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ds-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.layer-items {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.arch-item {
    padding: 8px 16px;
    background: var(--ds-bg-page);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ds-text-secondary);
    border: 1px solid var(--ds-border);
}

.arch-item.add-new {
    background: transparent;
    border: 1px dashed var(--ds-border-med);
    color: var(--ds-text-tertiary);
}

.arch-arrow {
    text-align: center;
    font-size: 24px;
    color: var(--ds-text-tertiary);
    padding: 8px 0;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    background: var(--ds-bg-white);
    padding: 120px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--ds-text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--ds-bg-page);
    padding: 64px 0 32px;
    border-top: 1px solid var(--ds-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.footer-brand p {
    color: var(--ds-text-tertiary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--ds-text-tertiary);
}

.link-group a {
    display: block;
    color: var(--ds-text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.link-group a:hover {
    color: var(--ds-accent);
}

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

.footer-bottom p {
    color: var(--ds-text-tertiary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom .copyright {
    font-size: 13px;
}

/* ==========================================
   Responsive - Tablet
   ========================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 80px 0;
    }

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

    .vs-divider {
        padding: 16px 0;
    }

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

    .team-card.center-card {
        grid-column: 1 / -1;
    }

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

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

    .feature-card.large {
        grid-template-columns: 1fr;
    }

    .innovation-grid {
        gap: 24px;
    }
}

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

    section {
        padding: 60px 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* Navigation */
    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 16px;
    }

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

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding-top: 40px;
        z-index: 1001;
        backdrop-filter: blur(20px);
    }

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

    .nav-links a {
        font-size: 18px;
        padding: 12px 24px;
        color: var(--ds-text-primary);
    }

    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--ds-border);
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .logo-text {
        font-size: 20px;
    }

    /* Hero */
    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }

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

    .badge {
        padding: 6px 12px;
        font-size: 11px;
        margin-bottom: 24px;
    }

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

    .hero-description {
        font-size: 15px;
        margin-bottom: 32px;
        line-height: 1.7;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        margin-bottom: 48px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat {
        min-width: 80px;
    }

    .stat-value {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Gradient orbs */
    .gradient-orb {
        opacity: 0.08;
    }

    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { width: 200px; height: 200px; }

    /* Innovation */
    .innovation-section {
        padding: 60px 0;
    }

    .innovation-header {
        margin-bottom: 32px;
    }

    .world-first {
        padding: 6px 14px;
        font-size: 12px;
    }

    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .innovation-card {
        padding: 24px 20px;
    }

    .innovation-card h3 {
        font-size: 18px;
    }

    .innovation-card .card-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .loop-square {
        gap: 10px;
        padding: 16px;
        height: auto;
    }

    .loop-node {
        padding: 12px 14px;
        min-width: 75px;
    }

    .loop-node .node-icon {
        font-size: 18px;
    }

    .loop-node .node-text {
        font-size: 11px;
    }

    .loop-arrow {
        font-size: 16px;
    }

    .memory-features li {
        padding: 16px;
    }

    /* Comparison */
    .section-header {
        margin-bottom: 40px;
    }

    .section-header p {
        font-size: 15px;
    }

    .comparison-card {
        padding: 24px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 24px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .featured-badge {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 6px 12px;
    }

    .comparison-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 14px 0;
    }

    .comparison-list .cost {
        font-size: 16px;
    }

    .comparison-list .desc {
        font-size: 13px;
    }

    .vs-divider span {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .team-card {
        padding: 20px 16px;
    }

    .team-avatar {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 12px;
    }

    .team-card h4 {
        font-size: 14px;
    }

    .team-card p {
        font-size: 12px;
        display: none;
    }

    .team-card.center-card {
        padding: 24px 20px;
    }

    .team-card.center-card p {
        display: block;
    }

    .team-card.center-card h4 {
        font-size: 18px;
    }

    .team-avatar.main {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .hub-subtitle {
        font-size: 13px;
    }

    .hub-capabilities {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hub-cap {
        padding: 12px 14px;
        font-size: 12px;
    }

    /* Features */
    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 14px;
    }

    .feature-demo {
        padding: 16px;
    }

    .feature-demo code {
        font-size: 12px;
        line-height: 1.8;
    }

    /* Demo */
    .demo-terminal {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .terminal-header {
        padding: 12px 16px;
    }

    .terminal-title {
        font-size: 12px;
    }

    .terminal-body {
        padding: 16px;
        max-height: 400px;
    }

    .chat-message {
        gap: 12px;
        margin-bottom: 16px;
    }

    .chat-message .avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .message-content {
        padding: 12px 16px;
    }

    .message-content p {
        font-size: 14px;
    }

    .agent-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .backtest-result {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .backtest-result .metric {
        padding: 12px 8px;
    }

    .backtest-result .label {
        font-size: 10px;
    }

    .backtest-result .value {
        font-size: 16px;
    }

    /* Architecture */
    .arch-layer {
        padding: 16px 20px;
    }

    .layer-title {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .layer-items {
        gap: 8px;
    }

    .arch-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    .arch-arrow {
        font-size: 20px;
        padding: 6px 0;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content p {
        font-size: 15px;
        margin-bottom: 32px;
    }

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

    .cta-buttons .btn-primary {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 48px 0 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 48px;
    }

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

    .footer-bottom {
        padding-top: 24px;
    }

    .footer-bottom p {
        font-size: 13px;
    }
}

/* ==========================================
   Responsive - Small Mobile
   ========================================== */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero {
        padding: 90px 16px 50px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .loop-square {
        gap: 6px;
        padding: 12px;
    }

    .loop-node {
        padding: 8px 10px;
        min-width: 60px;
    }

    .loop-node .node-icon {
        font-size: 14px;
    }

    .loop-node .node-text {
        font-size: 9px;
    }

    .loop-arrow {
        font-size: 12px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .team-card {
        padding: 16px 12px;
    }

    .team-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .team-card h4 {
        font-size: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .backtest-result {
        grid-template-columns: 1fr;
    }

    .backtest-result .metric {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }

    .backtest-result .label {
        font-size: 12px;
        margin-bottom: 0;
    }
}

/* Touch-friendly */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    .feature-card:hover,
    .team-card:hover,
    .innovation-card:hover {
        transform: none;
    }

    .nav-links a {
        padding: 16px 24px;
    }

    .lang-btn {
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================
   Download Page
   ========================================== */
.download-hero {
    padding: 140px 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--ds-bg-white);
}

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

.download-hero h1 {
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.download-hero .hero-description {
    font-size: 17px;
    margin-bottom: 0;
}

/* Download Cards Section */
.download-cards-section {
    padding: 80px 0 120px;
    background: var(--ds-bg-white);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.download-card {
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.download-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.download-card.featured {
    border-color: var(--ds-accent);
    box-shadow: var(--shadow-glow);
}

.download-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.featured-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ds-accent-bg);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ds-accent);
    margin-bottom: 12px;
}

.download-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-bg-page);
    border-radius: 16px;
    margin-bottom: 20px;
    color: var(--ds-text-secondary);
}

.download-card.featured .download-card-icon {
    background: var(--ds-accent-bg);
    color: var(--ds-accent);
}

.download-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.download-card-desc {
    font-size: 14px;
    color: var(--ds-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.download-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.spec-tag {
    padding: 4px 10px;
    background: var(--ds-bg-page);
    border-radius: 6px;
    font-size: 12px;
    color: var(--ds-text-tertiary);
    border: 1px solid var(--ds-border);
}

.download-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.download-card-actions .btn-primary,
.download-card-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
}

.download-card-actions .btn-secondary.copied {
    border-color: var(--success);
    color: var(--success);
}

.download-card-terminal {
    background: var(--ds-bg-page);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid var(--ds-border);
}

.download-card-terminal code {
    font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
    font-size: 12px;
    color: var(--ds-text-secondary);
    word-break: break-all;
}

/* Steps Section */
.download-steps-section {
    background: var(--ds-bg-page);
    padding: 120px 0;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--ds-text-secondary);
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 12px;
    color: var(--ds-text-tertiary);
    flex-shrink: 0;
}

/* Capabilities Section */
.download-capabilities-section {
    background: var(--ds-bg-white);
    padding: 120px 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.capability-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--ds-bg-page);
    border-radius: var(--radius-md);
    border: 1px solid var(--ds-border);
    transition: all var(--transition-fast);
}

.capability-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: var(--ds-bg-white);
    box-shadow: var(--shadow-sm);
}

.capability-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.capability-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.capability-item strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-text-primary);
}

.capability-item span {
    font-size: 13px;
    color: var(--ds-text-secondary);
    line-height: 1.5;
}

/* Security Section */
.download-security-section {
    background: var(--ds-bg-page);
    padding: 80px 0;
}

.security-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
    padding: 32px;
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.security-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 14px;
    color: var(--success);
    flex-shrink: 0;
}

.security-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.security-content p {
    font-size: 14px;
    color: var(--ds-text-secondary);
    line-height: 1.7;
}

/* Download Page - Nav Active */
.nav-active {
    color: var(--ds-accent) !important;
}

/* Download Page Responsive - Tablet */
@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

/* Download Page Responsive - Mobile */
@media (max-width: 768px) {
    .download-hero {
        padding: 100px 16px 60px;
    }

    .download-hero h1 {
        font-size: 2rem;
    }

    .download-hero .hero-description {
        font-size: 15px;
    }

    .download-cards-section {
        padding: 40px 0 80px;
    }

    .download-card {
        padding: 28px 20px;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

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

    .security-card {
        flex-direction: column;
        padding: 24px;
    }

    .download-steps-section,
    .download-capabilities-section {
        padding: 60px 0;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ds-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--ds-border-med);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ds-text-tertiary);
}
