/* ==========================================================================
   Glaveon — design system + landing styles
   Single stylesheet, no build step, no external requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --bg: #06080b;
  --bg-elev: #0b0f15;
  --surface: #10151d;
  --surface-2: #141b25;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #e9eef5;
  --text-muted: #9aa5b4;
  --text-dim: #6b7686;

  --mint: #22d3a6;
  --mint-dim: #14a583;
  --indigo: #6b76f7;
  --amber: #f6c453;
  --danger: #ff6b6b;

  --accent: var(--mint);
  --accent-contrast: #04120e;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Spacing / layout */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, 0.85);

  --ring: 0 0 0 3px rgba(34, 211, 166, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.0625rem);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient background: layered radial glows + faint technical grid */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(46rem 30rem at 12% -6%, rgba(34, 211, 166, 0.16), transparent 62%),
    radial-gradient(40rem 28rem at 88% 6%, rgba(107, 118, 247, 0.16), transparent 60%),
    radial-gradient(60rem 40rem at 50% 106%, rgba(107, 118, 247, 0.1), transparent 62%);
}

body::after {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 78%);
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
}

h3 {
  font-size: clamp(1.15rem, 1.3vw, 1.32rem);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 0.22em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

a:hover {
  color: var(--mint);
  text-decoration-color: currentColor;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}

li + li {
  margin-top: 0.45em;
}

strong {
  font-weight: 640;
  color: #fff;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: rgba(34, 211, 166, 0.28);
  color: #fff;
}

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--edge {
  border-top: 1px solid var(--line);
}

.stack > * + * {
  margin-top: var(--stack-gap, 1rem);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -140%;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--mint);
  color: var(--accent-contrast);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 620;
  text-decoration: none;
  transition: translate 0.2s var(--ease);
}

.skip-link:focus {
  translate: -50% 0;
  color: var(--accent-contrast);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Text helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lead {
  font-size: clamp(1.05rem, 1.1vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.muted {
  color: var(--text-muted);
}

.dim {
  color: var(--text-dim);
}

.fine {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.gradient-text {
  background: linear-gradient(96deg, #fff 8%, var(--mint) 52%, var(--indigo) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nowrap {
  white-space: nowrap;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow::before {
  display: none;
}

.section-head h2 {
  margin-bottom: 0.5em;
}

/* --------------------------------------------------------------------------
   5. Badge / pill
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

.badge strong {
  color: var(--text);
  font-weight: 600;
}

.pulse-dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--mint);
  opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; scale: 0.6; }
  70%, 100% { opacity: 0; scale: 1.5; }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  --btn-bg: linear-gradient(100deg, var(--mint) 0%, #4de3c0 55%, #7ce0ff 130%);
  --btn-fg: var(--accent-contrast);
  --btn-border: transparent;
  box-shadow: 0 10px 30px -12px rgba(34, 211, 166, 0.7);
}

.btn--primary:hover {
  box-shadow: 0 16px 38px -12px rgba(34, 211, 166, 0.85);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: var(--line-strong);
}

.btn--sm {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 1.7rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.btn svg {
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--mint);
}

.link-arrow svg {
  transition: translate var(--dur) var(--ease);
}

.link-arrow:hover svg {
  translate: 0.25rem 0;
}

/* --------------------------------------------------------------------------
   7. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
}

.site-header.is-stuck {
  background: rgba(6, 8, 11, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(160%);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap; /* lets the mobile nav drop onto its own row */
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 660;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

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

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li + li {
  margin-top: 0;
}

.nav__link {
  font-size: 0.925rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 520;
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.lang-switch a {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: translate 0.24s var(--ease), rotate 0.24s var(--ease),
    background-color 0.24s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
}

.nav-toggle__bars::before { translate: 0 -5px; }
.nav-toggle__bars::after { translate: 0 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  translate: 0 0;
  rotate: 45deg;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  translate: 0 0;
  rotate: -45deg;
}

@media (max-width: 60rem) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    margin-left: auto;
    order: 3;
  }

  .header__actions {
    order: 2;
    margin-left: auto;
  }

  .header__actions .btn {
    display: none;
  }

  .nav {
    order: 4;
    flex-basis: 100%;
    margin-left: 0;
    display: none;
  }

  .nav.is-open {
    display: block;
    padding-bottom: 1.25rem;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li {
    border-top: 1px solid var(--line);
  }

  .nav__link {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
  }

  .nav__cta {
    margin-top: 1rem;
  }

  .nav__cta .btn {
    width: 100%;
  }
}

@media (min-width: 60.0625rem) {
  .nav__cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

@media (max-width: 62rem) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  margin-bottom: 1.1rem;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.15vw, 1.22rem);
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.9rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero__proof svg {
  color: var(--mint);
  flex: none;
}

/* Waitlist panel */
.panel {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.panel::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 166, 0.85), rgba(107, 118, 247, 0.7), transparent);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.panel__title {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.panel__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */
.field {
  display: block;
  margin-bottom: 0.95rem;
}

.field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 560;
  color: var(--text-muted);
}

.field__label .req {
  color: var(--mint);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
  appearance: none;
}

.textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-dim);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: var(--ring);
  background: rgba(255, 255, 255, 0.055);
}

.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.15rem, calc(100% - 0.85rem) 1.15rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.select option {
  background: var(--surface-2);
  color: var(--text);
}

.field--invalid .input,
.field--invalid .select,
.field--invalid .textarea {
  border-color: var(--danger);
}

.field__error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--danger);
}

.field--invalid .field__error {
  display: block;
}

.field-row {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 30rem) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.35rem 0 1.15rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  accent-color: var(--mint);
}

