/* Relay — reference-inspired dark frame landing */

:root {
  --page: #121214;
  --frame: #0a0a0b;
  --elevated: #141416;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #9a9aa3;
  --text-faint: #6e6e78;
  --glow: rgba(170, 190, 175, 0.22);
  --glow-soft: rgba(140, 160, 155, 0.12);
  --glass: rgba(28, 28, 32, 0.72);
  --max: 1180px;
  --radius-frame: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: inherit; }

.page {
  min-height: 100vh;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.shell {
  padding: 18px 18px 0;
}

/* ---------- Framed hero viewport ---------- */

.frame {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 36px);
  border-radius: var(--radius-frame);
  border: 1px solid var(--border);
  background: var(--frame);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.frame-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 72% 18%, var(--glow) 0%, transparent 58%),
    radial-gradient(ellipse 40% 35% at 48% 42%, var(--glow-soft) 0%, transparent 70%),
    radial-gradient(ellipse 30% 25% at 30% 70%, rgba(120, 130, 140, 0.08) 0%, transparent 70%);
}

.frame-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.frame-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.7px, transparent 0.7px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 55% 35%, black 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 55% 35%, black 10%, transparent 72%);
  opacity: 0.35;
  animation: twinkle 8s ease-in-out infinite alternate;
}

.frame-streaks {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(420px, 60%);
  height: 38%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 28px;
  opacity: 0.55;
}

.frame-streaks span {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to top, transparent 0%, rgba(220, 230, 225, 0.55) 45%, transparent 100%);
  animation: streak 4.5s ease-in-out infinite;
}

.frame-streaks span:nth-child(2) { height: 72%; align-self: flex-end; animation-delay: 0.6s; }
.frame-streaks span:nth-child(3) { height: 90%; animation-delay: 1.2s; }
.frame-streaks span:nth-child(4) { height: 60%; align-self: flex-end; animation-delay: 1.8s; }
.frame-streaks span:nth-child(5) { height: 80%; animation-delay: 2.4s; }

@keyframes twinkle {
  from { opacity: 0.22; }
  to { opacity: 0.42; }
}

@keyframes streak {
  0%, 100% { opacity: 0.25; transform: translateY(8px); }
  50% { opacity: 0.85; transform: translateY(-6px); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Nav ---------- */

.nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 28px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  justify-self: start;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-pill a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.nav-pill a:hover,
.nav-pill a.is-active {
  color: var(--text);
}

.nav-pill a.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill-divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin: 0 4px;
}

.nav-protect {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}

.nav-shield {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2f2f4;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  flex-shrink: 0;
}

.nav-shield svg {
  width: 14px;
  height: 14px;
}

.nav-account {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav-account:hover { opacity: 1; }

.nav-menu-toggle {
  display: none;
  justify-self: end;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 24px 28px 28px;
}

.hero-center {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  animation: fadeUp 0.9s var(--ease) both;
}

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.play-btn:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.14);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 24, 0.7);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 28px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-badge:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.hero-badge__icon {
  display: inline-flex;
  color: #c8d4cc;
}

.hero h1 {
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.brand-word {
  display: block;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.55);
  margin-bottom: 14px;
}

.hero-line {
  display: block;
  font-size: clamp(40px, 6.4vw, 68px);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 35%, rgba(255, 255, 255, 0.15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(0);
  position: relative;
}

.hero-sub {
  margin: 0 auto 32px;
  max-width: 480px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: scale(0.98); }

.btn-dark {
  background: rgba(24, 24, 28, 0.85);
  border-color: var(--border-strong);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-dark:hover {
  background: rgba(40, 40, 46, 0.95);
}

.btn-light {
  background: #f4f4f5;
  color: #0c0c0e;
}

.btn-light:hover {
  background: #ffffff;
}

/* Floating nodes */

.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

.node-line {
  fill: none;
  stroke: rgba(180, 190, 185, 0.45);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: dash 18s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -200; }
}

.float-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floaty 6s ease-in-out infinite;
}

.float-node--tl { top: 14%; left: 6%; animation-delay: 0s; }
.float-node--bl { bottom: 22%; left: 5%; animation-delay: 1.2s; }
.float-node--tr { top: 12%; right: 6%; flex-direction: row-reverse; animation-delay: 0.6s; }
.float-node--br { bottom: 20%; right: 5%; flex-direction: row-reverse; animation-delay: 1.8s; }

