/* ============================================================
   Viki — landing
   "Instrument panel for your home." One deep-navy base, glass
   panels, monochrome white geometry, a monospace telemetry layer.
   Type: Geist (display/body) + Geist Mono (data). Brand functional
   colors used only as semantic status signals.
   ============================================================ */

:root {
  /* one base */
  --ink: #0c101d;
  --ink-2: #0a0e19;

  /* glass washes over the base */
  --raise: rgba(255, 255, 255, 0.035);
  --panel: rgba(255, 255, 255, 0.05);
  --panel-2: rgba(255, 255, 255, 0.08);
  --panel-3: rgba(255, 255, 255, 0.12);

  /* hairlines */
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.2);
  --line-3: rgba(255, 255, 255, 0.32);

  /* type colors */
  --white: #ffffff;
  --t1: rgba(255, 255, 255, 0.94);
  --t2: rgba(255, 255, 255, 0.66);
  --t3: rgba(255, 255, 255, 0.42);

  /* the only color: brand functional signals, used semantically */
  --signal: #7fa8dc;
  --ok: #57b98a;
  --alert: #e5605e;

  --sans: "Geist", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", Menlo,
    Consolas, monospace;

  --max: 1200px;
  --pad: clamp(1.25rem, 5vw, 2.75rem);
  --spine-w: 8.5rem;
  --ease: cubic-bezier(0.22, 0.85, 0.28, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  color: var(--t1);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 760px at 82% -14%, rgba(127, 168, 220, 0.1) 0%, transparent 60%),
    radial-gradient(960px 700px at -10% 4%, rgba(255, 255, 255, 0.05) 0%, transparent 56%),
    radial-gradient(1000px 800px at 50% 116%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain — generated inline, no network */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(127, 168, 220, 0.32);
  color: #fff;
}

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

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

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--t1);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.4em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- shared type roles ---------- */

.eyebrow,
.spine-tag,
.card-key,
.dev-key,
.twin-cap,
.ap-key,
.access-panel-cap,
.hero-fineprint,
.footer-col-head {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--signal);
  margin-bottom: 1.15rem;
}

.head-title {
  font-size: clamp(2.05rem, 4.6vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
}

.head-sub {
  margin-top: 1.2rem;
  max-width: 40ch;
  color: var(--t2);
  font-size: 1.06rem;
  text-wrap: pretty;
}

.head { margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }
.head-center { text-align: center; }
.head-center .head-sub { max-width: 60ch; margin-inline: auto; }

/* ============================ HEADER ============================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(12, 16, 29, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.05rem;
}

.brand {
  display: inline-flex;
  width: 7.4rem;
}
.brand img { width: 100%; height: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-link {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color 0.22s ease;
}
.nav-link:hover { color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  padding: 0.62em 1.05em;
  border-radius: 999px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease;
  box-shadow: 0 10px 30px -16px rgba(255, 255, 255, 0.7);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -16px rgba(255, 255, 255, 0.8); }
.nav-cta-glyph { transition: transform 0.22s var(--ease); }
.nav-cta:hover .nav-cta-glyph { transform: translate(2px, -2px); }

@media (max-width: 720px) {
  .nav-link:not(.nav-signin) { display: none; }
  .header-nav { gap: 1rem; }
}
@media (max-width: 420px) {
  .nav-signin { display: none; }
}

/* ============================ HERO ============================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 8.5rem 4.5rem;
  overflow: hidden;
}

/* faint blueprint grid, masked to fade out */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 70% 30%, #000 0%, transparent 72%);
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.04fr 0.96fr; gap: 2.5rem; }
}

.hero-copy { position: relative; z-index: 1; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  border: 1px solid var(--line-2);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 0.5em 0.95em;
  margin-bottom: 2rem;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(87, 185, 138, 0.55);
  animation: ping 2.8s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(87, 185, 138, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(87, 185, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 185, 138, 0); }
}

