:root {
  --bg: #181818;
  --bg-elevated: #1e1e1e;
  --bg-soft: #1c1c1c;
  --bg-panel: rgba(30, 30, 30, 0.94);
  --border: #232323;
  --border-soft: rgba(201, 168, 76, 0.18);
  --text: #f2f2f2;
  --muted: #8a8a8a;
  --silver: #cfcfcf;
  --silver-bright: #f7f7f7;
  --accent: #c9a84c;
  --accent-soft: #e2c878;
  --accent-deep: #8f7429;
  --accent-hover: #dfc46a;
  --radius: 4px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --shadow-glow: 0 0 80px rgba(201, 168, 76, 0.05);
  --max: 1120px;
  --header-h: 4.25rem;
  --velvet: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 1100px 560px at 50% -8%, rgba(255, 255, 255, 0.045), transparent 58%),
    radial-gradient(ellipse 800px 480px at 12% 100%, rgba(201, 168, 76, 0.055), transparent 55%),
    radial-gradient(ellipse 700px 420px at 100% 80%, rgba(201, 168, 76, 0.04), transparent 50%),
    linear-gradient(180deg, #1c1c1c 0%, #181818 42%, #1a1a1a 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: var(--velvet);
  background-size: 180px 180px;
}

#top {
  position: relative;
  z-index: 1;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: #1a1408;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--silver-bright);
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.15rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 40rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.star {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

.star-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--accent);
  margin: 1.35rem 0;
}

.star-row::before,
.star-row::after {
  content: "";
  height: 1px;
  width: 3.5rem;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.45), transparent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand img {
  width: 36px;
  height: 36px;
  display: block;
}

.brand-name {
  display: flex;
  gap: 0.28em;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--silver);
  line-height: 1;
}

.brand-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--silver-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--silver);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-links a:hover {
  color: var(--accent-soft);
}

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

.lang {
  position: relative;
}

.lang-btn,
.menu-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--silver);
  border-radius: var(--radius);
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang-btn:hover,
.menu-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--silver-bright);
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 13rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem;
  box-shadow: var(--shadow-glow);
}

.lang.open .lang-menu {
  display: grid;
}

.lang-menu button {
  background: transparent;
  border: 0;
  color: var(--silver);
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  border-radius: 3px;
}

.lang-menu button:hover,
.lang-menu button[aria-current="true"] {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--silver-bright);
}

.menu-btn {
  display: none;
}

.nav-cta {
  display: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  border-radius: var(--radius);
  padding: 0.55rem 1.05rem;
  min-height: 2.35rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 35%, var(--bg-elevated)),
    color-mix(in srgb, var(--accent-deep) 40%, var(--bg))
  );
  color: var(--silver-bright);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  border-color: var(--accent);
  filter: brightness(1.08);
  color: var(--silver-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--silver-bright);
  filter: none;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.btn-lg {
  min-height: 2.7rem;
  padding-inline: 1.25rem;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  padding: 3.25rem 0 2.5rem;
  text-align: center;
}

.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-lockup img {
  width: min(168px, 42vw);
  height: min(168px, 42vw);
}

.wordmark {
  display: flex;
  gap: 0.28em;
  margin-top: 0.7rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--silver);
  line-height: 1;
}

.wordmark em {
  font-style: italic;
  font-weight: 400;
  color: var(--silver-bright);
}

.hero h1 {
  margin-top: 1.6rem;
  max-width: 18ch;
  margin-inline: auto;
}

.hero .lead {
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-note {
  margin: 1.15rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.confidence {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* Product stage */

.stage {
  margin: 2.75rem auto 0;
  max-width: 920px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 8px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-glow), 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.stage-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: #1a1a1a;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
}

.stage-url {
  margin-left: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage-body {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  min-height: 280px;
}

.stage-side {
  border-right: 1px solid var(--border);
  padding: 1rem 0.85rem;
  background: color-mix(in srgb, var(--accent) 4%, #191919);
}

.stage-side span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.38rem 0.45rem;
  border-radius: 3px;
}

.stage-side span.on {
  color: var(--accent-soft);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.stage-doc {
  padding: 1.25rem 1.4rem 1.5rem;
  text-align: left;
}

.stage-doc h3 {
  font-size: 1.45rem;
}

.stage-meta {
  margin: 0.35rem 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.clause {
  margin-top: 0.75rem;
}

.clause strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.clause i,
.clause em.line {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, #3a3a3a, #2a2a2a 70%, transparent);
  margin: 0.28rem 0;
  font-style: normal;
}

.clause i:nth-child(3) {
  width: 88%;
}
.clause i:nth-child(4) {
  width: 72%;
}

/* Proof */

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding-bottom: 1rem;
}

.proof article {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 4%, var(--bg-soft));
}

.proof .k {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.proof h3 {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 500;
}

.proof p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Cards */

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 0.9rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-glow);
}

.card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.92rem;
}

.card .blurb {
  margin-top: 0.4rem;
  color: var(--silver);
  font-size: 0.9rem;
}

.ico {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.checks {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.checks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--silver);
  font-size: 0.92rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 10%, var(--border));
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}

.layers {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.layers div {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-soft));
}

.layers strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 500;
}

.quote {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-soft);
  font-family: var(--display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--silver-bright);
  line-height: 1.35;
}

/* CTA band */

.cta-band {
  margin: 1rem 0 3rem;
  padding: 2.4rem 2rem;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(201, 168, 76, 0.1), transparent 60%),
    var(--bg-elevated);
}

.cta-band .lead {
  margin-inline: auto;
}

.cta-band .hero-actions {
  margin-top: 1.4rem;
}

.cta-mail {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--silver);
  font-size: 0.88rem;
}

.site-footer .fine {
  margin: 1.75rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.foot-brand p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
  max-width: 22rem;
}

/* Dialog */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 8, 8, 0.72);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.overlay.open {
  display: flex;
}

.dialog {
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
}

.dialog h2 {
  font-size: 1.85rem;
}

.field {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.85rem;
}

.field label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  background: var(--bg-soft);
  border: 1px solid color-mix(in srgb, #fff 22%, var(--border));
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
}

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

.dialog .note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

body.lock {
  overflow: hidden;
}

/* Legal page */

.legal-main {
  padding: 5rem 0 4rem;
  max-width: 42rem;
}

.legal-main h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-main p {
  color: var(--silver);
  font-weight: 300;
  margin: 1rem 0 0;
}

/* Mobile nav */

@media (max-width: 900px) {
  .proof,
  .grid-4,
  .grid-3,
  .foot-grid,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .stage-body {
    grid-template-columns: 1fr;
  }

  .stage-side {
    display: flex;
    gap: 0.35rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }

  .stage-side span {
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

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

  .nav-cta {
    display: block;
    padding: 0.85rem 0 0.2rem;
    border-bottom: 0;
  }

  .nav-cta a.btn {
    width: 100%;
  }

  .nav-links a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta a {
    border-bottom: 0;
    color: var(--silver-bright);
  }

  .menu-btn {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .proof,
  .grid-4,
  .grid-3,
  .foot-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .cta-band {
    padding: 1.75rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
