@font-face {
	font-family: 'BlinkMacSystemFont-Bold';
	src: url('../fonts/blinkmacsystemfont-bold.eot'); /* IE 9 Compatibility Mode */
	src: url('../fonts/blinkmacsystemfont-bold.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('../fonts/blinkmacsystemfont-bold.woff2') format('woff2'), /* Super Modern Browsers */
		url('../fonts/blinkmacsystemfont-bold.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('../fonts/blinkmacsystemfont-bold.ttf') format('truetype'), /* Safari, Android, iOS */
		url('../fonts/blinkmacsystemfont-bold.svg#blinkmacsystemfont-bold') format('svg'); /* Chrome < 4, Legacy iOS */
}

@font-face {
	font-family: 'Segoe UI';
	src: url('../fonts/segoe-ui.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Segoe UI';
	src: url('../fonts/segoe-ui-bold.woff') format('woff');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'Segoe UI';
	src: url('../fonts/segoe-ui-italic.woff') format('woff');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: 'Segoe UI';
	src: url('../fonts/segoe-ui-bold-italic.woff') format('woff');
	font-weight: bold;
	font-style: italic;
}

@font-face {
	font-family: 'Segoe UI';
	src: url('../fonts/segoe-ui-black.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
}

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

:root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --accent: #b4a7d6;
    --accent-muted: #a099bec7;
    --border: #1f1f1f;
    --card-bg: #111111;
    --glass-bg: rgba(17, 17, 17, 0.6);
    --glass-border: rgba(180, 167, 214, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ═══════════════════════════════════════════════════════
   FLOATING NAV BAR
   ═══════════════════════════════════════════════════════ */
.floating-nav {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 90%;
    max-width: 700px;
    pointer-events: none;
}

.floating-nav.visible {
    top: 1rem;
    pointer-events: all;
}

.floating-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-brand {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--fg);
}

.nav-btn {
    padding: 0.45rem 1.2rem !important;
    background: var(--accent-muted) !important;
    color: white !important;
    border-radius: 10px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-btn:hover {
    background: var(--accent) !important;
    transform: translateY(-1px);
}

.nav-btn-secondary {
    background: transparent !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--fg) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
}

.nav-btn-secondary i {
    font-size: 1rem;
    color: #7289da;
}

.nav-btn-secondary:hover {
    background: rgba(114, 137, 218, 0.15) !important;
    border-color: rgba(114, 137, 218, 0.4) !important;
}

/* ═══════════════════════════════════════════════════════
   PARTICLE CANVAS
   ═══════════════════════════════════════════════════════ */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

/* ── Parallax background container ── */
.hero-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    right: -10%;
    bottom: -40%;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
}

/* Base dark gradient — deep charcoal → navy → muted purple */
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 27, 46, 0.95) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(15, 23, 42, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(30, 20, 50, 0.7) 0%, transparent 60%),
        linear-gradient(180deg, #08080c 0%, #0d0d14 30%, #0f0e18 60%, #0a0a0a 100%);
}

/* Floating ambient orbs — each on its own parallax speed */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    will-change: transform;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(59, 130, 246, 0.08) 60%, transparent 80%);
    animation: orbDrift1 22s ease-in-out infinite;
}

.hero-orb--2 {
    width: 450px;
    height: 450px;
    bottom: 5%;
    left: -8%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, rgba(180, 167, 214, 0.06) 60%, transparent 80%);
    animation: orbDrift2 18s ease-in-out infinite;
}

.hero-orb--3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, rgba(180, 167, 214, 0.15) 0%, transparent 70%);
    animation: orbDrift3 25s ease-in-out infinite;
}

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

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30%  { transform: translate(25px, -15px) scale(1.04); }
    60%  { transform: translate(-20px, 25px) scale(0.96); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%  { transform: translate(20px, 30px) scale(1.06); }
    70%  { transform: translate(-15px, -20px) scale(0.98); }
}

/* Subtle dot grid overlay for depth */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
}

/* Film-grain noise texture (CSS-only) */
.hero-noise {
    position: absolute;
    inset: 0;
    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: 200px 200px;
    mix-blend-mode: overlay;
}

