:root {
    --bg: #07070b;
    --bg-elev: #0d0d14;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(0, 255, 255, 0.25);

    --text: #e6e8ee;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --primary: #00ffff;
    --primary-2: #38bdf8;
    --accent: #a855f7;

    --gradient-primary: linear-gradient(135deg, #00ffff 0%, #38bdf8 50%, #a855f7 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0,255,255,0.12), rgba(168,85,247,0.12));

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 30px rgba(0, 255, 255, 0.18);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --max-width: 1240px;
    --header-h: 72px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

::selection {
    background: rgba(0, 255, 255, 0.25);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #050507;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0e7490, #6d28d9);
    border-radius: 10px;
}

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

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

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

span.accent,
section h1 > span,
.section-head h1 > span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

section {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 120px 32px;
    position: relative;
}

/* Decorative background */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.55;
    animation: float 18s ease-in-out infinite;
}

.orb-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.45), transparent 60%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 60%);
    bottom: -10%;
    right: -8%;
    animation-delay: -6s;
}

.orb-3 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -12s;
}

.grid-overlay {
    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 at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

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

/* Make all section content sit above bg */
section, header, footer {
    position: relative;
    z-index: 1;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-primary);
    z-index: 1000;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section heading */
.section-head {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(0, 255, 255, 0.04);
}

.section-head h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 12px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #04101a;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 255, 255, 0.35);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Social row */
.social-row {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.social-row a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 22px;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 900px) {
    section {
        padding: 80px 20px;
    }
    .section-head {
        margin-bottom: 56px;
    }
}
