/* ============================================================
   DoFast — Main Stylesheet
   Design: Dark futuristic with glowing accents
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Colors */
    --bg-primary: #06080f;
    --bg-secondary: #0a0e1a;
    --bg-tertiary: #0f1525;
    --bg-card: rgba(15, 21, 37, 0.6);
    --bg-card-hover: rgba(20, 28, 50, 0.8);

    --color-primary: #3b82f6;
    --color-primary-light: #60a5fa;
    --color-primary-dark: #2563eb;
    --color-cyan: #06b6d4;
    --color-purple: #8b5cf6;
    --color-purple-light: #a78bfa;
    --color-emerald: #10b981;
    --color-amber: #f59e0b;
    --color-red: #ef4444;
    --color-pink: #ec4899;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-dim: #475569;

    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-light: rgba(148, 163, 184, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    --gradient-accent: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    --gradient-text: linear-gradient(135deg, var(--color-primary), var(--color-cyan), var(--color-purple));
    --gradient-card-border: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.3));

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3.5rem;
    --fs-6xl: 4.5rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Navbar */
    --navbar-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

ul, ol { list-style: none; }

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

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

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    z-index: 10;
}
.logo:hover {
    transform: translateY(-1px);
}
.logo__icon {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
    animation: logoPulse 3s ease-in-out infinite;
}
.logo__text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.logo__highlight {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo--sm .logo__icon { width: 26px; height: 26px; }
.logo--sm .logo__text { font-size: 1.3rem; }

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.25)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.45)); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-blue);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}
.btn--outline {
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}
.btn--outline:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}
.btn--glow {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-blue);
    font-size: var(--fs-xs);
    padding: 0.5rem 1.2rem;
}
.btn--glow:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}
.btn--sm { padding: 0.5rem 1rem; font-size: var(--fs-xs); }
.btn--lg { padding: 0.85rem 2rem; font-size: var(--fs-base); }
.btn--full { width: 100%; }
.btn__arrow {
    transition: transform var(--transition-base);
}
.btn:hover .btn__arrow {
    transform: translateX(4px);
}
.btn__loading { display: none; }
.btn.is-loading .btn__text { display: none; }
.btn.is-loading .btn__loading { display: inline; }
.btn.is-loading .btn__arrow { display: none; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: all var(--transition-base);
}
.navbar.scrolled {
    background: rgba(6, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.nav__link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-base);
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}
.nav__link:hover {
    color: var(--text-primary);
}
.nav__link:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}
.hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 15, 0.97);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}
.mobile-menu__link {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-base);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-slow);
}
.mobile-menu.is-open .mobile-menu__link {
    transform: translateY(0);
    opacity: 1;
}
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 100ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 150ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 200ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 250ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 300ms; }
.mobile-menu__link:hover {
    color: var(--color-primary-light);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + var(--space-2xl)) 0 var(--space-2xl);
    overflow: hidden;
}

/* Hero Background */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    animation: gridPulse 4s ease-in-out infinite;
}

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

/* Aurora Effect */
.hero__aurora {
    position: absolute;
    inset: -50%;
    background:
        conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(59, 130, 246, 0.08) 60deg,
            transparent 120deg,
            rgba(139, 92, 246, 0.08) 180deg,
            transparent 240deg,
            rgba(6, 182, 212, 0.08) 300deg,
            transparent 360deg
        );
    animation: auroraRotate 20s linear infinite;
    filter: blur(40px);
}
@keyframes auroraRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 8s ease-in-out infinite;
}
.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary), transparent 70%);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
}
.hero__orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-purple), transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: -3s;
}
.hero__orb--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-cyan), transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: -5s;
    opacity: 0.3;
}
.hero__orb--4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--color-pink), transparent 70%);
    top: 20%;
    left: 20%;
    animation-delay: -7s;
    opacity: 0.2;
    animation-duration: 10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.08); }
    50% { transform: translate(-30px, 40px) scale(0.92); }
    75% { transform: translate(30px, 30px) scale(1.04); }
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: rgba(59, 130, 246, 0.05);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}
.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-emerald);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-6xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

/* Glowing period */
.hero__title-glow {
    -webkit-text-fill-color: var(--color-cyan);
    color: var(--color-cyan);
    text-shadow: 0 0 20px var(--color-cyan), 0 0 40px var(--color-cyan), 0 0 80px rgba(6, 182, 212, 0.4);
    animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 20px var(--color-cyan), 0 0 40px var(--color-cyan), 0 0 80px rgba(6, 182, 212, 0.4); }
    50% { text-shadow: 0 0 30px var(--color-cyan), 0 0 60px var(--color-cyan), 0 0 120px rgba(6, 182, 212, 0.6); }
}

