/* ============================================================
   ooniq — shared site styles
============================================================ */
:root {
  --ooniq-lime:        #C6FF3D;
  --ooniq-violet:      #7B3DFF;
  --ooniq-cyan:        #3DF0FF;
  --ooniq-magenta:     #FF3D9A;

  --bg-0:    #0A0A0B;
  --bg-1:    #111114;
  --bg-2:    #17171C;
  --bg-3:    #1F1F26;

  --line-1:  rgb(255 255 255 / .06);
  --line-2:  rgb(255 255 255 / .10);
  --line-3:  rgb(255 255 255 / .18);

  --text-1:  #F4F4F5;
  --text-2:  #B4B4BA;
  --text-3:  #6E6E78;

  --glass-blur:     20px;
  --glass-bg:       rgb(255 255 255 / .04);
  --glass-bg-elev:  rgb(255 255 255 / .07);
  --glass-border:   rgb(255 255 255 / .10);
  --glass-glow:     0 0 0 1px rgb(255 255 255 / .06),
                    inset 0 1px 0 rgb(255 255 255 / .08),
                    0 30px 60px -20px rgb(0 0 0 / .6);

  --grad-hero:    radial-gradient(ellipse 80% 60% at 70% 0%, rgb(123 61 255 / .35), transparent 60%),
                  radial-gradient(ellipse 60% 50% at 10% 100%, rgb(198 255 61 / .18), transparent 55%);
  --grad-accent:  linear-gradient(135deg, var(--ooniq-lime) 0%, var(--ooniq-cyan) 50%, var(--ooniq-violet) 100%);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
}

[data-theme="light"] {
  --bg-0: #FAFAF7;
  --bg-1: #FFFFFF;
  --bg-2: #F4F4F0;
  --bg-3: #ECECE6;
  --line-1: rgb(10 10 11 / .06);
  --line-2: rgb(10 10 11 / .10);
  --line-3: rgb(10 10 11 / .18);
  --text-1: #0A0A0B;
  --text-2: #4A4A52;
  --text-3: #8A8A92;
  --glass-bg: rgb(10 10 11 / .03);
  --glass-bg-elev: rgb(10 10 11 / .05);
  --glass-border: rgb(10 10 11 / .08);
  --glass-glow: 0 0 0 1px rgb(10 10 11 / .04),
                inset 0 1px 0 rgb(255 255 255 / .8),
                0 30px 60px -20px rgb(10 10 11 / .15);
  --grad-hero: radial-gradient(ellipse 80% 60% at 70% 0%, rgb(123 61 255 / .15), transparent 60%),
               radial-gradient(ellipse 60% 50% at 10% 100%, rgb(198 255 61 / .25), transparent 55%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--ooniq-lime); color: #0A0A0B; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell { max-width: 1280px; margin: 0 auto; padding: 24px 40px; }
@media (max-width: 720px) { .shell { padding: 20px 20px; } }

/* ============================================================
   NAV
============================================================ */
.nav-wrap {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  padding: 0 40px;
  pointer-events: none;
}
.nav-wrap .nav { pointer-events: auto; }
@media (max-width: 720px) { .nav-wrap { padding: 0 16px; top: 12px; } }
.nav {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 22px;
  background: color-mix(in srgb, var(--bg-1) 70%, transparent);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
}
.nav-brand .dot { color: var(--ooniq-lime); }
.nav-links {
  display: flex; gap: 24px;
  list-style: none; padding: 0; margin: 0;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-2);
  transition: color .15s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ooniq-lime); text-shadow: 0 0 14px rgb(198 255 61 / .55); }
