*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
    background: linear-gradient(
        135deg,
        #0A1128 0%,
        #111D3F 30%,
        #0D2137 50%,
        #111D3F 70%,
        #0A1128 100%
    );
    position: relative;
}

.hero-overlay {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(52, 211, 153, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 20% 60%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 80% 40%, rgba(94, 234, 212, 0.05) 0%, transparent 60%);
}

/* ── Particles ────────────────────────────────────── */
.hero-particles {
    perspective: 800px;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(94, 234, 212, 0.4);
    border-radius: 50%;
    top: 20%;
    animation: float 8s ease-in-out infinite;
}

.particle::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: rgba(94, 234, 212, 0.1);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-40px) translateX(15px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) translateX(-10px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-60px) translateX(20px) scale(1.1);
        opacity: 0.7;
    }
}

/* ── Hero Content Animations ─────────────────────── */
.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-description {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

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

/* ── Scroll Indicator ─────────────────────────────── */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

@keyframes fadeIn {
    to { opacity: 0.5; }
}

/* ── Scroll Reveal ────────────────────────────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar ───────────────────────────────────────── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #34D399;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-scrolled {
    background: rgba(10, 17, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Cards ────────────────────────────────────────── */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(52, 211, 153, 0.2);
}

/* ── Buttons ──────────────────────────────────────── */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ── Mobile Menu ──────────────────────────────────── */
.mobile-link {
    position: relative;
}

/* ── Form ─────────────────────────────────────────── */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

/* ── 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;
    }
    .particle {
        display: none;
    }
    .scroll-indicator {
        display: none;
    }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title span {
        display: block;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4rem;
    }
}
