/* WROOM UI v4 — summer aqua palette, sticky header, scroll reveal */

:root {
  color-scheme: light;

  --paper: #eefbf4;
  --paper-2: #ddf5ec;
  --surface: #fbfffb;
  --surface-2: #ffffff;

  --ink: #102822;
  --ink-2: #29433d;
  --muted: #5f756f;
  --muted-2: #8ca49d;

  --line: #cce8df;
  --line-strong: #a9d8cf;

  --amber: #13b8b2;
  --amber-deep: #087f8c;
  --amber-soft: #bdf6e8;
  --amber-tint: #e4fbf4;

  --success: #4f7a3a;
  --danger: #b03a1f;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --max: 1200px;
  --gutter: clamp(20px, 4.5vw, 40px);

  --font-sans: "Inter", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Inter", "SF Pro Display", "Segoe UI", system-ui, serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: #fff; }

/* Layout */
.shell {
  width: min(100% - calc(var(--gutter) * 2), var(--max));
  margin: 0 auto;
}

.page {
  display: grid;
  gap: clamp(80px, 11vw, 140px);
  padding: 0 0 100px;
}

/* ───── HEADER (sticky w/ blur) ───── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav-wrap.is-stuck {
  background: rgba(243, 237, 226, 0.78);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 17px;
}

.brand__mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ink); color: var(--amber);
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}

.nav__links { display: flex; align-items: center; gap: 2px; }

.nav__links a {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px; font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__links a:hover { color: var(--ink); background: var(--paper-2); }

.nav__cta {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 14.5px; font-weight: 500;
  margin-left: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav__cta:hover { background: #2a241a; transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn:hover { background: #2a241a; transform: translateY(-1px); }

.btn--amber { background: var(--amber); color: #fff; }
.btn--amber:hover { background: var(--amber-deep); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); transform: none; }

.btn--quiet { background: var(--paper-2); color: var(--ink); }
.btn--quiet:hover { background: #e2d8c2; transform: none; }

.btn--ink-on-amber { background: var(--ink); color: var(--paper); }
.btn--ink-on-amber:hover { background: #2a241a; }

.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--xl { height: 60px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }

.btn__arrow { font-size: 18px; line-height: 1; transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--amber);
  position: relative;
}

.eyebrow__dot--live {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(19, 184, 178, 0.5);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 184, 178, 0.5); }
  60% { box-shadow: 0 0 0 8px rgba(19, 184, 178, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 184, 178, 0); }
}

.h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.h1 em { font-style: italic; color: var(--amber); font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 100; }

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.h2 em { font-style: italic; color: var(--amber); font-weight: 500; }

.h3 {
  margin: 0;
  font-size: 19px; line-height: 1.3;
  font-weight: 600; letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
}

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

.section__head {
  display: grid; gap: 16px;
  margin-bottom: 48px;
  max-width: 60ch;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.card--paper { background: var(--paper-2); border-color: transparent; }

/* ───── Scroll reveal ───── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow__dot--live { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ───── Footer ───── */
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.foot__brand { display: grid; gap: 8px; color: var(--muted); font-size: 13.5px; max-width: 40ch; }
.foot__brand strong { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }

.foot__links { display: flex; flex-wrap: wrap; gap: 6px 4px; justify-content: flex-end; }
.foot__links a {
  padding: 6px 12px; border-radius: 999px;
  color: var(--muted); font-size: 13.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.foot__links a:hover { background: var(--paper-2); color: var(--ink); }

@media (max-width: 720px) {
  :root { --gutter: 14px; }

  .shell { width: min(100% - calc(var(--gutter) * 2), var(--max)); }
  .page { gap: 56px; padding-bottom: 64px; }

  .nav {
    min-height: 60px;
    padding: 8px 8px 8px 12px;
    gap: 10px;
  }

  .brand { gap: 10px; font-size: 14px; }
  .brand__mark { width: 34px; height: 34px; border-radius: 11px; }
  .nav__links { flex: 1; justify-content: flex-end; }
  .nav__cta { height: 42px; padding: 0 14px; font-size: 13px; }

  .h1 { font-size: clamp(38px, 12vw, 58px); line-height: 0.98; }
  .h2 { font-size: clamp(30px, 9vw, 46px); line-height: 1; }
  .lead { font-size: 17px; line-height: 1.58; }
  .section__head { gap: 12px; margin-bottom: 28px; }
  .btn--xl { height: 52px; padding: 0 20px; font-size: 16px; }

  .foot { grid-template-columns: 1fr; }
  .foot__links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  :root { --gutter: 10px; }

  .page { gap: 44px; padding-bottom: 52px; }
  .nav-wrap { padding-top: 10px; }
  .nav { border-radius: 20px; }
  .nav__cta { min-width: 0; }
  .h1 { font-size: clamp(34px, 11vw, 48px); }
  .h2 { font-size: clamp(28px, 9vw, 40px); }
  .lead { font-size: 16px; }
  .card { padding: 20px; border-radius: 20px; }
}