/* Vignette — darkens edges */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(6, 6, 10, 0.6) 100%);
}

/* Bottom fade — bleeds the hero gradient smoothly into the page bg */
.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.4) 30%, rgba(10, 10, 10, 0.75) 60%, #0a0a0a 100%);
    pointer-events: none;
    z-index: 1;
}

/* Keep old float keyframes for backwards compat */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

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

.logo {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.tagline {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    min-height: 2.4rem;
}

.tagline .cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

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

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

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-muted);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #60a5fa, var(--accent));
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 3s ease infinite;
    filter: blur(12px);
}

.btn-primary:hover::after {
    opacity: 0.6;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(180, 167, 214, 0.4), 0 0 40px rgba(180, 167, 214, 0.15);
}

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

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--fg) 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--accent);
    opacity: 0.5;
    font-size: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-card-indicator {
    opacity: 1;
    transform: translateY(3px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(180, 167, 214, 0.25), rgba(96, 165, 250, 0.15), rgba(180, 167, 214, 0.2), transparent);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.feature-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(180, 167, 214, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--fg);
}

.feature-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Commands Section */
.commands {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
}

.command-categories {
    display: grid;
    gap: 2rem;
}

.category {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

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

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 2rem;
    color: var(--accent);
}

.category-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fg);
}

.command-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.command-item {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.command-item-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: var(--accent);
    opacity: 0.4;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.command-item:hover .command-item-indicator {
    opacity: 1;
}

.command-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
}

.command-name {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
}

.command-aliases {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    font-family: 'Courier New', monospace;
}