.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__status {
  display: none;
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form__status.is-visible {
  display: block;
}

.form__status[data-tone="error"] {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.09);
  color: #ffc9c9;
}

.form__status[data-tone="success"] {
  border-color: rgba(34, 211, 166, 0.45);
  background: rgba(34, 211, 166, 0.09);
  color: #a8f2dd;
}

.form.is-busy {
  pointer-events: none;
  opacity: 0.7;
}

.spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form.is-busy .spinner {
  display: inline-block;
}

.form.is-busy .btn__label {
  opacity: 0.85;
}

@keyframes spin {
  to { rotate: 360deg; }
}

.form__success {
  display: none;
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
}

.form__success.is-visible {
  display: block;
}

.form__success .check {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 166, 0.14);
  border: 1px solid rgba(34, 211, 166, 0.4);
  color: var(--mint);
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

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

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 166, 0.28);
  background: rgba(34, 211, 166, 0.1);
  color: var(--mint);
}

.card--flat:hover {
  transform: none;
}

/* Pain list */
.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.pain-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.97rem;
}

.pain-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.pain-list svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--amber);
}

.pain-list b {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Deliverables list
   -------------------------------------------------------------------------- */
.deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.deliverables li {
  margin: 0;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  background: var(--bg-elev);
}

.deliverables__num {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.deliverables h3 {
  font-size: 1.03rem;
  margin-bottom: 0.4rem;
}

.deliverables p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. Process timeline
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  counter-reset: step;
}

.steps > li {
  position: relative;
  margin: 0;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.steps > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--mint);
}

.steps > li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.2rem;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
}

.steps__when {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.steps h3 {
  font-size: 1.06rem;
  margin-bottom: 0.45rem;
}

.steps p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. Function / use-case grid
   -------------------------------------------------------------------------- */
.func {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.15rem, 1.8vw, 1.45rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.func:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.func__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.func__head svg {
  flex: none;
  color: var(--mint);
}

.func__head h3 {
  margin: 0;
  font-size: 1rem;
}

.func ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.func li {
  margin: 0;
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.func li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* --------------------------------------------------------------------------
   14. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.stat {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--bg-elev);
}

.stat__value {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 660;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff, #9fb0c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. Split feature (two-column with visual)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.check-list svg {
  flex: none;
  margin-top: 0.28rem;
  color: var(--mint);
}

.check-list b {
  color: var(--text);
  font-weight: 600;
}

.no-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.no-list li {
  margin: 0;
  padding: 1.05rem clamp(1.1rem, 2vw, 1.5rem);
  background: var(--bg-elev);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.no-list svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--danger);
  opacity: 0.85;
}

.no-list b {
  color: var(--text);
  font-weight: 600;
}

/* Flow diagram */
.flow {
  width: 100%;
  height: auto;
  overflow: visible;
}

.flow__edge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  animation: dash 2.6s linear infinite;
}

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

