/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #07070e;
    --bg-subtle: #0c0c16;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.065);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.14);
    --text: #ededf2;
    --text-secondary: #8e8e9a;
    --text-muted: #555566;
    --accent: #6c8cff;
    --accent-dark: #4c6ef5;
    --accent-glow: rgba(108, 140, 255, 0.18);
    --green: #4ade80;
    --red: #ff4444;
    --purple: #a78bfa;
    --cyan: #22d3ee;
    --orange: #fb923c;
    --pink: #f472b6;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --container: 1100px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 140, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 140, 255, 0.4);
}

/* Selection */
::selection {
    background: rgba(108, 140, 255, 0.3);
    color: white;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #6c8cff, #a78bfa, #f472b6, #6c8cff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== Animations ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.12s;
}

.delay-2 {
    animation-delay: 0.24s;
}

.delay-3 {
    animation-delay: 0.38s;
}

.delay-4 {
    animation-delay: 0.52s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: auto;
    max-width: calc(var(--container) + 48px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    border-radius: 100px;
    background: rgba(12, 12, 22, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 40px;
}

.nav.scrolled .nav-inner {
    background: rgba(10, 10, 16, 0.9);
    border-color: rgba(108, 140, 255, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(108, 140, 255, 0.04);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
}

.nav-logo:hover {
    filter: drop-shadow(0 0 8px rgba(108, 140, 255, 0.4));
}

.nav-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.nav-cta:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 4px 24px rgba(108, 140, 255, 0.3) !important;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 140, 255, 0.35), rgba(76, 110, 245, 0.1), transparent 70%);
    top: -15%;
    left: -10%;
    animation: orbFloat1 14s ease-in-out infinite;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3), rgba(244, 114, 182, 0.1), transparent 70%);
    top: 15%;
    right: -10%;
    animation: orbFloat2 18s ease-in-out infinite;
}

.hero-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.2), rgba(34, 211, 238, 0.08), transparent 70%);
    bottom: 5%;
    left: 25%;
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, 20px) scale(1.05);
    }

    50% {
        transform: translate(50px, 40px) scale(1.12);
    }

    75% {
        transform: translate(20px, 10px) scale(1.03);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 50px) scale(1.04);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(30px, -40px) scale(1.1);
    }

    70% {
        transform: translate(-15px, -20px) scale(1.05);
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 100px;
    border: 1px solid rgba(74, 222, 128, 0.15);
    background: rgba(74, 222, 128, 0.06);
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6), 0 0 20px rgba(74, 222, 128, 0.2);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 6.5vw, 78px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.75;
    font-weight: 400;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font);
    position: relative;
    overflow: hidden;
}

/* Button shine effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(108, 140, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
    border-radius: 16px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-shortcut kbd {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.hero-shortcut kbd:hover {
    border-color: rgba(108, 140, 255, 0.2);
    box-shadow: 0 2px 8px rgba(108, 140, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shortcut-label {
    margin-left: 4px;
}

/* ===== HERO MOCKUP ===== */
.hero-mockup {
    margin-top: 64px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
}

.mockup-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(ellipse at center, rgba(108, 140, 255, 0.12), rgba(167, 139, 250, 0.05), transparent 70%);
    pointer-events: none;
    animation: mockupGlow 4s ease-in-out infinite;
}

@keyframes mockupGlow {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.mockup-window {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(108, 140, 255, 0.1);
    background: rgba(14, 14, 22, 0.95);
    backdrop-filter: blur(40px);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(108, 140, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mockup-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.mockup-search-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 4px rgba(108, 140, 255, 0.3));
}

.mockup-typing {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    min-height: 24px;
    font-family: var(--font);
}

.mockup-typing::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent);
    font-weight: 300;
    text-shadow: 0 0 6px rgba(108, 140, 255, 0.5);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.mockup-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mockup-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-result.show {
    opacity: 1;
    transform: translateY(0);
}

.mockup-result-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(108, 140, 255, 0.2);
}

.mockup-result-body {
    flex: 1;
}

.mockup-result-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mockup-result-value span {
    color: var(--accent);
    font-size: 16px;
    font-weight: 500;
}

.mockup-result-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* ===== SECTIONS ===== */
section {
    padding: 120px 0;
    position: relative;
}