.hero__subtitle {
    font-size: var(--fs-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

/* Typing Effect */
.typing-wrapper {
    display: block;
    min-height: 3em;
}
.typing {
    color: var(--color-cyan);
    font-weight: 600;
    border-right: 2px solid var(--color-cyan);
    animation: blink 0.8s step-end infinite;
}
@keyframes blink {
    50% { border-color: transparent; }
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}
.stat {
    text-align: center;
}
.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}
.stat__label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: fadeInUp 1s ease 1.5s both;
}
.scroll-indicator__mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-indicator__wheel {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}
.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}
.section__label {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}
.section__title {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}
.section__desc {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- About ---------- */
.about__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.about-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-card-border);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow-blue), 0 20px 40px rgba(0, 0, 0, 0.3);
}
.about-card:hover::before {
    opacity: 1;
}

.about-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
}
.about-card__icon svg {
    width: 24px;
    height: 24px;
}
.about-card__title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}
.about-card__text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Products ---------- */
.products__category {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}
.products__category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.products__category-dot--active {
    background: var(--color-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.products__category-dot--internal {
    background: var(--color-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}
.products__grid--internal {
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}
.product-card--public {
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-lg);
}
.product-card--public:hover {
    box-shadow: var(--shadow-glow-blue), 0 20px 40px rgba(0, 0, 0, 0.3);
}
.product-card--internal:hover {
    box-shadow: var(--shadow-glow-purple), 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.2);
}

.product-card__badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-card__badge--active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.product-card__badge--internal {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.product-card__badge--beta {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.product-card__badge--new {
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.product-card__badge--legacy {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.product-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.product-card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
}
.product-card__icon-css {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}
.product-card__icon-css svg {
    width: 24px;
    height: 24px;
}
.product-card__icon-css--youtube {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
}
.product-card__icon-css--video {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-amber);
}
.product-card__icon-css--vidpilot {
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-cyan);
}
.product-card__icon-css--twitter {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
}

.product-card__name {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
}
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.product-card__rating .stars {
    color: var(--color-amber);
}
.product-card__status {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.product-card__desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex: 1;
}
.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: var(--space-sm);
}
.tag {
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 500;
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}
.product-card__link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary-light);
    transition: var(--transition-base);
}
.product-card--public:hover .product-card__link,
a.product-card--internal:hover .product-card__link {
    color: var(--color-cyan);
}
a.product-card--internal {
    cursor: pointer;
}

/* ---------- Capabilities ---------- */
.capabilities__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.capability-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
    position: relative;
    backdrop-filter: blur(10px);
}
.capability-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: var(--shadow-glow-cyan), 0 20px 40px rgba(0, 0, 0, 0.3);
}
.capability-card__number {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    margin-bottom: var(--space-sm);
    line-height: 1;
}
.capability-card__title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}
.capability-card__text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}
.capability-card__line {
    height: 3px;
    width: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    margin-top: var(--space-md);
    transition: width var(--transition-base);
}
.capability-card:hover .capability-card__line {
    width: 80px;
}

/* ---------- Terminal ---------- */
.terminal {
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0d1117;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 130, 246, 0.08);
    transition: box-shadow var(--transition-slow);
}
.terminal:hover {
    box-shadow: var(--shadow-lg), 0 0 80px rgba(59, 130, 246, 0.15);
}
.terminal__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid var(--border-subtle);
}
.terminal__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }
.terminal__title {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    margin-left: auto;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}
.terminal__body {
    padding: var(--space-md);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: var(--fs-sm);
    line-height: 1.8;
}
.terminal__line {
    white-space: nowrap;
    overflow: hidden;
}
.terminal__prompt {
    color: var(--color-emerald);
    font-weight: 700;
}
.terminal__cmd {
    color: var(--text-primary);
}
.terminal__line--output {
    color: var(--text-muted);
    padding-left: 1.2rem;
}
.terminal__success {
    color: var(--color-emerald);
}
.terminal__info {
    color: var(--color-cyan);
}
.terminal__highlight {
    color: var(--color-primary-light);
    font-weight: 600;
}
.terminal__cursor {
    color: var(--color-emerald);
    animation: blink 1s step-end infinite;
}

