/* ============================================================
   MiMo-TUI — Premium Dark UI
   ============================================================ */

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

:root {
    --primary: #7c5cfc;
    --primary-light: #a78bfa;
    --primary-dark: #5b3fd4;
    --accent: #06d6a0;
    --accent-light: #6ff7d8;
    --pink: #f472b6;
    --cyan: #22d3ee;
    --orange: #fb923c;

    --bg: #06060e;
    --bg-elevated: #0c0c1d;
    --bg-card: rgba(16, 16, 38, 0.55);
    --bg-card-solid: #10102a;
    --text: #e8e8f4;
    --text-muted: #7a7aa0;
    --border: rgba(124, 92, 252, 0.12);
    --border-hover: rgba(124, 92, 252, 0.35);

    --glass: rgba(16, 16, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 20px;

    --gradient: linear-gradient(135deg, #7c5cfc 0%, #06d6a0 50%, #22d3ee 100%);
    --gradient-vivid: linear-gradient(135deg, #a78bfa, #f472b6, #06d6a0);
    --glow-primary: 0 0 30px rgba(124, 92, 252, 0.35);
    --glow-accent: 0 0 30px rgba(6, 214, 160, 0.3);

    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(124, 92, 252, 0.6);
}

/* ===== Grain Overlay ===== */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* ===== Cursor Glow (follows mouse) ===== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.4s var(--ease-out-expo), top 0.4s var(--ease-out-expo);
    will-change: left, top;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(6, 6, 14, 0.6);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(6, 6, 14, 0.88);
    border-bottom-color: var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.3rem;
    position: relative;
}

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

.logo i {
    color: var(--accent);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 6px rgba(6, 214, 160, 0.5));
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.35s var(--ease-out-expo), left 0.35s var(--ease-out-expo);
}

.nav-links a:hover { color: #fff; }

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

.menu-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
    transition: color 0.2s;
}

.menu-toggle:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* Aurora Background */
.aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.aurora__item {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: aurora-drift 18s ease-in-out infinite alternate;
}

.aurora__item:nth-child(1) {
    top: -20%;
    left: -10%;
    background: var(--primary);
    animation-delay: 0s;
}

.aurora__item:nth-child(2) {
    top: 20%;
    right: -15%;
    background: var(--accent);
    animation-delay: -6s;
    animation-duration: 22s;
}

.aurora__item:nth-child(3) {
    bottom: -10%;
    left: 30%;
    background: var(--pink);
    animation-delay: -12s;
    animation-duration: 25s;
    opacity: 0.15;
}

@keyframes aurora-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(40px, -30px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(30px, -10px) scale(1.05); }
}

/* Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 2;
}

/* Hero Content */
.hero-content { flex: 1; }

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-vivid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--glow-primary), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-primary::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(124, 92, 252, 0.5), 0 8px 30px rgba(0,0,0,0.3);
}

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

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    background: rgba(124, 92, 252, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(124, 92, 252, 0.15);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.6rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ===== Terminal Window ===== */
.hero-visual {
    flex: 1;
    max-width: 540px;
    perspective: 1000px;
}

.terminal-window {
    background: rgba(12, 12, 30, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03),
        0 25px 80px rgba(0,0,0,0.6),
        0 0 60px rgba(124, 92, 252, 0.08);
    animation: terminal-float 8s ease-in-out infinite;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

@keyframes terminal-float {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50%      { transform: translateY(-12px) rotateX(1deg); }
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(10, 10, 24, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

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

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

.terminal-buttons span:hover { filter: brightness(1.3); }

.btn-close    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.3); }
.btn-minimize { background: #ffbd2e; box-shadow: 0 0 6px rgba(255,189,46,0.3); }
.btn-maximize { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.3); }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 22px 24px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    min-height: 220px;
    line-height: 2;
}

.terminal-line {
    margin-bottom: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.prompt {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(6, 214, 160, 0.4);
}

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

.response {
    color: var(--text-muted);
    padding-left: 22px;
}

.thinking {
    color: var(--primary-light);
    font-style: italic;
}

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

.result::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 6px var(--accent);
    vertical-align: middle;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 8px var(--accent);
    vertical-align: middle;
}

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

/* ===== Section Common ===== */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    background: var(--gradient-vivid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===== Features ===== */
.features {
    background: linear-gradient(180deg, var(--bg) 0%, #08081a 100%);
}

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

.feature-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    backdrop-filter: blur(var(--glass-blur));
    transition: all 0.45s var(--ease-out-expo);
    overflow: hidden;
}

/* Glow border on hover */
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: var(--gradient);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s;
}

/* Inner glow */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.4), transparent);
    opacity: 0;
    transition: opacity 0.45s;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(16, 16, 42, 0.7);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(124,92,252,0.06);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after  { opacity: 1; }

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(124, 92, 252, 0.1);
    font-size: 1.4rem;
    color: var(--primary-light);
    transition: all 0.45s var(--ease-out-expo);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--glow-primary);
    transform: scale(1.08);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===== Workflow ===== */
