/* ==========================================================================
   GridPiggy Energy — dark "flight-deck" theme on the Beusable design system
   --------------------------------------------------------------------------
   Content + information architecture : gridpiggy-hte5xvrk.manus.space
   Design tokens                      : Beusable / 뷰저블 (4Grit) OmD v0.1
   Art direction                      : near-future AI HUD — dark canvas,
                                        hairline instrumentation, cyan glow

   Token rules kept from the design system:
   - Rose (#ec0047) is the ONLY action colour; #ff1553 on hover.
   - Cyan (#00b7ff) is highlight / link — never an action.
   - Teal (#13a5bf / #16b5d2) and heatmap yellow (#f6e136) are data-viz only.
   - Full-pill CTAs, 4–5px radii on menu rows and tags, 20px on panels.
   - Depth still comes from hairlines and band contrast; glow replaces the
     drop-shadow ladder, and the one floating shadow token is kept for the
     floating controls (toast, sticky CTA).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Action */
  --rose:            #ec0047;
  --rose-hover:      #ff1553;
  --rose-glow:       rgba(236, 0, 71, .38);

  /* Highlight + data viz */
  --cyan:            #00b7ff;
  --cyan-soft:       rgba(0, 183, 255, .14);
  --cyan-line:       rgba(0, 183, 255, .34);
  --teal:            #13a5bf;
  --teal-alt:        #16b5d2;
  --data-yellow:     #f6e136;

  /* Dark canvas ladder */
  --bg-deep:         #08090b;
  --bg:              #0e1013;
  --surface:         #181818;
  --surface-2:       #1d1f22;
  --panel:           rgba(255, 255, 255, .035);
  --panel-2:         rgba(255, 255, 255, .06);

  /* Hairlines */
  --hairline:        rgba(255, 255, 255, .10);
  --hairline-strong: rgba(255, 255, 255, .20);

  /* Ink on dark */
  --ink:             #f2f5f7;
  --heading:         #ffffff;
  --body:            #b8c0c7;
  --muted:           #8b9299;
  --faint:           #676e75;

  /* Spacing (8px base) */
  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:  12px;
  --sp:     16px;
  --sp-lg:  18px;
  --sp-xl:  28px;
  --sp-xxl: 32px;

  /* Radius */
  --r-sm:   4px;
  --r-tag:  5px;
  --r-lg:  21px;
  --r-card:20px;
  --r-full: 9999px;

  /* Elevation */
  --shadow-floating: rgba(0, 0, 0, .05) 0 9px 11px -5px;
  --glow-cyan: 0 0 0 1px rgba(0, 183, 255, .16), 0 18px 46px rgba(0, 122, 173, .16);

  /* Motion */
  --motion-fast:     120ms;
  --motion-standard: 220ms;
  --motion-slow:     340ms;
  --ease-enter:    cubic-bezier(.2, .6, .25, 1);
  --ease-exit:     cubic-bezier(.4, 0, 1, 1);
  --ease-standard: cubic-bezier(.25, .1, .25, 1);

  /* Type */
  --font-display: 'Rubik', 'Pretendard Variable', Pretendard, sans-serif;
  --font-body: 'Pretendard Variable', Pretendard, 'Noto Sans KR',
               -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Layout */
  --shell: 1200px;
  --header-h: 80px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Instrument grid + horizon glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

::selection { background: var(--cyan-soft); color: #fff; }

.container {
  width: min(var(--shell), 100% - 40px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 55px);
  line-height: 1.14;
  letter-spacing: -1px;
  color: var(--heading);
}

.section-title .hl,
.hl { color: var(--cyan); }

.lead      { font-size: 18px; line-height: 1.6; color: var(--body); }
.body-text { font-size: 16px; line-height: 1.6; color: var(--body); }
.caption   { font-size: 14px; line-height: 1.4; color: var(--muted); }
.fineprint { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Filter tag — design-system component, currently unused on the pages
   (the section eyebrows were removed); kept for reuse. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--rose);
  border-radius: var(--r-tag);
  color: var(--rose);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: var(--r-full);
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.tag--cyan,
.tag--on-dark {
  border-color: var(--cyan-line);
  color: var(--cyan);
}

/* Section rhythm */
.section {
  padding: 116px 0;
  position: relative;
}

/* Cyan-tinted band — the design system's tinted surface, translated to dark */
.section--tint {
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(0, 183, 255, .09), transparent 62%),
    var(--bg-deep);
  border-block: 1px solid var(--hairline);
}

