/* ═══════════════════════════════════════════════════════════════════
   SAILIAS — PRE-REGISTRATION
   Matched to the new web app design language.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Palette — exact tokens from web app */
  --honey: #946e1d;
  --honey-soft: #b68a3b;
  --honey-light: #c9994c;
  --honey-deep: #6f5215;
  --black: #1a1a1a;
  --white: #fafaf8;
  --cream: #f5f0e8;
  --charcoal: #3a3a3a;
  --stone: #c4b99a;
  --hairline: rgba(26, 26, 26, 0.08);
  --hairline-light: rgba(250, 250, 248, 0.16);

  /* Typography */
  --f-head: "DM Sans", "Open Sauce", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", "Pangram", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Easing */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Container */
  --container: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);
}

/* ─── Base ───────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--f-body);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

input,
button {
  font: inherit;
}

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

/* ─── Typography ──────────────────────────────────────────────────── */

.display {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--black);
}

.display--light {
  color: var(--white);
}

.accent-italic {
  color: var(--honey);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1.4rem;
}

.eyebrow--light {
  color: var(--honey-soft);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--charcoal);
  max-width: 56ch;
  margin-top: 1.6rem;
}

/* ─── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 220ms var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--honey-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(148, 110, 29, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(26, 26, 26, 0.35);
}

.btn--ghost:hover {
  border-color: var(--honey);
  color: var(--honey);
}

.band--dark .btn--ghost {
  color: var(--white);
  border: 1px solid rgba(250, 250, 248, 0.35);
}

.band--dark .btn--ghost:hover {
  border-color: var(--honey-soft);
  color: var(--honey-soft);
}

.btn--full {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  margin-top: 0.8rem;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.arrow {
  display: inline-block;
  transition: transform 220ms var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ─── Nav ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand img {
  height: 36px;
  width: auto;
}

.nav__meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__meta .eyebrow {
  margin-bottom: 0;
}

/* ─── Hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(80px, 11vw, 160px) 0 clamp(80px, 11vw, 160px);
  overflow: hidden;
  background: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__watermark {
  position: absolute;
  top: 50%;
  right: -8%;
  width: clamp(540px, 56vw, 880px);
  height: auto;
  opacity: 0.07;
  transform: translateY(-50%) rotate(-8deg);
  filter: drop-shadow(0 0 60px rgba(148, 110, 29, 0.2));
}

.hero__orb {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(148, 110, 29, 0.18) 0%, rgba(148, 110, 29, 0) 65%);
  top: 8%;
  right: -10%;
  animation: orb-float 14s var(--ease) infinite alternate;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 20px) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 760px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.hero__meta {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

/* ─── Bands ───────────────────────────────────────────────────────── */

.band {
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.band--dark {
  background: var(--black);
  color: var(--white);
}

.band--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/fingerprint.png');
  background-repeat: no-repeat;
  background-position: -10% 50%;
  background-size: 720px;
  opacity: 0.04;
  filter: brightness(2);
  pointer-events: none;
}

.band--cream {
  background: var(--cream);
}

/* ─── Stats ───────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3.6rem;
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
}

.stat {
  padding: 56px 36px;
  border-right: 1px solid var(--hairline-light);
  position: relative;
}

.stat:last-child {
  border-right: 0;
}

.stat--filled {
  background: var(--honey);
  color: var(--white);
}

.stat__number {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.stat__suffix {
  color: var(--honey-light);
  font-style: italic;
  font-weight: 500;
}

.stat--filled .stat__suffix {
  color: rgba(255, 255, 255, 0.8);
}

.stat__label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(250, 250, 248, 0.86);
  max-width: 26ch;
}

.stat--filled .stat__label {
  color: rgba(255, 255, 255, 0.95);
}

.stat__source {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--stone);
}

.stat--filled .stat__source {
  color: rgba(255, 255, 255, 0.7);
}

.band__close {
  margin-top: 3rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: rgba(250, 250, 248, 0.85);
  font-weight: 400;
  max-width: 60ch;
}

/* ─── Capabilities ────────────────────────────────────────────────── */

.capabilities {
  padding: clamp(80px, 11vw, 160px) 0;
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 3.6rem;
}

.cap {
  position: relative;
  padding: 40px 32px 36px;
  background: #fafaf6;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
  overflow: hidden;
}

.cap:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -22px rgba(148, 110, 29, 0.22);
}

.cap__ghost {
  position: absolute;
  top: -10px;
  right: 8px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 8rem;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(148, 110, 29, 0.08);
  pointer-events: none;
}