.hero-title {
  font-size: clamp(2.9rem, 7vw, 5.1rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.038em;
  color: var(--white);
  text-wrap: balance;
}
.hero-em {
  font-style: normal;
  background: linear-gradient(94deg, #ffffff 18%, #9fc0e8 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 44ch;
  color: var(--t2);
  font-size: 1.12rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.hero-fineprint {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  align-items: center;
  margin-top: 1.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--t3);
}
.hero-fineprint .sep { color: var(--line-3); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.02em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.24s var(--ease), box-shadow 0.24s ease,
    border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}
.btn-primary {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 16px 44px -22px rgba(255, 255, 255, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -22px rgba(255, 255, 255, 0.85);
}
.btn-ghost {
  color: var(--t1);
  border-color: var(--line-2);
  background: var(--panel);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--line-3);
  background: var(--panel-2);
}
.btn-glyph { transition: transform 0.24s var(--ease); }
.btn:hover .btn-glyph { transform: translateX(3px); }
.btn-block { width: 100%; }

/* ============================ THE DIGITAL TWIN ============================ */

.twin { position: relative; }

.twin-panel {
  position: relative;
  margin-inline: auto;
  width: min(100%, 540px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(420px 300px at 52% 22%, rgba(127, 168, 220, 0.1), transparent 62%),
    var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: 0 50px 120px -60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1.1rem 1.1rem 1.2rem;
  overflow: hidden;
}
.twin-panel::before {
  /* corner registration ticks */
  content: "";
  position: absolute;
  inset: 0.7rem;
  border-radius: 18px;
  pointer-events: none;
  background:
    linear-gradient(var(--line-2), var(--line-2)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 100% 100% / 1px 14px no-repeat;
}

.twin-cap {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--t3);
  padding: 0.2rem 0.55rem 0.7rem;
}
.twin-cap-key {
  color: var(--ink);
  background: var(--signal);
  padding: 0.18em 0.5em;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.house { width: 100%; height: auto; }

/* house wireframe */
.ground { fill: rgba(127, 168, 220, 0.07); }
.h-face {
  fill: rgba(255, 255, 255, 0.025);
  stroke: var(--line-2);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.h-face.roof { fill: rgba(127, 168, 220, 0.06); }
.h-edge { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; stroke-linejoin: round; }
.h-detail { fill: rgba(255, 255, 255, 0.06); stroke: var(--line-2); stroke-width: 1; stroke-linejoin: round; }
.h-pool { fill: rgba(127, 168, 220, 0.14); stroke: rgba(127, 168, 220, 0.45); stroke-width: 1; }
.h-ripple { fill: none; stroke: rgba(127, 168, 220, 0.5); stroke-width: 1; stroke-linecap: round; }
.h-fence { fill: none; stroke: var(--line-2); stroke-width: 1.1; stroke-linecap: round; }

/* threads: light flowing toward the brain */
.link {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.1;
  opacity: 0.5;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  animation: flow 2.4s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -44; } }

/* scan sweep */
.scan {
  stroke: rgba(127, 168, 220, 0.55);
  stroke-width: 1;
  animation: sweep 7s ease-in-out infinite;
}
@keyframes sweep {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateX(470px); opacity: 0.8; }
  60% { opacity: 0; }
  100% { transform: translateX(470px); opacity: 0; }
}

/* device nodes */
.node-halo {
  fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1;
  transform-origin: center; transform-box: fill-box;
  animation: breathe 3.2s ease-in-out var(--d, 0s) infinite;
}
.node-core { fill: var(--white); animation: glow 3.2s ease-in-out var(--d, 0s) infinite; }
.node.sig .node-halo { stroke: rgba(127, 168, 220, 0.6); }
.node.sig .node-core { fill: var(--signal); }
@keyframes breathe { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.95; transform: scale(1.4); } }
@keyframes glow { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }

/* the brain = the Viki symbol */
.hub-glow { fill: rgba(127, 168, 220, 0.16); animation: glow 4s ease-in-out infinite; }
.hub-ring {
  fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1;
  transform-origin: center; transform-box: fill-box;
}
.hub-ring.r1 { animation: breathe 4s ease-in-out infinite; }
.hub-ring.r2 { opacity: 0.5; animation: breathe 4s ease-in-out 1.1s infinite; }
.hub-mark { fill: var(--white); }

/* ---------- telemetry readout ---------- */

.telemetry {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tele-line {
  display: grid;
  grid-template-columns: 12px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.tele-line.swap { opacity: 0; transform: translateY(-4px); }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; }
.tl-dot.ok { background: var(--ok); }
.tl-dot.info { background: var(--signal); }
.tl-dot.alert { background: var(--alert); }
.tl-target { color: var(--t1); }
.tl-val { color: var(--t3); text-overflow: ellipsis; overflow: hidden; }

/* ============================ SECTION + SPINE ============================ */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-rule { border-top: 1px solid var(--line); }

.bay {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .bay {
    grid-template-columns: var(--spine-w) minmax(0, 1fr);
    gap: 0 3rem;
  }
  .spine {
    position: relative;
    border-right: 1px solid var(--line);
    /* stretch the hairline through the section's vertical padding */
    margin-block: calc(-1 * clamp(4.5rem, 10vw, 8rem));
    padding-block: clamp(4.5rem, 10vw, 8rem);
    padding-right: 1.4rem;
  }
  .spine-tag { position: sticky; top: 6.5rem; }
}

.spine-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--t3);
  transition: color 0.3s ease;
}
.spine-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-3);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.spine-tag.active { color: var(--signal); }
.spine-tag.active::before {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(127, 168, 220, 0.14);
}

