:root {
    --bg: #0b0e14;
    --panel: #0f1420;
    --glass: rgba(255, 255, 255, 0.06);
    --text: #e6eef7;
    --muted: #9fb0c3;
    --brand: #8ab4ff;
    --brand-2: #a78bfa;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 40px rgba(0, 0, 0, .45);
    --radius: 16px;
    --radius-sm: 12px;
    --max: 1160px;
}

[data-theme="light"] {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --glass: rgba(0, 0, 0, 0.04);
    --text: #0b0e14;
    --muted: #4a5568;
    --border: rgba(0, 0, 0, 0.08);
    --brand: #2563eb;
    --brand-2: #7c3aed;
    --shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, Segoe UI;
    color: var(--text);
    background: radial-gradient(1200px 600px at 80% -20%, rgba(124, 58, 237, .18), transparent), radial-gradient(1000px 500px at -20% -20%, rgba(37, 99, 235, .18), transparent), var(--bg);
}

/* Layout */
.container {
    width: 92%;
    max-width: var(--max);
    margin: 0 auto
}

.narrow {
    max-width: 780px
}

.section {
    padding: 96px 0
}

.section--alt {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .02))
}

.section__title {
    font-size: 32px;
    margin: 0 0 16px;
    letter-spacing: 0
}

.section__lead {
    color: var(--muted);
    margin: 0 0 28px
}

.center {
    text-align: center
}

.subtle {
    color: var(--muted)
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(160%) blur(10px);
    background: linear-gradient(180deg, rgba(15, 20, 32, .75), rgba(15, 20, 32, .35));
    border-bottom: 1px solid var(--border);
    z-index: 50
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.brand {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text);
    text-decoration: none
}

.nav__links a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 14px;
    transition: opacity .2s
}

.nav__links a:hover {
    opacity: .85
}

.theme {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--glass);
    display: grid;
    place-items: center;
    cursor: pointer
}

.theme__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2))
}

/* Hero */
.hero {
    padding: 120px 0 80px
}

.hero__grid {
    display: grid;
    grid-template-columns:1.1fr .9fr;
    gap: 40px;
    align-items: center
}

.hero__copy h1 {
    font-size: 46px;
    line-height: 1.03;
    margin: 0 0 12px
}

.lead {
    font-size: 18px;
    color: var(--muted)
}

.hero__cta {
    margin: 28px 0 18px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted)
}

.hero__badges span {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px
}

.hero__art {
    position: relative;
    min-height: 360px
}

.rings {
    position: absolute;
    inset: 0;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, .45))
}

.ring {
    fill: none;
    stroke: url(#g1);
    stroke-width: 2;
    opacity: .35;
    animation: spin 24s linear infinite
}

.ring--2 {
    animation-duration: 16s;
    opacity: .45
}

.ring--3 {
    animation-duration: 12s;
    opacity: .65
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.hero__stats {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 22px
}

.hero__stats div {
    display: grid;
    gap: 4px
}

.hero__stats strong {
    font-size: 28px
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: transform .15s, background .2s
}

.btn:hover {
    transform: translateY(-1px)
}

.btn--primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: none;
    color: white
}

.btn--ghost {
    background: var(--glass)
}

/* Cards / Tiles */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--panel);
    box-shadow: var(--shadow)
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid var(--border)
}

.bento {
    display: grid;
    grid-template-columns:repeat(12, 1fr);
    gap: 18px
}

.tile {
    grid-column: span 6;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow)
}

.tile--wide {
    grid-column: span 12
}

.tile--tall {
    grid-row: span 2
}

.tile__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px
}

.pill {
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px
}

.tile__body {
    color: var(--muted)
}

.bullets {
    margin: 10px 0 0 16px;
    color: var(--muted)
}

.bullets li {
    margin: 6px 0
}

/* Expertise */
.grid-3 {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 18px
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0
}

.tags li {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--border)
}

/* Form */
.form {
    display: grid;
    gap: 12px;
    margin-top: 10px
}

.form input, .form textarea {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text)
}

.form input:focus, .form textarea:focus {
    outline: none;
    border-color: var(--brand)
}

/* Footer */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(0deg, rgba(255, 255, 255, .03), transparent)
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center
}

/* Animations (on-scroll) */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.is-visible {
    opacity: 1;
    transform: none
}

/* Utilities */
.glow {
    background: linear-gradient(135deg, #e5edff, #b3c7ff 30%, #cbb6ff 60%, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Responsive */
@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns:1fr
    }

    .bento {
        grid-template-columns:repeat(6, 1fr)
    }

    .tile {
        grid-column: span 6
    }
}

@media (max-width: 640px) {
    .nav__links {
        display: none
    }

    .hero {
        padding-top: 96px
    }

    .grid-3 {
        grid-template-columns:1fr
    }
}