.command-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Stats Section */
.stats {
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: #64748b;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   HAMBURGER BUTTON (hidden on desktop)
   ═══════════════════════════════════════════════════════ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 768px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    /* ── Navbar ── */
    .floating-nav {
        width: 94%;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: 0;
        background: rgba(10, 10, 10, 0.92);
        backdrop-filter: blur(20px) saturate(1.4);
        -webkit-backdrop-filter: blur(20px) saturate(1.4);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 0.75rem;
        gap: 0.25rem;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    }

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

    .nav-links a {
        padding: 0.65rem 1rem;
        border-radius: 8px;
        font-size: 0.95rem;
        text-align: left;
        width: 100%;
    }

    .nav-links a:hover {
        background: rgba(180, 167, 214, 0.08);
    }

    .nav-btn {
        text-align: center !important;
        justify-content: center;
    }

    .nav-btn-secondary {
        justify-content: center !important;
    }

    /* ── Hero ── */
    .logo {
        font-size: 4rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* ── Sections ── */
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .features {
        padding: 4rem 0;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .feature-title {
        font-size: 1.3rem;
    }

    /* ── Commands ── */
    .commands {
        padding: 4rem 0;
    }

    .command-list {
        grid-template-columns: 1fr;
    }

    .category {
        padding: 1.5rem;
    }

    .category-name {
        font-size: 1.5rem;
    }

    /* ── Stats ── */
    .stats {
        padding: 4rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 2.25rem;
    }

    /* ── Footer ── */
    .footer-links {
        gap: 1rem;
    }

    /* ── Modal ── */
    .modal.active {
        padding: 1rem;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* ── Navbar ── */
    .floating-nav {
        width: 96%;
    }

    .floating-nav-inner {
        padding: 0.6rem 1rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    /* ── Hero ── */
    .hero {
        min-height: 90vh;
    }

    .logo {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        font-size: 1.5rem;
        bottom: 1.5rem;
    }

    /* ── Sections ── */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }

    .features {
        padding: 3rem 0;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-title {
        font-size: 1.15rem;
    }

    .feature-desc {
        font-size: 0.875rem;
    }

    /* ── Commands ── */
    .commands {
        padding: 3rem 0;
    }

    .category {
        padding: 1.25rem;
    }

    .category-icon {
        font-size: 1.5rem;
    }

    .category-name {
        font-size: 1.25rem;
    }

    .command-item {
        padding: 0.75rem;
    }

    .command-name {
        font-size: 0.85rem;
    }

    .command-desc {
        font-size: 0.8rem;
    }

    /* ── Stats ── */
    .stats {
        padding: 3rem 0;
    }

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

    .stat-value {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-item {
        padding: 1rem;
    }

    /* ── Footer ── */
    .footer {
        padding: 2rem 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* ── Modal ── */
    .modal.active {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .modal-content {
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
    }

    .modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-usage {
        font-size: 0.8rem;
        padding: 0.75rem;
    }

    .modal-example {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — VERY SMALL MOBILE  (≤ 360px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

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

    .category-name {
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Courier New', monospace;
}

.modal-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.5rem;
    line-height: 1;
}

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

.modal-body {
    padding: 2rem;
}

.modal-aliases {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
}

.modal-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.75rem;
}

.modal-usage {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 0.9rem;
}

.modal-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-example {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #94a3b8;
}

.modal-note {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    border-radius: 4px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATION SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* Base reveal state — all animated elements start hidden */
[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Directional starting positions */
[data-reveal="up"]    { transform: translateY(60px); }
[data-reveal="down"]  { transform: translateY(-60px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(0.85); }
[data-reveal="fade"]  { transform: none; }

/* Revealed state */
[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger delay via custom property — set by JS */
[data-reveal] {
    transition-delay: var(--reveal-delay, 0s);
}

/* Section title clip-reveal */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1) 0.15s;
}

.section-title.revealed::after {
    transform: scaleX(0);
}

/* Hero parallax fade — driven by JS --scroll-progress */
.hero {
    --scroll-progress: 0;
}

.hero-bg {
    transform: translateY(calc(var(--scroll-progress) * -40px));
}

.hero-orb--1 {
    transform: translateY(calc(var(--scroll-progress) * 60px));
}

.hero-orb--2 {
    transform: translateY(calc(var(--scroll-progress) * 35px));
}

.hero-orb--3 {
    transform: translateY(calc(var(--scroll-progress) * 90px));
}

.hero-content {
    transition: none;
    transform: translateY(calc(var(--scroll-progress) * 100px));
    opacity: calc(1 - var(--scroll-progress) * 1.5);
}

.scroll-indicator {
    opacity: calc(0.4 - var(--scroll-progress) * 2);
}

/* Feature card enhanced hover micro-interactions */
.feature-card {
    transition:
        border-color 0.3s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.45s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(180, 167, 214, 0.15),
        0 0 40px rgba(180, 167, 214, 0.06);
}

.feature-card .feature-icon {
    transition: none;
}

.feature-card:hover .feature-icon {
    transform: none;
}

/* Category card reveal */
.category {
    transition:
        border-color 0.3s ease,
        box-shadow 0.45s ease;
}

.category:hover {
    border-color: var(--glass-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* Command items — no stagger animation, always visible */
.command-item {
    opacity: 1;
}

/* Stat items — counter pulse on reveal */
.stat-item.revealed .stat-value {
    animation: statPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes statPop {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.stat-item .stat-value {
    opacity: 0;
}

/* Stat label fade-in after value */
.stat-item.revealed .stat-label {
    animation: fadeInUp 0.5s ease 0.3s forwards;
    opacity: 0;
}

.stat-item .stat-label {
    opacity: 0;
}

/* Footer links stagger */
.footer-content:not(.revealed) .footer-link {
    opacity: 0;
    transform: translateY(10px);
}

.footer-content.revealed .footer-link {
    animation: footerLinkIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

/* Smooth line separator between sections */
.features::before,
.commands::before,
.stats::before {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto 4rem;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.features.section-visible::before,
.commands.section-visible::before,
.stats.section-visible::before {
    width: 120px;
}

/* Glow pulse on accent elements when revealed */
@keyframes glowPulse {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.3); }
    100% { filter: brightness(1); }
}

.feature-card.revealed .feature-icon {
    animation: glowPulse 1.5s ease 0.4s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    .section-title::after,
    .hero-content,
    .scroll-indicator,
    .feature-card,
    .category,
    .stat-item .stat-value,
    .stat-item .stat-label {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .section-title::after {
        display: none;
    }
    .category.revealed .command-item,
    .footer-content.revealed .footer-link,
    .footer-content:not(.revealed) .footer-link {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--fg);
    opacity: 0.4;
    cursor: pointer;
    animation: bounce 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}