.workflow {
    background: var(--bg);
}

.workflow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,92,252,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.workflow-steps {
    display: flex;
    gap: 40px;
    justify-content: center;
    position: relative;
}

/* Connecting line between steps */
.workflow-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% - 300px);
    width: 600px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.2;
    z-index: 0;
}

.step {
    flex: 1;
    max-width: 320px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 52px;
    height: 52px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--gradient);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: var(--glow-primary);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: var(--gradient);
    opacity: 0.2;
    z-index: -1;
    filter: blur(8px);
}

.step-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.step-example {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px 18px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.step-example code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.01em;
}

/* ===== Installation ===== */
.installation {
    background: linear-gradient(180deg, #08081a, var(--bg));
}

.installation-methods {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 660px;
    margin: 0 auto;
}

.method h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.code-block {
    position: relative;
    background: rgba(12, 12, 30, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 24px;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s;
}

.code-block:hover {
    border-color: var(--border-hover);
}

.code-block pre {
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--accent);
    text-shadow: 0 0 12px rgba(6, 214, 160, 0.2);
}

.copy-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(124, 92, 252, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 7px 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(8px);
}

.copy-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--glow-primary);
}

.installation-note {
    margin-top: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.installation-note i {
    color: var(--primary-light);
}

.installation-note code {
    font-family: var(--font-mono);
    color: var(--accent);
    background: rgba(6, 214, 160, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(6, 214, 160, 0.12);
}

/* ===== About ===== */
.about {
    background: var(--bg);
}

.about-content {
    display: flex;
    gap: 64px;
    align-items: center;
}

.about-text { flex: 1; }

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
    background: var(--gradient-vivid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 800;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.about-highlights {
    display: flex;
    gap: 28px;
    margin-top: 28px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}

.highlight:hover {
    border-color: var(--border-hover);
}

.highlight i {
    color: var(--accent);
    font-size: 1.1rem;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px 28px;
    backdrop-filter: blur(var(--glass-blur));
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124,92,252,0.04), transparent);
    transition: left 0.6s;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(124, 92, 252, 0.1);
    font-size: 1.2rem;
    color: var(--primary-light);
    transition: all 0.4s;
    flex-shrink: 0;
}

.stat-card:hover .stat-icon {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--glow-primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-info .stat-number {
    font-size: 1.35rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-section h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--text);
    font-weight: 600;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.25s;
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons { justify-content: center; }
    .hero-stats   { justify-content: center; }
    .hero-visual  { max-width: 500px; }

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

    .about-content {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(6, 6, 14, 0.96);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding: 28px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }

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

    .hero-stats {
        gap: 28px;
        flex-wrap: wrap;
    }

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

    .workflow-steps {
        flex-direction: column;
        align-items: center;
    }

    .workflow-steps::before { display: none; }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links { justify-content: center; }

    .about-highlights {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }

::-webkit-scrollbar-thumb {
    background: rgba(124, 92, 252, 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== Selection ===== */
::selection {
    background: rgba(124, 92, 252, 0.3);
    color: #fff;
}

/* ===== Scroll Reveal ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Particle (JS generated) ===== */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-light);
    pointer-events: none;
    opacity: 0;
    animation: particle-rise linear forwards;
}

@keyframes particle-rise {
    0%   { opacity: 0; transform: translateY(0) scale(0); }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.1; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* ===========================================================
   ∞ logo mark
   =========================================================== */
.logo-mark {
    display: inline-block;
    font-size: 1.6rem;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.45));
    transform: translateY(1px);
    transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
    transform: translateY(1px) rotate(180deg);
}

/* ===========================================================
   Hero status badges
   =========================================================== */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(6px);
    text-transform: uppercase;
}

.hero-badge:nth-child(2) {
    color: #f472b6;
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.25);
}

.hero-badge:nth-child(3) {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

.hero-badge:nth-child(4) {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
}
