:root {
  --ink: #e8eef6;
  --ink-soft: #9aabbe;
  --paper: #0a0f16;
  --mist: #121a24;
  --line: rgba(232, 238, 246, 0.1);
  --teal: #2dd4bf;
  --teal-bright: #5eead4;
  --signal: #ff5a3c;
  --signal-deep: #ff704f;
  --surface: rgba(18, 26, 36, 0.72);
  --surface-strong: rgba(22, 32, 44, 0.9);
  --white: #ffffff;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(45, 212, 191, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(255, 90, 60, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(45, 212, 191, 0.06), transparent 60%),
    linear-gradient(180deg, #0c121a 0%, var(--paper) 45%, #080c12 100%);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
}

#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header,
.mobile-nav,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 22, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
  z-index: 50;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 15, 22, 0.9);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow:
    0 0 0 3px rgba(45, 212, 191, 0.22),
    10px 0 0 -2px var(--signal);
  animation: pulse-node 2.8s var(--ease-out) infinite;
}

@keyframes pulse-node {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink) !important;
  font-weight: 600 !important;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid var(--signal);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(10, 15, 22, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 49;
  animation: slide-down 0.35s var(--ease-out);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 0.75rem 0;
  letter-spacing: -0.02em;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding:
    calc(var(--header-h) + 2rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(2.5rem, 6vw, 4.5rem);
}

.hero-content {
  max-width: 42rem;
  animation: hero-in 1s var(--ease-out) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  background: linear-gradient(120deg, #f4f7fb 35%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 12ch;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 0.85rem;
}

.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.4rem;
  border-radius: 0.35rem;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--signal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--signal-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(232, 238, 246, 0.22);
}

.btn-ghost:hover {
  border-color: rgba(232, 238, 246, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 4.5rem));
  gap: 0.65rem;
  max-width: 22rem;
}

.countdown-unit {
  text-align: left;
}

.countdown-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  animation: tick-pop 0.35s var(--ease-out);
}

.countdown-value.is-updating {
  animation: tick-pop 0.35s var(--ease-out);
}

@keyframes tick-pop {
  0% {
    transform: translateY(0.25rem);
    opacity: 0.4;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.35rem;
  display: block;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feature-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal);
  letter-spacing: -0.02em;
  padding-top: 0.2rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--ink-soft);
  max-width: 42ch;
}

.feature.reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.feature.reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.feature.reveal:nth-child(3) {
  transition-delay: 0.19s;
}

/* Plans — interactive containers (allowed as cards) */
.plan-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.plan-toggle-track {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
}

.plan-toggle-thumb {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: calc(50% - 0.25rem);
  height: calc(100% - 0.5rem);
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out);
  pointer-events: none;
}

.plan-toggle-track.is-reseller .plan-toggle-thumb {
  transform: translateX(100%);
}

.plan-toggle-btn {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.plan-toggle-btn.is-active {
  color: var(--teal-bright);
}

.plan-toggle-btn:hover:not(.is-active) {
  color: var(--ink);
}

.plan-grid {
  display: grid;
  gap: 1rem;
}

.plan-grid[hidden] {
  display: none !important;
}

@media (min-width: 900px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .plan-grid--reseller {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .plan-grid--reseller {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.25s ease,
    background 0.25s ease;
  outline: none;
}

.plan:hover,
.plan:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.4);
  background: var(--surface-strong);
}

.plan-featured {
  border-color: rgba(255, 90, 60, 0.4);
  background: rgba(28, 22, 20, 0.75);
}

.plan-featured:hover,
.plan-featured:focus-visible {
  border-color: var(--signal);
}

.plan h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.plan-price {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.plan-price span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-right: 0.15rem;
}

.plan-desc {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.plan ul {
  list-style: none;
  margin-bottom: 1.75rem;
  flex: 1;
}

.plan li {
  font-size: 0.95rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.plan li:last-child {
  border-bottom: 1px solid var(--line);
}

.plan-link {
  font-weight: 650;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.25s var(--ease-out), color 0.2s ease;
}

.plan-link::after {
  content: "→";
  transition: transform 0.25s var(--ease-out);
}

.plan-link:hover {
  color: var(--signal);
  gap: 0.55rem;
}

.plan-link:hover::after {
  transform: translateX(3px);
}

.plan.reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.plan.reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.plan.reveal:nth-child(3) {
  transition-delay: 0.19s;
}
.plan.reveal:nth-child(4) {
  transition-delay: 0.26s;
}

/* Waitlist */
.waitlist {
  padding-bottom: clamp(5rem, 14vw, 9rem);
}

.waitlist-inner {
  max-width: 36rem;
}

.waitlist-form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

@media (min-width: 560px) {
  .waitlist-form {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .form-status {
    grid-column: 1 / -1;
  }
}

.waitlist-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid rgba(232, 238, 246, 0.16);
  border-radius: 0.35rem;
  background: rgba(18, 26, 36, 0.85);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form input::placeholder {
  color: #6d7d90;
}

.waitlist-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.waitlist-form .btn {
  white-space: nowrap;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.35rem;
  color: var(--teal);
}

.form-status.error {
  color: var(--signal-deep);
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.8rem !important;
}

@media (min-width: 700px) {
  .site-footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
  }

  .footer-brand {
    margin-bottom: 0;
    margin-right: auto;
  }

  .footer-copy {
    margin-top: 0;
    width: 100%;
  }
}

/* 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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  #network {
    display: none;
  }
}
