/*
 * Coming-soon page. Colour values are copied from frontend/packages/brand/src/tokens.css (light :root and dark roles);
 * type and hero background follow the marketing site (frontend/apps/site/app/assets/main.css: .t-display, .bg-glow, .bg-grid).
 * Fonts are self-hosted copies of @fontsource-variable/inter and bricolage-grotesque 5.3.0 (OFL, see fonts/LICENSE-*).
 */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --background: #fafafa;
  --foreground: #0a0a0a;
  --primary: #4f46e5;
  --primary-foreground: #ffffff;
  --primary-soft: #eef2ff;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --card: #ffffff;
  --ring: #4f46e5;
  --glow: rgb(79 70 229 / 0.13);
  --glow-soft: rgb(79 70 229 / 0.06);
  --grid-line: rgb(21 21 28 / 0.045);
  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-heading: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #09090b;
    --foreground: #fafafa;
    --primary: #818cf8;
    --primary-foreground: #0a0a0a;
    --primary-soft: #1e1b4b;
    --muted-foreground: #a1a1aa;
    --border: #27272a;
    --card: #111113;
    --ring: #818cf8;
    --glow: rgb(129 140 248 / 0.16);
    --glow-soft: rgb(129 140 248 / 0.07);
    --grid-line: rgb(250 250 250 / 0.05);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}

::selection { background: var(--primary-soft); }

.bg-glow, .bg-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-glow {
  background:
    radial-gradient(60% 55% at 50% 38%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, var(--glow-soft), transparent 70%);
}
.bg-grid {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.top, .hero, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}
.langs {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--card);
}
.langs a {
  min-width: 2.5rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  border-radius: 0.4375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.langs a:hover { color: var(--foreground); }
.langs a[aria-current='true'] { background: var(--primary-soft); color: var(--primary); }
a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.hero {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.mark { width: 3.5rem; height: 3.5rem; flex: none; }
.mark-bg { fill: var(--primary); }
.mark-fg { fill: var(--primary-foreground); }
.mark-cut { stroke: var(--primary); }
.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.eyebrow {
  margin: 2.5rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--primary);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.display {
  margin: 1.5rem 0 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw + 1rem, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.foot {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.foot p { margin: 0; }

@media (min-width: 40rem) {
  .top { padding: 1.5rem; }
  .hero { padding-inline: 1.5rem; }
  .mark { width: 4rem; height: 4rem; }
  .wordmark { font-size: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .langs a { transition: none; }
}