/* Staging band for product visuals */
.section--dark {
  background:
    radial-gradient(70% 110% at 78% 20%, rgba(19, 165, 191, .12), transparent 60%),
    var(--surface);
  border-block: 1px solid var(--hairline);
}

.section--tight { padding: 84px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .78fr);
  align-items: end;
  gap: 8%;
  margin-bottom: 44px;
}

.section-head > p { max-width: 46ch; }

.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 18px;
}
.section-head--center > p { margin-inline: auto; }

/* Inline link — highlight colour, never an action */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 600;
  transition: gap var(--motion-fast) var(--ease-standard),
              text-shadow var(--motion-fast) var(--ease-standard);
}
.text-link:hover { gap: 11px; text-shadow: 0 0 14px var(--cyan-line); }
.text-link svg { flex: none; }

.disclaimer {
  margin-top: 26px;
  max-width: 92ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard),
              transform var(--motion-fast) var(--ease-standard);
}

.btn:active { transform: scale(.985); }
.btn svg { flex: none; }

/* The single action colour */
.btn--primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 30px var(--rose-glow);
}
.btn--primary:hover {
  background: var(--rose-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 34px var(--rose-glow);
}

/* Secondary — hairline on dark */
.btn--outline,
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.btn--outline:hover,
.btn--ghost:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .34);
}

/* Hero glass pill */
.btn--glass {
  height: 60px;
  padding: 0 28px;
  background: rgba(0, 183, 255, .06);
  border-color: var(--cyan-line);
  color: var(--cyan);
  font-size: 16px;
  font-weight: 400;
}
.btn--glass:hover {
  background: rgba(0, 183, 255, .12);
  box-shadow: 0 0 26px rgba(0, 183, 255, .18);
}

.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   5. Announcement bar + header
   -------------------------------------------------------------------------- */
.announcement {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
  font-size: 13px;
  text-align: center;
  padding: 9px 20px;
  overflow: hidden;
}

.announcement__track { display: block; }

/* the second copy only exists to make the mobile marquee seamless */
.announcement__item + .announcement__item { display: none; }

.announcement a {
  margin-left: 8px;
  color: var(--cyan);
  font-weight: 600;
}
.announcement a:hover { text-shadow: 0 0 14px var(--cyan-line); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 14, 16, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

/* Thin instrument line under the header */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-line), transparent);
  opacity: .7;
}

.site-header__inner {
  width: min(var(--shell), 100% - 40px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--motion-fast) var(--ease-standard),
              background-color var(--motion-fast) var(--ease-standard);
}
.site-nav a:hover { color: #fff; background: var(--panel-2); }
.site-nav a.is-active { color: var(--rose); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { height: 36px; padding: 0 16px; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-tag);
  color: #fff;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  gap: 2px;
  padding: 10px;
  background: rgba(14, 16, 19, .97);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .6);
}

.mobile-nav a {
  padding: 11px 12px;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  font-weight: 500;
}
.mobile-nav a:hover { background: var(--panel-2); }
.mobile-nav a.is-active { color: var(--rose); }

.mobile-nav__cta {
  margin-top: 6px;
  text-align: center;
  background: var(--rose);
  color: #fff !important;
  font-weight: 700;
  border-radius: var(--r-full);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(72% 88% at 68% 34%, rgba(0, 123, 214, .22), transparent 60%),
    radial-gradient(46% 60% at 14% 78%, rgba(19, 165, 191, .14), transparent 66%),
    var(--bg-deep);
  border-bottom: 1px solid var(--hairline);
}

/* Sweeping scan line — the "system is live" cue */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 183, 255, .06) 48%, transparent 52%);
  background-size: 100% 260px;
  animation: hero-scan 7s linear infinite;
  opacity: .7;
}

@keyframes hero-scan {
  from { background-position: 0 -260px; }
  to   { background-position: 0 120%; }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .74fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6.4vw, 65px);
  line-height: 1;
  letter-spacing: -1.5px;
  color: #fff;
}

.hero h1 .hl {
  color: var(--cyan);
  text-shadow: 0 0 34px rgba(0, 183, 255, .38);
}

.hero__kicker {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
}
.hero__kicker strong { color: var(--cyan); }

.hero__body {
  margin-top: 14px;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
}

.hero .btn-row { margin-top: 30px; }

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.hero__note svg { color: var(--cyan); flex: none; }

/* Framed key visual with corner brackets */
.hero__art {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
}
.hero__art img { width: 100%; height: auto; }

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 54px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: gap var(--motion-fast) var(--ease-standard);
}
.hero__scroll:hover { gap: 12px; }

