/* ==========================================================================
   RADAR — Design System & Layout
   Aesthetic: Premium, Human, Expensive-looking, Clean Editorial
   Strict adherence to DESIGN_RULES.md:
   - NO Inter/Geist
   - NO eyebrow pills above headings
   - NO cards inside cards
   - NO purple/blue neon gradients or ambient glow
   - NO fake data
   - High contrast, generous spacing, beautiful Fredoka + Figtree typography
   ========================================================================== */

:root {
  --bg: #0C0E0D;
  --bg-card: #151816;
  --bg-card-hover: #1C201D;
  --bg-elevated: #222723;
  --paper: #181C19;

  --ink: #F4F1E9;         /* Warm Ivory */
  --ink2: #B5B9AC;        /* Muted sage */
  --mute: #787E75;        /* Subtle slate */

  --lime: #D9FA45;        /* Signal Lime */
  --lime-hover: #E7FF5E;
  --lime-bg: rgba(217, 250, 69, 0.12);
  --lime-line: rgba(217, 250, 69, 0.32);

  --line: rgba(244, 241, 233, 0.09);
  --line-strong: rgba(244, 241, 233, 0.18);

  --bad: #FF5A52;
  --bad-bg: rgba(255, 90, 82, 0.12);

  --r: 16px;
  --r-sm: 10px;
  --r-full: 9999px;

  --sh: 0 6px 22px rgba(0, 0, 0, 0.4);
  --sh-lg: 0 16px 44px rgba(0, 0, 0, 0.6);

  --fd: 'Fredoka', system-ui, sans-serif;
  --ft: 'Figtree', system-ui, sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--ft);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--lime);
  color: #0C0E0D;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--r-sm);
  z-index: 1000;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

::selection {
  background: var(--lime);
  color: #0C0E0D;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

main {
  flex: 1;
}

.wrap {
  width: min(1180px, 100% - 36px);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--ink);
}

p {
  text-wrap: pretty;
  color: var(--ink2);
}

.mono, .num {
  font-family: var(--fm);
  font-variant-numeric: tabular-nums;
}

.mute {
  color: var(--mute);
}

/* Top Loadbar */
.loadbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--lime);
  z-index: 100;
  transition: width 0.4s ease-out;
  pointer-events: none;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 14, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #000;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font: 700 22px var(--fd);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}

.brand-sub {
  font: 500 11px var(--fm);
  color: var(--lime);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font: 600 15px var(--ft);
  color: var(--ink2);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(244, 241, 233, 0.06);
}

.nav a.active {
  color: var(--lime);
  background: var(--lime-bg);
}

.top-r {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CA Soon Badge */
.ca-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(217, 250, 69, 0.4);
  background: rgba(217, 250, 69, 0.08);
  box-shadow: 0 0 14px rgba(217, 250, 69, 0.15);
  font: 600 12px var(--fm);
  color: var(--ink);
  letter-spacing: 0.04em;
  user-select: none;
  transition: all 0.2s ease;
}

.ca-soon-badge:hover {
  border-color: var(--lime);
  background: rgba(217, 250, 69, 0.14);
  box-shadow: 0 0 20px rgba(217, 250, 69, 0.3);
}

.ca-soon-badge .ca-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: caPulse 2s infinite ease-in-out;
}

.ca-soon-badge .ca-label {
  color: var(--mute);
  font-weight: 500;
}

.ca-soon-badge .ca-val {
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.06em;
}

@keyframes caPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--bg-card);
  font: 500 13px var(--fm);
  white-space: nowrap;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.chip:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}

.chip.lime {
  background: var(--lime-bg);
  border-color: var(--lime-line);
  color: var(--lime);
}

.chip.off {
  color: var(--mute);
  cursor: default;
  border-style: dashed;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 15px var(--ft);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn.pri {
  background: var(--lime);
  color: #0C0E0D;
  font-weight: 700;
  border-color: var(--lime);
}

.btn.pri:hover {
  background: var(--lime-hover);
  box-shadow: 0 6px 20px rgba(217, 250, 69, 0.32);
}

.btn.ghost {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn.ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--ink);
}

.btn.dark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn.dark:hover {
  background: var(--bg-elevated);
}

.btn.sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: 9px;
}

.btn.lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
  border-radius: 14px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Inputs & Form Elements */
.in {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font: 500 15px var(--ft);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.in:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-bg);
}

textarea.in {
  padding: 12px 14px;
  min-height: 90px;
  resize: vertical;
}

.f-group {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.f-group label {
  font: 600 13px var(--ft);
  color: var(--ink2);
}

.f-group .hint {
  font: 400 12px var(--ft);
  color: var(--mute);
}

/* Base Sections */
.sec {
  padding: 68px 0;
}

.sec-h {
  margin-bottom: 32px;
}

.sec-h h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  margin-bottom: 8px;
}

.sec-h p {
  font-size: 17px;
  max-width: 38em;
}

/* Banner Showcase */
.banner-wrap {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: var(--sh-lg);
  margin: 28px 0 16px;
}

.banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  display: block;
}

/* Mobile Bottom Tabbar */
.tabbar {
  display: none;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  margin-top: 64px;
  background: #080A09;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.foot-brand {
  max-width: 360px;
  display: grid;
  gap: 12px;
}

.foot-brand p {
  font-size: 14px;
}

.foot-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.foot-col {
  display: grid;
  gap: 10px;
}

.foot-col b {
  font: 600 13px var(--fm);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.foot-col a {
  font-size: 14px;
  color: var(--ink2);
  transition: color 0.15s;
}

.foot-col a:hover {
  color: var(--lime);
}

.foot-bottom {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--mute);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(14, 17, 15, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-strong);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mute);
    text-decoration: none;
  }
  .tabbar a svg {
    width: 20px;
    height: 20px;
  }
  .tabbar a.active, .tabbar a:hover {
    color: var(--lime);
  }
  body {
    padding-bottom: 64px;
  }
  .foot {
    margin-bottom: 20px;
  }
}
