/* ============================================================
   Gigabex — site styles
   ============================================================ */
:root {
    --bg: #0b0d16;
    --bg-alt: #101322;
    --surface: #151931;
    --line: rgba(255, 255, 255, 0.08);
    --text: #eef0f8;
    --text-muted: #9aa1b9;
    --primary: #6c5ce7;
    --accent: #00cec9;
    --grad: linear-gradient(120deg, #6c5ce7 0%, #00cec9 100%);
    --radius: 18px;
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1140px, 92%); margin-inline: auto; }

h1, h2, h3, dt { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead { color: var(--text-muted); font-size: 1.12rem; max-width: 46rem; }
.muted { color: var(--text-muted); font-size: 0.92rem; }
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 13, 22, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-mark svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1rem; }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(108, 92, 231, 0.5); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 7.5rem 0 5rem; overflow: hidden; }
.hero-sub { padding: 5.5rem 0 2.5rem; }
.hero-glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 130%;
    background:
        radial-gradient(38% 45% at 25% 30%, rgba(108, 92, 231, 0.28), transparent 70%),
        radial-gradient(32% 40% at 78% 20%, rgba(0, 206, 201, 0.18), transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; }
.hero .lead { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 3.5rem;
    max-width: 46rem;
}
.hero-stats div {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
}
.hero-stats dt { font-size: 1.7rem; font-weight: 700; }
.hero-stats dd { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Tech strip ---------- */
.tech-strip { border-block: 1px solid var(--line); padding: 1.1rem 0; background: var(--bg-alt); }
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
    justify-content: center;
    list-style: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 1.3rem; margin-top: 2.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card, .work-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem;
    background: var(--surface);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover, .work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.card p, .work-card p { color: var(--text-muted); font-size: 0.96rem; }
.card .btn { margin-top: 1.1rem; }
.card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    margin-bottom: 1rem;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.22), rgba(0, 206, 201, 0.12));
    border: 1px solid rgba(108, 92, 231, 0.35);
}
.card-icon svg { width: 22px; height: 22px; }

.work-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(0, 206, 201, 0.35);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    margin-bottom: 1rem;
}
.work-meta { display: block; margin-top: 1.1rem; color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ---------- Process ---------- */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
    margin-top: 2.6rem;
    list-style: none;
    counter-reset: step;
}
.process li {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    background: var(--surface);
}
.process span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.process h3 { margin-top: 0.5rem; }
.process p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.checks { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.checks li { padding-left: 1.9rem; position: relative; color: var(--text-muted); }
.checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.code-panel {
    background: #0d1020;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    font-family: "SF Mono", ui-monospace, Menlo, monospace;
    font-size: 0.83rem;
    line-height: 1.7;
    color: #c8cdec;
    overflow-x: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.c-k { color: #c792ea; } .c-t { color: #82aaff; } .c-f { color: #4fd6be; } .c-v { color: #f78c6c; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    margin-top: 0.9rem;
    overflow: hidden;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 1.3rem;
    font-weight: 600;
    font-family: var(--font-display);
    position: relative;
    padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 1.3rem 1.2rem; color: var(--text-muted); font-size: 0.96rem; }
.faq code { background: rgba(255,255,255,0.07); padding: 0.1rem 0.4rem; border-radius: 6px; font-size: 0.85em; }

/* ---------- CTA ---------- */
.cta {
    text-align: center;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * 1.4);
    padding: 4rem 2rem;
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(108, 92, 231, 0.22), transparent 70%),
        var(--surface);
}
.cta p { color: var(--text-muted); max-width: 34rem; margin: 0.8rem auto 0; }
.cta .hero-actions { justify-content: center; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-inner .muted { margin-top: 0.8rem; }
.footer-links { list-style: none; display: grid; gap: 0.5rem; text-align: right; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .grid-3, .process { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--line);
        display: none;
        padding: 0.6rem 4%;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { padding: 0.55rem 0; }
    .nav-links .btn { text-align: center; margin: 0.6rem 0; }
    .footer-links { text-align: left; }
    .hero { padding-top: 5rem; }
}