.nav-links a.active { color: var(--text-1); }
.nav-links a.active::after {
  content: "";
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--ooniq-lime);
  border-radius: 2px;
}
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text-1);
  align-items: center; justify-content: center;
  cursor: pointer;
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.mobile-menu nav {
  display: grid; gap: 8px;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 24px; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--ooniq-lime);
  color: #0A0A0B;
  box-shadow: 0 0 0 1px rgb(198 255 61 / .4),
              0 0 20px -2px rgb(198 255 61 / .4);
}
.btn-primary:hover {
  background: #D5FF55;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgb(198 255 61 / .6),
              0 0 28px -2px rgb(198 255 61 / .65);
}
.btn-secondary {
  background: linear-gradient(to bottom, rgb(255 255 255 / .22) 0%, rgb(255 255 255 / .10) 100%);
  color: var(--text-1);
  border: 1px solid rgb(255 255 255 / .30);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.12);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .50),
              inset 0 -1px 0 rgb(0 0 0 / .25),
              0 4px 14px rgb(0 0 0 / .28),
              0 1px 3px rgb(0 0 0 / .15);
}
.btn-secondary:hover {
  background: linear-gradient(to bottom, rgb(255 255 255 / .32) 0%, rgb(255 255 255 / .16) 100%);
  border-color: rgb(255 255 255 / .44);
  transform: translateY(-1px);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .60),
              inset 0 -1px 0 rgb(0 0 0 / .25),
              0 8px 24px rgb(0 0 0 / .32),
              0 2px 6px rgb(0 0 0 / .15);
}
.btn-ghost {
  background: linear-gradient(to bottom, rgb(255 255 255 / .14) 0%, rgb(255 255 255 / .06) 100%);
  color: var(--text-1);
  border: 1px solid rgb(255 255 255 / .20);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .35),
              inset 0 -1px 0 rgb(0 0 0 / .18),
              0 2px 8px rgb(0 0 0 / .20);
}
.btn-ghost:hover {
  background: linear-gradient(to bottom, rgb(255 255 255 / .24) 0%, rgb(255 255 255 / .12) 100%);
  border-color: rgb(255 255 255 / .34);
  color: var(--text-1);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .48),
              inset 0 -1px 0 rgb(0 0 0 / .18),
              0 6px 20px rgb(0 0 0 / .26);
  transform: translateY(-1px);
}
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn:focus-visible { outline: 2px solid var(--ooniq-lime); outline-offset: 3px; }

/* pill */
.pill {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}
.pill .tag {
  background: var(--ooniq-lime);
  color: #0A0A0B;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill.no-tag { padding: 6px 14px; }

/* sec-tag */
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ooniq-lime);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgb(198 255 61 / .08);
  border: 1px solid rgb(198 255 61 / .25);
  margin-bottom: 20px;
}
.sec-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ooniq-lime);
  box-shadow: 0 0 10px var(--ooniq-lime);
}

/* sections */
section { position: relative; }
.sec {
  padding: clamp(72px, 10vw, 128px) 0;
  border-bottom: 1px solid var(--line-2);
}
.sec.no-border { border-bottom: none; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0 0 20px;
  text-wrap: balance;
}
.sec-title .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-title .dot { color: var(--ooniq-lime); }
.sec-lede {
  font-size: 18px;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 0 56px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ============================================================
   FOOTER
============================================================ */
footer.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand .nm {
  font-family: var(--font-display);
  font-weight: 600; font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.foot-brand .nm .dot { color: var(--ooniq-lime); }
.foot-brand p {
  color: var(--text-2);
  font-size: 14px;
  max-width: 38ch;
  margin: 0 0 20px;
  line-height: 1.5;
}
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin: 0 0 14px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a {
  color: var(--text-2);
  font-size: 14px;
  transition: color .15s;
}
.foot-col a:hover { color: var(--ooniq-lime); }

.foot-newsletter input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 8px;
}
.foot-newsletter input:focus {
  outline: none;
  border-color: var(--ooniq-lime);
  box-shadow: 0 0 0 4px rgb(198 255 61 / .15);
}

.foot-base {
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-base a:hover { color: var(--ooniq-lime); }
.foot-base .ping { display: inline-flex; align-items: center; gap: 8px; }
.foot-base .ping::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 10px #4ADE80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ============================================================
   COOKIE BANNER
============================================================ */
.cookie-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  width: calc(100% - 48px);
  max-width: 520px;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgb(0 0 0 / .4), inset 0 1px 0 rgb(255 255 255 / .07);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
}
.cookie-bar.visible { transform: translateX(-50%) translateY(0); }
.cookie-bar p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.45;
  flex: 1;
}
.cookie-bar p a { color: var(--ooniq-lime); text-decoration: none; }
.cookie-bar p a:hover { text-decoration: underline; }
.cookie-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; bottom: 16px; width: calc(100% - 32px); }
  .cookie-bar-actions { justify-content: flex-end; }
}

.logo-mark { display: inline-block; width: 22px; height: 22px; }
.muted { color: var(--text-3); }
.text-mono { font-family: var(--font-mono); }

/* ============================================================
   PAGE HEADER (for non-home pages)
============================================================ */
.page-header {
  position: relative;
  padding: clamp(96px, 14vw, 160px) clamp(32px, 6vw, 80px) clamp(48px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line-2);
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-hero), var(--bg-0);
  z-index: -2;
}
.page-header::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-1) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 75%);
  z-index: -1;
  opacity: .55;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 24px 0 24px;
  max-width: 18ch;
  text-wrap: balance;
}
.page-header h1 .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-header h1 .dot { color: var(--ooniq-lime); }
.page-header p.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-2);
  max-width: 56ch;
  margin: 0;
  line-height: 1.55;
}

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.crumbs a:hover { color: var(--ooniq-lime); }
.crumbs .sep { color: var(--text-3); opacity: .6; }