/* Terminal reveal animation */
.terminal.is-visible .terminal__line {
    animation: terminalType 0.5s ease both;
}
.terminal.is-visible .terminal__line:nth-child(1) { animation-delay: 0.1s; }
.terminal.is-visible .terminal__line:nth-child(2) { animation-delay: 0.4s; }
.terminal.is-visible .terminal__line:nth-child(3) { animation-delay: 0.7s; }
.terminal.is-visible .terminal__line:nth-child(4) { animation-delay: 1.0s; }
.terminal.is-visible .terminal__line:nth-child(5) { animation-delay: 1.3s; }
.terminal.is-visible .terminal__line:nth-child(6) { animation-delay: 1.6s; }
.terminal.is-visible .terminal__line:nth-child(7) { animation-delay: 1.9s; }
.terminal.is-visible .terminal__line:nth-child(8) { animation-delay: 2.2s; }

@keyframes terminalType {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Initially hide terminal lines */
.terminal .terminal__line {
    opacity: 0;
}

/* ---------- CTA Section ---------- */
.cta-box {
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 0 80px rgba(139, 92, 246, 0.08);
    transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}
.cta-box:hover {
    box-shadow: 0 0 100px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}
.cta-box__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}
.cta-box__content {
    position: relative;
    z-index: 1;
}
.cta-box__title {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}
.cta-box__text {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: var(--space-md);
}
.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}
.form-input::placeholder {
    color: var(--text-dim);
}
.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ---------- Footer ---------- */
.footer {
    padding: var(--space-3xl) 0 var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}
.footer__tagline {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    max-width: 280px;
}
.footer__heading {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer__link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    transition: color var(--transition-base);
    margin-bottom: 0.6rem;
}
.footer__link:hover {
    color: var(--text-primary);
}
.footer__social-icon {
    width: 16px;
    height: 16px;
}
.footer__bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--text-dim);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.about__grid .reveal:nth-child(2) { transition-delay: 100ms; }
.about__grid .reveal:nth-child(3) { transition-delay: 200ms; }
.about__grid .reveal:nth-child(4) { transition-delay: 300ms; }

.capabilities__grid .reveal:nth-child(2) { transition-delay: 100ms; }
.capabilities__grid .reveal:nth-child(3) { transition-delay: 200ms; }
.capabilities__grid .reveal:nth-child(4) { transition-delay: 300ms; }

/* ---------- Section Dividers ---------- */
.section-divider {
    display: flex;
    justify-content: center;
    padding: 0;
}
.section-divider__line {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-cyan), var(--color-purple), transparent);
    position: relative;
}
.section-divider__line::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-cyan), 0 0 20px var(--color-cyan);
}

/* ---------- Cursor Glow ---------- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}
.cursor-glow.is-active {
    opacity: 1;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    backdrop-filter: blur(20px);
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-3px);
}
.back-to-top svg {
    width: 20px;
    height: 20px;
}
.back-to-top__progress {
    position: absolute;
    inset: -2px;
    pointer-events: none;
}
.back-to-top__progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.back-to-top__progress circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-dasharray: 100.53;
    stroke-dashoffset: 100.53;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s ease;
}

/* ---------- Enhanced Card Hover Shimmer ---------- */
.about-card::after,
.product-card--public::after,
.capability-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(59, 130, 246, 0.03) 45%,
        rgba(59, 130, 246, 0.06) 50%,
        rgba(59, 130, 246, 0.03) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: none;
    pointer-events: none;
}
.about-card:hover::after,
.product-card--public:hover::after,
.capability-card:hover::after {
    animation: cardShimmer 0.8s ease forwards;
}
@keyframes cardShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ---------- Noise Texture Overlay ---------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* ---------- Fade In Up Keyframe ---------- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

@media (max-width: 1024px) {
    .hero__title { font-size: var(--fs-5xl); }
    .about__grid { grid-template-columns: repeat(2, 1fr); }
    .products__grid--internal { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer__grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
        --fs-6xl: 3rem;
        --fs-5xl: 2.5rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.5rem;
        --space-4xl: 5rem;
        --space-3xl: 4rem;
    }

    .nav { display: none; }
    .navbar .btn--glow { display: none; }
    .hamburger { display: flex; }

    .hero__stats {
        gap: var(--space-lg);
    }
    .stat__number { font-size: var(--fs-3xl); }

    .about__grid { grid-template-columns: 1fr; }
    .products__grid { grid-template-columns: 1fr; }
    .products__grid--internal { grid-template-columns: 1fr; }
    .capabilities__grid { grid-template-columns: 1fr; }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .cta-box { padding: var(--space-2xl) var(--space-md); }

    .terminal__body {
        font-size: var(--fs-xs);
        overflow-x: auto;
    }
}

/* Hide cursor glow on touch devices */
@media (hover: none) {
    .cursor-glow { display: none; }
}

@media (max-width: 480px) {
    :root {
        --fs-6xl: 2.2rem;
        --fs-5xl: 2rem;
    }

    .hero__stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .terminal .terminal__line {
        opacity: 1;
    }
}
