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

/* ── Custom properties ─────────────────────────────── */
:root {
    --color-bg: #050a10;
    --color-surface: #0c1220;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-text: #c8cdd5;
    --color-text-muted: #6b7280;
    --color-heading: #f0f2f5;
    --color-accent: #3b82f6;
    --color-accent-soft: rgba(59, 130, 246, 0.15);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --max-width: 1080px;
}

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

/* ── Background effects ────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.bg-glow--1 {
    background: var(--color-accent);
    top: -200px;
    right: -100px;
}

.bg-glow--2 {
    background: #6366f1;
    bottom: -200px;
    left: -150px;
}

/* ── Nav ───────────────────────────────────────────── */
.nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__icon {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.nav__name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-heading);
    letter-spacing: 0.02em;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.hero__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero__title--accent {
    background: linear-gradient(135deg, var(--color-accent), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 560px;
    line-height: 1.75;
}

/* ── Service cards ─────────────────────────────────── */
.services {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-4px);
}

.card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-soft);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--color-accent);
}

.card__icon svg {
    width: 22px;
    height: 22px;
}

.card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.card__text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ── CTA section ───────────────────────────────────── */
.cta {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.cta__content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    text-align: center;
}

.cta__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1rem;
}

.cta__text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta__coming-soon {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    color: #374151;
    font-size: 0.85rem;
}

/* ── Fade-in animation ─────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
    .hero {
        padding: 4rem 1.25rem 3rem;
    }

    .services,
    .cta {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .cta__content {
        padding: 2.5rem 1.5rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }
}
