/* The Geek Network — showcase ("the Aether lobby").
   Brand-safe by rule: every accent is brand blue (--circle-brand-primary), the
   body themes light/dark from Circle Design System tokens, and the hero is an
   intentional fixed cinematic dark band (deep brand-navy) so the mesh glows the
   same in either theme. No oranges, no scrollbars. */

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
    margin: 0;
    font-family: var(--circle-font-sans);
    color: var(--circle-content-primary);
    background: var(--circle-surface-base);
    line-height: var(--circle-leading-normal);
    transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: var(--circle-tracking-tight); }

/* ---------- top bar (transparent over hero → glass when scrolled) ---------- */
.topbar {
    position: fixed; inset: 0 0 auto 0; z-index: var(--circle-z-sticky);
    display: flex; align-items: center; justify-content: space-between;
    padding: clamp(.7rem, 2vw, 1.05rem) clamp(1rem, 5vw, 3rem);
    color: #fff; border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, color .3s;
}
.topbar.scrolled {
    background: var(--circle-surface-glass);
    backdrop-filter: blur(var(--circle-blur-md)); -webkit-backdrop-filter: blur(var(--circle-blur-md));
    border-bottom-color: var(--circle-border-subtle);
    color: var(--circle-content-primary);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: var(--circle-weight-bold); }
.brand-mark { color: var(--circle-brand-primary); font-size: 1.45rem; line-height: 1; }
.brand-name { font-size: 1.02rem; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: var(--circle-radius-full);
    display: grid; place-items: center; cursor: pointer; font-size: 1rem; line-height: 1;
    color: inherit; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
    transition: background .3s, border-color .3s;
}
.topbar.scrolled .theme-toggle { background: var(--circle-surface-raised); border-color: var(--circle-border-default); }

/* ---------- hero (cinematic dark, mesh behind) ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: min(92vh, 820px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 7rem clamp(1.2rem, 5vw, 2rem) 5rem;
    background: radial-gradient(125% 85% at 50% 0%, #173550 0%, #0d2336 46%, #081a28 100%);
    color: #fff;
}
#aether { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
/* vignette + fade into the themed body below */
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(58% 50% at 50% 42%, transparent 38%, rgba(8,26,40,.55) 100%),
        linear-gradient(to bottom, transparent 72%, var(--circle-surface-base) 100%);
}
.hero-inner { position: relative; max-width: 940px; }
.eyebrow {
    text-transform: uppercase; letter-spacing: var(--circle-tracking-wider);
    font-size: .8rem; font-weight: var(--circle-weight-semibold);
    color: rgba(255,255,255,.72); margin: 0 0 1.1rem;
}
.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.03; font-weight: 800;
    letter-spacing: -.02em; margin: 0 0 .55rem;
}
.hero h1 .accent { color: var(--circle-brand-primary); }
.lede {
    font-size: clamp(1.05rem, 2.3vw, 1.32rem); color: rgba(255,255,255,.84);
    max-width: 660px; margin: 0 auto 2rem; line-height: 1.5;
}
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-meta {
    display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
    margin-top: 2.4rem; color: rgba(255,255,255,.66); font-size: .85rem;
}
.hero-meta b { color: #fff; font-weight: var(--circle-weight-semibold); }
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--circle-brand-primary); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .82rem 1.5rem; border-radius: var(--circle-radius-full);
    font-weight: var(--circle-weight-semibold); font-size: 1rem; cursor: pointer;
    border: 1px solid transparent; transition: transform .25s, box-shadow .3s, background .3s;
}
.btn-primary { background: var(--circle-brand-primary); color: #fff; box-shadow: 0 10px 34px -10px rgba(33,150,243,.75); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(33,150,243,.9); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.26); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 3rem); }
.section-head { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 3rem); }
.section-head .kicker {
    text-transform: uppercase; letter-spacing: var(--circle-tracking-wider);
    font-size: .76rem; font-weight: var(--circle-weight-semibold); color: var(--circle-brand-primary); margin: 0 0 .5rem;
}
.section-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin: 0 0 .4rem; font-weight: 800; }
.section-head p { color: var(--circle-content-secondary); margin: 0; max-width: 560px; font-size: 1.02rem; }