@media (max-width: 899px) {
  .spine { display: none; }
}

.bay-body--center { display: flex; flex-direction: column; align-items: center; }

/* ============================ BENTO CARDS ============================ */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 620px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: span 2; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 42%),
    var(--panel);
  backdrop-filter: blur(16px);
  padding: clamp(1.5rem, 3vw, 1.9rem);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}
.card::after {
  /* hover sheen following from top-left signal corner */
  content: "";
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(127, 168, 220, 0.16), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

.card-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 1.2rem;
}
.card-mark svg {
  width: 22px; height: 22px;
  stroke: var(--white); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card-mark .ic-fill { fill: var(--white); stroke: none; }

.card-key {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--signal);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
.card-title {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 0.55rem;
}
.card-body {
  color: var(--t2);
  font-size: 0.98rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.tag {
  align-self: flex-start;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.42em 0.85em;
}
.tag-live { color: var(--ok); border-color: rgba(87, 185, 138, 0.4); }
.tag-live::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 0.55em;
  vertical-align: middle;
}

/* ============================ AUTOMATIONS ============================ */

.automations {
  background:
    radial-gradient(640px 360px at 88% 0%, rgba(127, 168, 220, 0.07), transparent 60%);
}

.flows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 860px) {
  .flows { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

.flow {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.flow:hover { transform: translateY(-3px); border-color: var(--line-2); }

.flow-said {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.flow-trace {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: var(--t2);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-left: 2px solid var(--signal);
  border-radius: 0 10px 10px 0;
  padding: 0.85rem 1rem;
  margin-top: auto;
  white-space: pre-wrap;
  overflow-x: auto;
}
.t-when { color: var(--signal); }
.t-do { color: var(--ok); }
.t-gate { color: var(--alert); }
.t-op { color: var(--t3); }
.t-arr { color: var(--t3); }

.flow-note {
  margin-top: 2.4rem;
  max-width: 56ch;
  color: var(--t2);
  font-size: 0.95rem;
  border-left: 2px solid var(--line-2);
  padding-left: 1.1rem;
  text-wrap: pretty;
}

/* ============================ DEVELOPERS ============================ */

.dev-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 760px) {
  .dev-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.dev-item { border-top: 1px solid var(--line-2); padding-top: 1.3rem; }
.dev-key {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--signal);
  margin-bottom: 0.8rem;
}
.dev-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.dev-body { color: var(--t2); font-size: 0.96rem; line-height: 1.55; text-wrap: pretty; }

/* ============================ OPEN CORE ============================ */

.pricing { color: var(--signal); margin-top: 1.4rem; }

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.6rem;
}
.pillbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t1);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.75em 1.3em;
  background: var(--panel);
  backdrop-filter: blur(14px);
}
.pillbadge svg {
  width: 15px; height: 15px;
  stroke: var(--signal); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ============================ PRICING ============================ */

.price-card {
  margin: 2.6rem auto 0;
  max-width: 30rem;
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 55%),
    rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}