.hero--route { padding: 90px 0 86px; }

/* --------------------------------------------------------------------------
   7. Panels
   -------------------------------------------------------------------------- */
.card {
  min-width: 0;
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 28px;
  transition: border-color var(--motion-standard) var(--ease-standard),
              box-shadow var(--motion-standard) var(--ease-standard),
              transform var(--motion-standard) var(--ease-enter);
}

/* Cyan-tinted panel — the tinted card, on dark */
.card--tint {
  background:
    linear-gradient(160deg, rgba(0, 183, 255, .12), rgba(0, 183, 255, .03));
  border-color: var(--cyan-line);
}

.card--dark {
  background: rgba(255, 255, 255, .03);
  border-color: var(--hairline);
}

/* HUD corner brackets */
.card--hud::before,
.card--hud::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 20px; height: 20px;
  border: 1px solid var(--cyan);
  opacity: .7;
  pointer-events: none;
}
.card--hud::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.card--hud::after  { bottom: 9px; right: 9px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.grid { display: grid; gap: 20px; }
.grid > *,
.split > *,
.section-head > *,
.register__layout > *,
.faq__layout > *,
.founding__layout > *,
.hero__inner > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.split--wide-left  { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split--wide-right { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

/* --------------------------------------------------------------------------
   8. Telemetry cards
   -------------------------------------------------------------------------- */
.value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.value-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 214px;
  overflow: hidden;
}

.value-card:hover {
  border-color: var(--cyan-line);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* Slow vertical scan across the readout */
.value-card > .scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 183, 255, .07) 50%, transparent 51%);
  background-size: 100% 150px;
  animation: card-scan 5.5s linear infinite;
}

@keyframes card-scan {
  from { background-position: 0 -150px; }
  to   { background-position: 0 130%; }
}

.value-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.value-card__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a7b0b8;
}

/* Heatmap warm-zone data marker */
.data-marker {
  background: var(--data-yellow);
  color: #000;
  border-radius: var(--r-full);
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(246, 225, 54, .28);
}

.value-card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -1.5px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.value-card__note { font-size: 13px; color: var(--muted); }

.spark { margin-top: auto; width: 100%; height: 46px; display: block; }
.spark__baseline { stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.spark__line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px currentColor);
}
.spark__node { filter: drop-shadow(0 0 6px currentColor); }

.value-card__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8b9299;
}

.value-card__status .dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: var(--r-full);
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  vertical-align: middle;
  animation: pulse-dot 2.4s var(--ease-standard) infinite;
}
.value-card--yellow .value-card__status .dot { background: var(--data-yellow); box-shadow: 0 0 8px var(--data-yellow); }
.value-card--cyan   .value-card__status .dot { background: var(--cyan);        box-shadow: 0 0 8px var(--cyan); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* --------------------------------------------------------------------------
   9. Route / numbered panels
   -------------------------------------------------------------------------- */
.route-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 236px;
}
.route-card:hover {
  border-color: var(--cyan-line);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.route-card h3,
.num-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.4px;
  color: #fff;
}

.route-card p,
.num-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}

.route-card .text-link { margin-top: auto; }

.num-card { display: flex; flex-direction: column; gap: 10px; }

/* Two-up principle panels */
.principle-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}

.principle-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.8px;
  color: #fff;
}

.principle-card p { font-size: 16px; line-height: 1.65; color: var(--body); }
.principle-card .text-link { margin-top: auto; }

/* --------------------------------------------------------------------------
   10. Lists
   -------------------------------------------------------------------------- */
.check-list { display: grid; gap: 12px; margin-top: 26px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}

.check-list svg { flex: none; margin-top: 3px; color: var(--cyan); }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill-list li {
  padding: 7px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-full);
  font-size: 14px;
  color: var(--body);
}

/* --------------------------------------------------------------------------
   11. Founding 50 block
   -------------------------------------------------------------------------- */
.founding__layout {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(0, 300px);
  align-items: center;
  gap: 52px;
}

.founding__numeral {
  font-family: var(--font-display);
  font-size: clamp(120px, 15vw, 190px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -8px;
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  opacity: .55;
  filter: drop-shadow(0 0 26px rgba(0, 183, 255, .35));
}

.founding__perks { display: grid; }

.founding__perks li {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}
.founding__perks li:first-child { border-top: 1px solid var(--hairline); }

.signal-card { display: flex; flex-direction: column; gap: 14px; }

.signal-card strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.6px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   12. Registration console
   -------------------------------------------------------------------------- */
.register__layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: start;
}