/* ---------- flagship spotlight ---------- */
.spotlight { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.spot-grid {
    max-width: 1200px; margin: 1.8rem auto 0; padding: 0 clamp(1rem, 5vw, 3rem);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem;
}
.spot {
    position: relative; overflow: hidden;
    background: var(--circle-surface-raised); border: 1px solid var(--circle-border-subtle);
    border-radius: var(--circle-radius-2xl); padding: 1.6rem;
    box-shadow: var(--circle-elevation-1);
    transition: transform .35s, box-shadow .35s, border-color .35s;
}
.spot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--circle-brand-primary), transparent 80%); }
.spot:hover { transform: translateY(-4px); box-shadow: var(--circle-elevation-3); border-color: var(--circle-brand-primary); }
.spot-ic {
    width: 54px; height: 54px; border-radius: var(--circle-radius-lg); display: grid; place-items: center;
    color: var(--circle-brand-primary); background: rgba(33,150,243,.12); border: 1px solid rgba(33,150,243,.22);
}
.spot-ic .app-ic { width: 28px; height: 28px; }
.spot h3 { font-size: 1.3rem; margin: 1rem 0 .35rem; display: flex; align-items: center; gap: .5rem; }
.spot-hook { color: var(--circle-content-secondary); font-size: .98rem; line-height: 1.5; margin: 0 0 1.1rem; }

/* ---------- catalog ---------- */
.catalog { padding-bottom: clamp(2rem, 6vw, 4rem); }
.category { margin-top: clamp(2.6rem, 6vw, 4rem); }
.category > h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); margin: 0; font-weight: 700; }
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(284px, 1fr));
    gap: 1rem; margin-top: 1.2rem;
}
.card {
    display: flex; flex-direction: column; gap: 1rem;
    background: var(--circle-surface-raised); border: 1px solid var(--circle-border-subtle);
    border-radius: var(--circle-radius-2xl); padding: 1.3rem;
    box-shadow: var(--circle-elevation-1);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--circle-elevation-3); border-color: var(--circle-brand-primary); }
.card-head { display: flex; gap: .9rem; align-items: flex-start; }
.card-ic, .spot-ic { flex: 0 0 auto; }
.card-ic {
    width: 46px; height: 46px; border-radius: var(--circle-radius-lg); display: grid; place-items: center;
    color: var(--circle-brand-primary); background: rgba(33,150,243,.1); border: 1px solid rgba(33,150,243,.2);
}
.card-ic .app-ic { width: 24px; height: 24px; }
.card-id { min-width: 0; }
.card-id h3 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.card-desc { color: var(--circle-content-secondary); font-size: .9rem; line-height: 1.45; margin: .25rem 0 0; }

/* ---------- doors (web / Google Play / App Store) ---------- */
.doors { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.door {
    display: inline-flex; align-items: center; gap: .42rem;
    padding: .5rem .85rem; border-radius: var(--circle-radius-full);
    font-size: .82rem; font-weight: var(--circle-weight-semibold);
    border: 1px solid var(--circle-border-default); transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.door svg { width: 15px; height: 15px; }
.door-web { background: var(--circle-brand-primary); color: #fff; border-color: transparent; }
.door-web:hover { transform: translateY(-1px); filter: brightness(1.08); }
.door-store { background: transparent; color: var(--circle-content-primary); }
.door-store:hover { border-color: var(--circle-brand-primary); color: var(--circle-brand-primary); transform: translateY(-1px); }
.door-muted { color: var(--circle-content-muted); border-style: dashed; font-weight: var(--circle-weight-medium, 500); cursor: default; }

.badge {
    font-size: .58rem; text-transform: uppercase; letter-spacing: var(--circle-tracking-wide);
    background: rgba(33,150,243,.14); color: var(--circle-brand-primary);
    padding: 2px 7px; border-radius: var(--circle-radius-full); font-weight: var(--circle-weight-bold);
}

/* ---------- footer ---------- */
.site-footer {
    margin-top: clamp(3rem, 8vw, 5rem); text-align: center;
    padding: clamp(3rem, 7vw, 4.5rem) 1.5rem;
    border-top: 1px solid var(--circle-border-subtle); background: var(--circle-surface-sunken);
}
.signoff { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin: 0 0 .5rem; font-weight: var(--circle-weight-semibold); }
.signoff strong { color: var(--circle-brand-primary); }
.copyright { color: var(--circle-content-muted); font-size: .85rem; margin: .5rem 0 0; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn, .card, .spot, .door { transition: none; }
}