.float-node__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-node--tr .float-node__meta,
.float-node--br .float-node__meta {
  text-align: right;
}

.float-node__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.float-node__value {
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.float-node__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(18, 18, 22, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9d2cc;
  backdrop-filter: blur(8px);
}

.float-node__icon svg {
  width: 18px;
  height: 18px;
}

.hero-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 40px;
}

.scroll-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 24, 0.65);
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: color 0.2s ease;
}

.scroll-chip:hover { color: var(--text); }

.horizon {
  text-align: right;
}

.horizon span {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.horizon-bar {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.horizon-bar i {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.horizon-bar i:first-child {
  background: rgba(210, 220, 215, 0.75);
}

/* ---------- Partners strip ---------- */

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 42px;
  padding: 28px 16px 8px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.02em;
  user-select: none;
}

.partners span {
  transition: color 0.2s ease;
}

.partners span:hover {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Sections ---------- */

.section {
  padding: 100px 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
}

.section-head {
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.step {
  position: relative;
  text-align: center;
  padding: 8px 12px;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #c9d2cc;
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.step p {
  margin: 0 auto;
  max-width: 240px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
}

.feature-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.feature-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 3;
  background:
    linear-gradient(165deg, rgba(170, 190, 175, 0.08) 0%, transparent 45%),
    var(--elevated);
  display: flex;
  flex-direction: column;
}
.feature-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.feature-card:nth-child(4) { grid-column: 1; grid-row: 3; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #c9d2cc;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.feature-note {
  margin-top: auto;
  padding-top: 28px;
  font-size: 13px;
  font-weight: 500;
  color: #b7c4bc;
}

/* FAQ */

.faq {
  max-width: 680px;
  margin: 0 auto;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 560;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary svg {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 4px 22px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.faq-item a {
  color: #c9d2cc;
  text-underline-offset: 3px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand .brand span {
  font-size: 17px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
  margin: 14px 0 0;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 560;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 64px 0 96px;
}

.legal-header {
  max-width: 680px;
  margin: 0 auto 48px;
}

.legal-header a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-header a.back:hover { color: var(--text); }

.legal-header a.back svg {
  width: 16px;
  height: 16px;
}

.legal-header h1 {
  font-size: 32px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.legal-meta {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0;
}

.legal-body {
  max-width: 680px;
  margin: 0 auto;
}

.legal-body section {
  padding: 0 0 32px;
}

.legal-body h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 12px;
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-body ul {
  padding-left: 20px;
  margin: 8px 0 0;
}

.legal-body li { margin-bottom: 6px; }

.todo-inline {
  color: #f6c453;
  background: rgba(246, 196, 83, 0.12);
  border: 1px solid rgba(246, 196, 83, 0.3);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.owner-note {
  margin-top: 48px;
  padding: 20px 22px;
  border: 1px dashed rgba(246, 196, 83, 0.4);
  border-radius: 12px;
  background: rgba(246, 196, 83, 0.05);
}

.owner-note h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f6c453;
  margin: 0 0 10px;
}

.owner-note p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Legal page uses simpler sticky nav */
body.legal .nav {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .float-node,
  .node-lines {
    display: none;
  }

  .hero-line {
    font-size: clamp(36px, 7vw, 56px);
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-cols { gap: 40px; }
}

@media (max-width: 860px) {
  .shell { padding: 10px 10px 0; }

  .frame {
    min-height: calc(100vh - 20px);
    border-radius: 24px;
  }

  .nav {
    grid-template-columns: 1fr auto;
    padding: 16px 18px;
  }

  .nav-pill {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 12px;
    gap: 4px;
    display: none;
    z-index: 50;
  }

  .nav-pill.open { display: flex; }

  .nav-pill a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-pill-divider,
  .nav-shield {
    display: none;
  }

  .nav-account { display: none; }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 12px 18px 22px;
  }

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .horizon { text-align: left; }
  .horizon-bar { justify-content: flex-start; }

  .partners {
    gap: 16px 24px;
    font-size: 12.5px;
    padding: 22px 12px 4px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps::before { display: none; }

  .section { padding: 72px 0; }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .brand-word {
    letter-spacing: 0.2em;
    font-size: 15px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}