.form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 32px;
  box-shadow: var(--glow-cyan);
}

.form-card__head { display: grid; gap: 8px; }

.form-card__head b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.6px;
  color: #fff;
}

.form-card__head p { font-size: 14px; line-height: 1.6; color: var(--body); }

.form-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a7b0b8;
}

.form-progress__track {
  flex: 1 1 60px;
  min-width: 60px;
  height: 3px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.form-progress__fill {
  display: block;
  width: 33.33%;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 0 14px var(--cyan-line);
}

.form-progress em { color: var(--cyan); font-style: normal; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
}

.field input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-tag);
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  transition: border-color var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}
.field input::placeholder { color: var(--faint); }
.field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 183, 255, .16);
}
.field.has-error input { border-color: var(--rose); }
.field__error { font-size: 13px; font-weight: 400; color: var(--rose); }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--body);
  cursor: pointer;
}
.form-check input {
  flex: none;
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--rose);
}

.form-note { font-size: 12px; line-height: 1.6; color: var(--faint); }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.1fr);
  gap: 9%;
  align-items: start;
}

.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-item__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.2px;
  color: #fff;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease-standard);
}
.faq-item__trigger:hover { color: var(--cyan); }

.faq-item__trigger svg {
  flex: none;
  margin-top: 3px;
  color: var(--faint);
  transition: transform var(--motion-standard) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard);
}

.faq-item[data-state="open"] .faq-item__trigger { color: var(--cyan); }
.faq-item[data-state="open"] .faq-item__trigger svg {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-item__panel {
  padding: 0 40px 24px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  animation: panel-in var(--motion-standard) var(--ease-enter);
}
.faq-item__panel[hidden] { display: none; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   14. Closing CTA band
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background:
    radial-gradient(70% 100% at 74% 46%, rgba(0, 123, 214, .22), transparent 62%),
    var(--surface);
  border-top: 1px solid var(--hairline);
}

.final-cta__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: 48px;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 55px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: #fff;
}
.final-cta h2 .hl { color: var(--cyan); text-shadow: 0 0 30px rgba(0, 183, 255, .3); }

.final-cta p { margin-top: 16px; max-width: 46ch; color: var(--body); }
.final-cta .btn-row { margin-top: 28px; }
.final-cta small { display: block; margin-top: 16px; font-size: 13px; color: var(--muted); }

.final-cta__art {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--glow-cyan);
}
.final-cta__art img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
  color: var(--body);
  padding: 76px 0 34px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.3fr);
  gap: 48px;
}

.footer-brand img { height: 46px; width: auto; }

.footer-brand h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.6px;
  color: #fff;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-links h3,
.footer-news h3 {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .68);
  transition: color var(--motion-fast) var(--ease-standard);
}
.footer-links a:hover { color: var(--cyan); }

.footer-news p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer-news form { display: flex; gap: 8px; margin-top: 14px; }

.footer-news input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-tag);
  font-size: 14px;
  color: #fff;
}
.footer-news input::placeholder { color: var(--faint); }
.footer-news input:focus { outline: none; border-color: var(--cyan); }
.footer-news .btn { height: 40px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--cyan); }

.footer-disclaimer {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   16. Floating + feedback
   -------------------------------------------------------------------------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--rose);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-floating), 0 12px 34px var(--rose-glow);
  transition: opacity var(--motion-standard) var(--ease-exit),
              transform var(--motion-standard) var(--ease-exit);
}

/* it has nothing to offer while the registration form is on screen */
.sticky-cta.is-hidden {
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
}

.toast-host {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 40px));
  pointer-events: none;
}

.toast {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(20, 23, 26, .96);
  border: 1px solid var(--hairline-strong);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-floating), 0 18px 40px rgba(0, 0, 0, .55);
  animation: toast-in var(--motion-standard) var(--ease-enter);
}

.toast--error { border-left-color: var(--rose); }
.toast strong { font-size: 14px; font-weight: 700; color: #fff; }
.toast span { font-size: 13px; line-height: 1.55; color: var(--body); }

.toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--motion-standard) var(--ease-exit),
              transform var(--motion-standard) var(--ease-exit);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Sub-page blocks
   -------------------------------------------------------------------------- */
.day-strip { display: grid; gap: 14px; padding: 26px; }

.day-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a7b0b8;
}