/* Section divider glow */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 140, 255, 0.15), rgba(167, 139, 250, 0.1), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 100px;
    border: 1px solid rgba(108, 140, 255, 0.12);
    background: rgba(108, 140, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== FEATURES GRID ===== */
.features {
    background: var(--bg-subtle);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Gradient border on hover */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), var(--purple), var(--pink), var(--accent));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    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.4s;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.feature-card:hover::before {
    opacity: 1;
}

/* Inner glow on hover */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(108, 140, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(108, 140, 255, 0.04);
}

.feature-card-lg {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.feature-card-lg h3,
.feature-card-lg p,
.feature-card-lg .feature-icon {
    grid-column: 1;
}

.feature-card-lg .feature-preview {
    grid-column: 2;
    grid-row: 1 / 4;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

/* Icon inner shine */
.feature-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 50%);
    pointer-events: none;
}

.currency-icon {
    background: linear-gradient(135deg, rgba(108, 140, 255, 0.18), rgba(108, 140, 255, 0.06));
    color: var(--accent);
    gap: 2px;
    font-size: 14px;
    width: auto;
    padding: 0 16px;
    box-shadow: 0 4px 12px rgba(108, 140, 255, 0.1);
}

.math-icon {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.18), rgba(74, 222, 128, 0.06));
    color: var(--green);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.1);
}

.wiki-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    color: var(--text);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.03);
}

.yt-icon {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15), rgba(255, 68, 68, 0.05));
    color: var(--red);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.08);
}

.search-icon-feat {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(66, 133, 244, 0.05));
    color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.08);
}

.keyboard-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    color: var(--text-secondary);
    font-size: 24px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.feature-preview {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-preview {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== FEATURE MOCKUPS ===== */
.feature-mockup {
    margin-top: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 18, 0.9);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-mockup {
    border-color: rgba(108, 140, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(108, 140, 255, 0.04);
    transform: scale(1.02);
}

.feature-card-lg .feature-mockup {
    grid-column: 2;
    grid-row: 1 / 4;
    margin-top: 0;
    align-self: center;
}

.fm-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.015);
}

.fm-search-icon {
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.6;
}

.fm-typing {
    font-size: 13px;
    font-family: var(--font);
    color: var(--text-secondary);
    min-height: 18px;
    flex: 1;
}

.fm-typing::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent);
    font-weight: 300;
    opacity: 0.6;
}

.fm-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fm-result.show {
    opacity: 1;
    transform: translateY(0);
}

.fm-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.fm-icon-sm {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 11px;
}

.fm-result-body {
    flex: 1;
    min-width: 0;
}

.fm-result-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.fm-result-value span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
}

.fm-result-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Multi-result layout for general search */
.fm-result-multi {
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
}

.fm-result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.fm-result-multi.show .fm-result-row {
    opacity: 1;
    transform: translateX(0);
}

.fm-result-multi.show .fm-result-row:nth-child(1) {
    transition-delay: 0s;
}

.fm-result-multi.show .fm-result-row:nth-child(2) {
    transition-delay: 0.1s;
}

.fm-result-multi.show .fm-result-row:nth-child(3) {
    transition-delay: 0.2s;
}

.fm-result-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.fm-result-link {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}


/* ===== DEMO SECTION ===== */
.demo-section {
    background: var(--bg);
}

.demo-player {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(18, 18, 24, 0.6);
}

.demo-player-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(ellipse at center, rgba(108, 140, 255, 0.06), transparent 70%);
    pointer-events: none;
}

.demo-slideshow {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.demo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
}

.demo-slide.active {
    opacity: 1;
    position: relative;
}

.demo-slide img {
    width: 100%;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

.demo-slide-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(18, 18, 24, 0.95);
    border-top: 1px solid var(--border);
}

.demo-slide-cmd {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}

.demo-slide-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.demo-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 6px;
}

.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    opacity: 0.4;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.demo-dot.active {
    opacity: 1;
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(108, 140, 255, 0.4);
}

.demo-dot:hover {
    opacity: 0.8;
}

.demo-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.demo-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 3px;
    transition: width 3.5s linear;
}

.demo-progress-bar.filling {
    width: 100%;
}

/* ===== COMMANDS SECTION ===== */
.commands-section {
    background: var(--bg-subtle);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.command-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 26px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Terminal-style top bar */
.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--cyan));
    opacity: 0;
    transition: opacity 0.4s;
}

