/* Shared foundation for every page of the suite site (home + one page per product).
   Product pages add their own file on top and may override --accent and the fields. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #101113;          /* Studio Black */
  --stage: #0b0c0e;       /* Stage Black, behind pictures */
  --surface: #17181b;     /* Panel Graphite */
  --surface-2: #202227;
  --ink: #edeef0;
  --muted: #a3a6af;
  --accent: #aa7aff;      /* Neon Violet, the one accent */
  --accent-ink: #140b22;
  --lavender: #ece7ff;
  --violet-deep: #6d3df5;
  --pink: #ff70bf;
  --blue: #6aafff;
  --amber: #ffb547;

  --font: "Inter", system-ui, -apple-system, "SF Pro Text", sans-serif;

  --step-small: 0.875rem;                                  /* 14px */
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);     /* 16–18px */
  --step-lead: clamp(1.375rem, 1.15rem + 0.9vw, 2rem);     /* 22–32px */
  --step-head: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem);      /* 40–88px */
  --step-display: clamp(3rem, 0.6rem + 7.6vw, 9.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 13vw, 14rem);
  --radius: 0px;
  --header-h: 4rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
[hidden] { display: none !important; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { background: var(--stage); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--header-h) + 1rem); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-weight: 800; text-wrap: balance; letter-spacing: -0.035em; line-height: 0.98; }
.display { font-size: var(--step-display); font-weight: 900; letter-spacing: -0.045em; line-height: 0.92; }
.head { font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; max-width: 30ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
p { max-width: 60ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--small { min-height: 2.5rem; padding: 0 1rem; font-size: var(--step-small); }
.button--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); cursor: pointer; }
.button--ink { background: var(--accent-ink); color: var(--lavender); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--lavender); color: var(--accent-ink); }
  .button--ghost:hover { background: var(--ink); color: var(--bg); }
  .button--ink:hover { background: var(--violet-deep); color: #fff; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- site header (same on every page) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); padding-inline: var(--margin); background: var(--bg); transition: transform 360ms var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 1.0625rem; }
.site-header__brand img { width: auto; height: 28px; background: none; }
.site-header__brand span { color: var(--muted); font-weight: 500; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: 1rem; }
.site-header nav a:not(.button) { text-decoration: none; color: var(--muted); transition: color var(--t-hover) ease; }
.site-header nav a:not(.button):hover, .site-header nav a:not(.button):focus-visible { color: var(--ink); }
@media (max-width: 52rem) { .site-header .only-wide { display: none; } }

/* ---------- reveal (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 450ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transition: opacity 300ms ease; }
}

/* ---------- footer: invitation over a cropped name ---------- */
.footer { position: relative; min-height: 100svh; background: var(--lavender); color: var(--accent-ink); overflow: hidden; display: flex; flex-direction: column; }
.footer ::selection { background: var(--accent-ink); color: var(--lavender); }
.footer :focus-visible { outline-color: var(--violet-deep); }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: clamp(5rem, 10vw, 9rem); }
.footer__invite { grid-column: 1 / span 7; display: grid; gap: 2.5rem; }
.footer__form { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 36rem; }
.footer__form input { flex: 1 1 16rem; min-height: 3rem; padding: 0 1rem; border: 0; background: #fff; color: var(--accent-ink); font-size: 1rem; }
.footer__form input::placeholder { color: #6b6585; }
.footer__note { flex-basis: 100%; min-height: 1.5em; font-size: 0.9375rem; }
.footer__links { grid-column: 10 / span 3; display: grid; gap: 0.6rem; align-content: start; font-size: 1rem; font-weight: 600; }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: auto; padding-top: 4rem; color: #4a4363; }
.footer__name { font-size: 16.4vw; font-weight: 900; letter-spacing: -0.065em; line-height: 0.8; white-space: nowrap; margin: 0 0 0 calc(var(--margin) - 0.05em); max-width: none; transform: translateY(24%); color: var(--accent-ink); }
@media (max-width: 56rem) {
  .footer { min-height: 0; }
  .footer__top { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .footer__invite, .footer__links { grid-column: 1; }
  .footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.9375rem; }
  .footer__form .button { width: 100%; }
  .footer__name { font-size: 16.4vw; }
}

/* ---------- language switcher (added by i18n.js) ---------- */
.lang { display: flex; gap: 0.15rem; }
.lang button { min-width: 2.25rem; min-height: 2.25rem; padding: 0 0.4rem; font-size: var(--step-small); font-weight: 700; color: var(--muted); transition: color var(--t-hover) ease; }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.35em; text-decoration-thickness: 2px; }
.lang button:hover { color: var(--ink); }

/* ---------- site menu (built by site.js) ---------- */
.site-nav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.4em; text-decoration-thickness: 2px; }
.site-header__brand { white-space: nowrap; }
.site-nav__join { display: none; }
.site-nav__toggle { display: none; min-height: 2.5rem; padding: 0 0.75rem; font-size: var(--step-small); font-weight: 700; box-shadow: inset 0 0 0 1px var(--surface-2); }
@media (max-width: 52rem) {
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 0.5rem var(--margin) 1.25rem; background: var(--bg); border-bottom: 1px solid var(--surface-2); }
  .site-nav a { padding: 0.85rem 0; font-size: var(--step-lead); font-weight: 700; color: var(--ink) !important; }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav__toggle { display: inline-flex; align-items: center; }
  .site-header nav { gap: 0.5rem; }
}
@media (max-width: 30rem) {
  .site-header__join { display: none; }
  .site-nav .site-nav__join { display: block; color: var(--accent) !important; }
}