.flow__node {
  fill: rgba(20, 27, 37, 0.95);
  stroke: rgba(255, 255, 255, 0.14);
}

.flow__node--hot {
  stroke: rgba(34, 211, 166, 0.6);
  fill: rgba(34, 211, 166, 0.1);
}

.flow__label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: #cfd8e4;
  letter-spacing: 0.04em;
}

.flow__tag {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--mint);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   16. Pricing / engagement
   -------------------------------------------------------------------------- */
.tiers {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
}

.tier--featured {
  border-color: rgba(34, 211, 166, 0.4);
  background: linear-gradient(180deg, rgba(34, 211, 166, 0.075), rgba(255, 255, 255, 0.01));
  box-shadow: 0 30px 60px -40px rgba(34, 211, 166, 0.6);
}

.tier__tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 166, 0.15);
  border: 1px solid rgba(34, 211, 166, 0.35);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.tier h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.tier__price {
  margin: 0.2rem 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.tier__price span {
  font-weight: 450;
  color: var(--text-dim);
}

.tier > p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.tier ul {
  list-style: none;
  margin: 0.4rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.tier li {
  margin: 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.91rem;
  color: var(--text-muted);
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 1.5px solid var(--mint);
  border-bottom: 1.5px solid var(--mint);
  rotate: -45deg;
}

.tier__foot {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   17. FAQ (native details/summary)
   -------------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 580;
  letter-spacing: -0.015em;
  list-style: none;
  transition: color var(--dur) var(--ease);
}

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

.faq summary:hover {
  color: var(--mint);
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: auto;
  margin-top: 0.35rem;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  rotate: 45deg;
  opacity: 0.6;
  transition: rotate 0.25s var(--ease);
}

.faq details[open] summary::after {
  rotate: -135deg;
  margin-top: 0.6rem;
}

.faq__body {
  padding: 0 3rem 1.4rem 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 62ch;
}

.faq__body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: clamp(2.25rem, 4.5vw, 4rem);
  border: 1px solid var(--line-strong);
  border-radius: clamp(var(--radius-lg), 3vw, 30px);
  background:
    radial-gradient(60rem 24rem at 12% 0%, rgba(34, 211, 166, 0.14), transparent 60%),
    radial-gradient(50rem 22rem at 92% 100%, rgba(107, 118, 247, 0.18), transparent 62%),
    var(--surface);
  overflow: hidden;
}

.cta__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
}

@media (max-width: 58rem) {
  .cta__grid {
    grid-template-columns: 1fr;
  }
}

.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.cta p {
  color: var(--text-muted);
  max-width: 42ch;
}

.cta__form {
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(6, 8, 11, 0.6);
  backdrop-filter: blur(10px);
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 4vw, 3.5rem) 2rem;
  font-size: 0.9rem;
}

.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr));
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.footer__about p {
  color: var(--text-muted);
  max-width: 34ch;
  font-size: 0.9rem;
  margin: 1rem 0 0;
}

.footer h4 {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer li {
  margin: 0;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

@media (max-width: 52rem) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 28rem) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   20. Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  translate: 0 0;
}

/* --------------------------------------------------------------------------
   21. Content pages (privacy / terms / 404)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.prose h3 {
  margin-top: 1.8em;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose a {
  color: var(--mint);
}

.page-hero {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   22. Motion / contrast preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-muted: #cdd6e2;
    --text-dim: #aab4c2;
    --line: rgba(255, 255, 255, 0.24);
    --line-strong: rgba(255, 255, 255, 0.38);
  }
}

/* --------------------------------------------------------------------------
   23. Print
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  body::after,
  .site-header,
  .cta,
  .site-footer {
    display: none !important;
  }
}