.cap__num {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--honey);
}

.cap__title {
  position: relative;
  margin-top: 0.9rem;
  font-family: var(--f-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--black);
}

.cap__body {
  position: relative;
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--charcoal);
  line-height: 1.55;
}

.cap__bar {
  position: relative;
  height: 5px;
  margin-top: 1.6rem;
  background: rgba(148, 110, 29, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.cap__bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--honey), var(--honey-soft));
  border-radius: 999px;
  transition: width 1.4s var(--ease);
  position: relative;
}

.cap__bar > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  animation: shimmer 2.8s linear infinite;
}

.cap.is-visible .cap__bar > span {
  width: var(--w);
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ─── Siloed strip ────────────────────────────────────────────────── */

.silo {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 3rem;
  padding: 22px 28px;
  background: #fafaf6;
  border: 1px solid rgba(148, 110, 29, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}

.silo__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(148, 110, 29, 0.12);
  color: var(--honey);
}

.silo > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.silo strong {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--black);
  font-size: 1rem;
}

.silo span {
  color: var(--charcoal);
  font-size: 0.95rem;
}

/* ─── Why (dark editorial section) ────────────────────────────────── */

.why {
  background: var(--black);
  color: var(--white);
  padding: clamp(90px, 12vw, 180px) 0;
  position: relative;
  overflow: hidden;
}

.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/fingerprint.png');
  background-repeat: no-repeat;
  background-position: 110% 50%;
  background-size: 900px;
  opacity: 0.05;
  filter: brightness(2);
  transform: rotate(15deg);
  pointer-events: none;
}

.why .display {
  max-width: 22ch;
  margin-top: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

.why__sig {
  margin-top: 3.6rem;
  display: flex;
  align-items: center;
  gap: 18px;
}

.why__sig-line {
  width: 60px;
  height: 1px;
  background: var(--honey);
}

.why__attribution {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
}

/* ─── Pre-register ─────────────────────────────────────────────────── */

.preregister {
  background: var(--cream);
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.preregister::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/fingerprint.png');
  background-repeat: no-repeat;
  background-position: -20% 110%;
  background-size: 760px;
  opacity: 0.06;
  pointer-events: none;
}

.prereg-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  position: relative;
}

.prereg__intro .display {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
}

.prereg-bullets {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.prereg-bullets li {
  font-size: 1rem;
  color: var(--charcoal);
}

.dash {
  color: var(--honey);
  margin-right: 10px;
  font-weight: 500;
}

/* Form */

.prereg-form {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(148, 110, 29, 0.28);
  border-radius: 20px;
  padding: clamp(28px, 3.4vw, 44px);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 26, 0.18),
              0 8px 24px rgba(26, 26, 26, 0.05);
}

.prereg-form::before {
  /* subtle honey halo, perfectly aligned (no drift) */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  z-index: -1;
  background: rgba(148, 110, 29, 0.05);
  filter: blur(0.5px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.1rem;
}

.field label {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey);
}

.field input {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  background: var(--white);
  border-radius: 10px;
  color: var(--black);
  font-size: 1rem;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.field input:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(148, 110, 29, 0.16);
  background: #fffefb;
}

.form-fineprint {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.form-success {
  margin-top: 1.4rem;
  padding: 14px 18px;
  background: rgba(148, 110, 29, 0.08);
  border: 1px solid rgba(148, 110, 29, 0.3);
  border-radius: 10px;
  color: var(--honey-deep);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-success strong {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
}

.form-success span {
  font-size: 0.92rem;
  color: var(--charcoal);
}

/* ─── Footer ──────────────────────────────────────────────────────── */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0;
  border-top: 1px solid var(--hairline-light);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-family: var(--f-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(250, 250, 248, 0.62);
  flex-wrap: wrap;
}

.footer__meta a {
  color: var(--honey-soft);
  transition: color 200ms var(--ease);
}

.footer__meta a:hover {
  color: var(--honey-light);
}

.footer__divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(250, 250, 248, 0.18);
}

/* ─── Reveal animations ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--hairline-light);
    padding: 40px 0;
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .caps-grid {
    grid-template-columns: 1fr;
  }
  .prereg-grid {
    grid-template-columns: 1fr;
  }
  .hero__watermark { display: none; }
  .why .display { font-size: clamp(1.6rem, 5.4vw, 2.4rem); }
}

@media (max-width: 640px) {
  .nav__meta .eyebrow { display: none; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .silo {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