.price-amount {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(3.2rem, 9vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.price-cur { font-size: 0.5em; vertical-align: super; margin-right: 0.05em; color: var(--t1); }
.price-per { font-size: 0.32em; letter-spacing: 0.02em; color: var(--t2); margin-left: 0.15em; }
.price-house {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}
.price-card .btn { margin-top: 0.7rem; }
.price-fine { color: var(--t3); font-size: 0.82rem; }

.price-covers {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  width: 100%;
}
@media (min-width: 720px) {
  .price-covers { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.price-cover {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  text-align: left;
}
.price-cover-k {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.45rem;
}
.price-cover-b { color: var(--t2); font-size: 0.92rem; line-height: 1.5; text-wrap: pretty; }

/* ============================ ACCESS ============================ */

.access {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(560px 320px at 100% 0%, rgba(127, 168, 220, 0.1), transparent 60%),
    var(--panel);
  backdrop-filter: blur(18px);
  padding: clamp(1.8rem, 5vw, 3.4rem);
}
@media (min-width: 880px) {
  .access { grid-template-columns: 1.1fr 0.9fr; gap: 3.6rem; }
}

.access-points {
  list-style: none;
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.access-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  color: var(--t2);
  font-size: 0.98rem;
}
.ap-dot {
  margin-top: 0.55em;
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.access-panel {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 50%),
    rgba(0, 0, 0, 0.22);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.access-panel-cap {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--t3);
  margin-bottom: 0.3rem;
}
.ap-key {
  color: var(--ink);
  background: var(--white);
  padding: 0.18em 0.5em;
  border-radius: 4px;
  letter-spacing: 0.1em;
}
.access-secure {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--t3);
  line-height: 1.4;
}
.access-secure svg {
  flex: none;
  width: 15px; height: 15px;
  stroke: var(--ok); fill: none;
  stroke-width: 1.5; stroke-linejoin: round;
}

/* ============================ FOOTER ============================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.footer-brand { width: 8rem; height: auto; }
.footer-line {
  margin-top: 1.1rem;
  max-width: 38ch;
  color: var(--t2);
  font-size: 0.95rem;
  text-wrap: pretty;
}
.footer-owner { margin-top: 1.1rem; color: var(--t3); font-size: 0.92rem; }
.footer-owner a {
  color: var(--t1);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-owner a:hover { color: var(--signal); border-color: var(--signal); }

.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col-head {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--t3);
  margin-bottom: 0.3rem;
}
.footer-nav a {
  color: var(--t2);
  font-size: 0.95rem;
  width: fit-content;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--white); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
}
.footer-totop { transition: color 0.2s ease; }
.footer-totop:hover { color: var(--white); }

/* ============================ MOTION ============================ */

/* scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .bento .reveal.in:nth-child(2) { transition-delay: 0.06s; }
.js .bento .reveal.in:nth-child(3) { transition-delay: 0.12s; }
.js .bento .reveal.in:nth-child(4) { transition-delay: 0.06s; }
.js .flows .reveal.in:nth-child(2) { transition-delay: 0.08s; }
.js .flows .reveal.in:nth-child(3) { transition-delay: 0.16s; }

/* hero load-in */
.hero-copy > * {
  animation: rise 0.95s var(--ease) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.13s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.21s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.29s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.37s; }
.twin { animation: rise 1.1s var(--ease) 0.25s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* boot sequence: the twin draws itself, then nodes ignite.
   The reveal animations themselves carry the hidden->visible state via `both`
   fill, all under a single `.boot` class — so the house can never get stuck
   invisible if JS or a load event races. No JS, or reduced motion => no `.boot`
   class => everything renders at its natural (visible) state. */
.boot .frame path {
  animation: ink-in 0.7s var(--ease) 0.2s both;
}
.boot .frame .h-face { animation-delay: 0.42s; }
.boot .threads .link {
  animation: ink-in 0.6s var(--ease) 0.7s both, flow 2.4s linear infinite 1.2s;
}
.boot .threads .link:nth-child(even) { animation-delay: 0.85s, 1.2s; }
/* nodes/hub carry an SVG translate() attribute — animate opacity only so we
   never clobber their positions with a CSS transform. The "ignite" pop lives
   in the inner halo/core, which have no positional transform. */
.boot .node {
  animation: ignite 0.55s var(--ease) both;
  animation-delay: calc(0.95s + var(--d, 0s) * 0.16);
}
.boot .hub { animation: ink-in 0.8s var(--ease) 0.55s both; }

@keyframes ink-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ignite {
  0% { opacity: 0; }
  60% { opacity: 1; }
  100% { opacity: 1; }
}

/* ============================ REDUCED MOTION ============================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .scan { display: none; }
}