.command-card:hover::before {
    opacity: 1;
}

.command-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(108, 140, 255, 0.04);
}

.command-input {
    font-family: 'Consolas', 'Monaco', 'Fira Code', monospace;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
}

.cmd-prefix {
    color: var(--green);
    margin-right: 6px;
    text-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.command-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--bg);
    padding: 80px 0 120px;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 110px 40px;
    border-radius: 28px;
    border: 1px solid rgba(108, 140, 255, 0.1);
    background: linear-gradient(135deg,
            rgba(108, 140, 255, 0.06),
            rgba(167, 139, 250, 0.04),
            rgba(74, 222, 128, 0.02));
    overflow: hidden;
}

/* Aurora effect */
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(108, 140, 255, 0.06) 60deg,
            transparent 120deg,
            rgba(167, 139, 250, 0.04) 180deg,
            transparent 240deg,
            rgba(74, 222, 128, 0.04) 300deg,
            transparent 360deg);
    animation: auroraRotate 12s linear infinite;
    pointer-events: none;
}

@keyframes auroraRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Floating geometric shapes */
.cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.cta-shape-1 {
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent);
    top: 10%;
    left: 8%;
    animation: shapeFloat1 8s ease-in-out infinite, shapeSpin 20s linear infinite;
    border-radius: 30%;
}

.cta-shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), transparent);
    top: 15%;
    right: 12%;
    animation: shapeFloat2 10s ease-in-out infinite;
    border-radius: 50%;
}

.cta-shape-3 {
    width: 80px;
    height: 80px;
    border: 2px solid var(--green);
    bottom: 15%;
    left: 15%;
    animation: shapeFloat3 12s ease-in-out infinite, shapeSpin 25s linear infinite reverse;
    border-radius: 20%;
}

.cta-shape-4 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--purple), transparent);
    bottom: 20%;
    right: 10%;
    animation: shapeFloat1 9s ease-in-out infinite reverse;
    border-radius: 50%;
}

.cta-shape-5 {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: shapeSpin 15s linear infinite, shapeFloat2 7s ease-in-out infinite;
    border-radius: 35%;
}

@keyframes shapeFloat1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(15px, -20px) rotate(5deg);
    }

    50% {
        transform: translate(-10px, -35px) rotate(-3deg);
    }

    75% {
        transform: translate(20px, -15px) rotate(4deg);
    }
}

@keyframes shapeFloat2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-20px, 15px);
    }

    66% {
        transform: translate(15px, -20px);
    }
}

@keyframes shapeFloat3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(25px, -18px);
    }
}

@keyframes shapeSpin {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
}

.cta-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-actions {
    margin-bottom: 22px;
}

/* Glowing button */
.btn-glow {
    position: relative;
    animation: btnPulse 3s ease-in-out infinite;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), var(--purple), var(--green), var(--accent));
    background-size: 300% 300%;
    animation: borderGlow 4s ease-in-out infinite;
    z-index: -1;
    opacity: 0.45;
    filter: blur(12px);
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 4px 24px var(--accent-glow);
    }

    50% {
        box-shadow: 0 8px 48px rgba(108, 140, 255, 0.35), 0 0 80px rgba(108, 140, 255, 0.08);
    }
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.cta-meta .dot {
    opacity: 0.3;
}

/* ===== FOOTER ===== */
.footer {
    padding: 28px 0;
    border-top: 1px solid transparent;
    background-image: linear-gradient(var(--bg), var(--bg)),
        linear-gradient(90deg, transparent, rgba(108, 140, 255, 0.2), rgba(167, 139, 250, 0.15), transparent);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--text);
    filter: drop-shadow(0 0 6px rgba(108, 140, 255, 0.3));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav {
        top: 8px;
        left: 8px;
        right: 8px;
        transform: none;
        width: auto;
    }

    .nav-inner {
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-lg {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .feature-card-lg .feature-preview {
        grid-column: 1;
        grid-row: auto;
    }

    .commands-grid {
        grid-template-columns: 1fr;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
    }

    section {
        padding: 80px 0;
    }

    .cta-card {
        padding: 56px 24px;
        border-radius: 20px;
    }

    .nav-inner {
        padding: 8px 16px;
    }
}