.day-strip__bar {
  position: relative;
  height: 10px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg,
              var(--teal) 0%, var(--teal-alt) 42%, var(--data-yellow) 78%, var(--cyan) 100%);
  box-shadow: 0 0 22px rgba(0, 183, 255, .22);
}

.day-strip__bar span {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-radius: var(--r-full);
  background: var(--bg-deep);
  border: 3px solid var(--teal);
}
.day-strip__bar span:nth-child(1) { left: 8%; }
.day-strip__bar span:nth-child(2) { left: 46%; border-color: var(--data-yellow); }
.day-strip__bar span:nth-child(3) { left: 82%; border-color: var(--cyan); }

.day-strip__labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.priority-stack { display: grid; gap: 16px; }

.priority-stack article {
  display: grid;
  gap: 8px;
  padding: 26px;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.priority-stack article:nth-child(2) {
  background: linear-gradient(160deg, rgba(0, 183, 255, .12), rgba(0, 183, 255, .03));
  border-color: var(--cyan-line);
}

.priority-stack h3 { font-size: 20px; font-weight: 700; color: #fff; }
.priority-stack p { font-size: 15px; line-height: 1.65; color: var(--body); }

.journey { display: grid; }

.journey article {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.journey article:first-child { border-top: 1px solid var(--hairline); }

.journey h3 { font-size: 18px; font-weight: 700; color: #fff; }
.journey p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--body); }

/* Owner-permission seal — HUD reticle */
.seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px; height: 200px;
  margin-inline: auto;
  border-radius: var(--r-full);
  border: 1px solid var(--cyan-line);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  line-height: 2;
  box-shadow: inset 0 0 40px rgba(0, 183, 255, .1), 0 0 40px rgba(0, 183, 255, .12);
}

.seal::before,
.seal::after {
  content: "";
  position: absolute;
  border-radius: var(--r-full);
  border: 1px dashed rgba(0, 183, 255, .28);
}
.seal::before { inset: 14px; }
.seal::after {
  inset: -18px;
  border-style: solid;
  border-color: rgba(0, 183, 255, .14);
  animation: seal-spin 26s linear infinite;
  border-top-color: var(--cyan);
}

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

/* --- Flow section artwork ------------------------------------------------ */
.flow-art {
  border-radius: var(--r-card);
  overflow: hidden;
}

.flow-art img { width: 100%; height: auto; }

.art-frame {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface);
  box-shadow: var(--glow-cyan);
}
.art-frame img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   18. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--motion-slow) var(--ease-enter),
              transform var(--motion-slow) var(--ease-enter);
}
.reveal.is-revealed { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .section { padding: 92px 0; }

  .hero__inner,
  .final-cta__layout,
  .split,
  .split--wide-left,
  .split--wide-right,
  .register__layout,
  .faq__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .founding__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .footer-brand,
  .footer-news { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .site-nav,
  .header-actions .btn { display: none; }

  .nav-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .brand img { height: 40px; }
  .mobile-nav:not([hidden]) { display: grid; }

  .value-grid,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }

  html { scroll-padding-top: 84px; }

  .section { padding: 72px 0; }
  .section--tight { padding: 60px 0; }

  .hero { padding: 60px 0 68px; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn { width: 100%; }
  .hero__scroll { margin-top: 36px; }

  .grid--2,
  .grid--4,
  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .card { padding: 22px; }
  .form-card { padding: 24px; }

  .final-cta { padding: 76px 0; }
  .final-cta .btn-row { flex-direction: column; align-items: stretch; }
  .final-cta .btn { width: 100%; }

  .faq-item__panel { padding-right: 0; }

  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-news form { flex-direction: column; }
  .footer-news .btn { width: 100%; }

  .site-footer { padding-bottom: 96px; }

  .announcement {
    font-size: 12px;
    padding: 8px 0;
    text-align: left;
  }
  .announcement a { margin-left: 6px; }

  .announcement__track {
    display: flex;
    width: max-content;
    animation: marquee 16s linear infinite;
  }

  .announcement__item {
    flex: none;
    padding-right: 56px;
    white-space: nowrap;
  }

  .announcement__item + .announcement__item { display: block; }

  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  .sticky-cta { display: flex; }
  .toast-host { right: 12px; left: 12px; bottom: 76px; width: auto; }

}

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .hero::after,
  .value-card > .scanline { display: none; }

  .announcement { text-align: center; }
  .announcement__track { width: auto; animation: none; }
  .announcement__item { white-space: normal; padding-right: 0; }
  .announcement__item + .announcement__item { display: none; }

  .reveal { opacity: 1; transform: none; }
}
