/* TT NOVA GLOBAL, coming-soon page. One stylesheet, no JavaScript, no external request, no inline style (CSP: style-src 'self').
   Dark only (navy / silver / electric blue), the same palette as the full site's dark theme. Contrast of every text pair is tested (tests/design.test.mjs). */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 100%; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin-ext.woff2) format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 100%; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-latin-ext.woff2) format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* metric-compatible fallbacks (same values the full site uses) so the swap does not shift the layout */
@font-face { font-family: "Bricolage Fallback"; src: local(Arial); ascent-override: 88.21%; descent-override: 25.61%; line-gap-override: 0%; size-adjust: 105.43%; }
@font-face { font-family: "Geist Fallback"; src: local(Arial); ascent-override: 95.94%; descent-override: 28.16%; line-gap-override: 0%; size-adjust: 104.76%; }

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1d232c;
  --fg: #f5f7fa;
  --muted: #a5afbd;
  --line: rgba(245, 247, 250, 0.15);
  --accent: #4b8dff;
  --silver: #8c95a3;
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --font-body: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page {
  position: relative;
  isolation: isolate;
  overflow: hidden; /* the decorative art may extend past the edge: never a horizontal scrollbar */
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
/* line art, pure CSS: a faint blueprint grid, a soft blue glow and (hero only) concentric orbits */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 78% 30%, rgba(75, 141, 255, 0.16), transparent 70%),
    linear-gradient(to right, rgba(245, 247, 250, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(245, 247, 250, 0.05) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 25%, transparent 78%);
}

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1.5rem; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(13, 17, 23, 0.72); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.logo { display: block; height: 40px; width: 47px; max-width: none; object-fit: contain; object-position: left; }
.lang { display: inline-flex; align-items: center; gap: 0.125rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding-inline: 0.5rem;
  border-radius: 999px; text-decoration: none; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; color: var(--fg);
}
.lang a:hover { background: var(--surface-2); }
.lang a[aria-current="page"] { background: var(--fg); color: var(--bg); }

/* hero */
.hero { position: relative; display: grid; align-items: center; padding-block: 3rem 4rem; }
.hero .container { position: relative; z-index: 1; }
.hero-text { max-width: 40rem; }
.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(2.25rem, 9.5vw, 4.75rem);
  overflow-wrap: anywhere;
}
.lead { margin: 1.25rem 0 0; max-width: 32rem; font-size: clamp(1.125rem, 3.4vw, 1.5rem); line-height: 1.4; color: var(--fg); overflow-wrap: anywhere; hyphens: auto; }
.chip {
  display: inline-flex; align-items: flex-start; gap: 0.625rem; max-width: 100%;
  margin: 1.75rem 0 0; padding: 0.625rem 1rem;
  border: 1px solid var(--line); border-radius: 1rem; background: var(--surface);
  font-size: 0.9375rem; line-height: 1.45; overflow-wrap: anywhere; hyphens: auto;
}
.chip::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-top: 0.5rem; border-radius: 50%; background: var(--accent); }
.note { margin: 1.5rem 0 0; max-width: 32rem; font-size: 0.9375rem; color: var(--muted); overflow-wrap: anywhere; hyphens: auto; }

/* orbits (decorative, aria-hidden in the markup) */
.art { position: absolute; z-index: 0; right: -22vw; top: 50%; width: min(120vw, 46rem); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; opacity: 0.55; }
.art::before, .art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.art::before {
  background: repeating-radial-gradient(circle at center, transparent 0 3.2rem, rgba(75, 141, 255, 0.28) 3.2rem calc(3.2rem + 1px));
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 70%);
  mask-image: radial-gradient(circle, #000 18%, transparent 70%);
}
.art::after {
  inset: 14%;
  background: conic-gradient(from 200deg, transparent 0 55%, rgba(75, 141, 255, 0.95) 78%, rgba(200, 212, 230, 0.95) 83%, transparent 84%);
  -webkit-mask-image: radial-gradient(circle, transparent 0 66%, #000 66.5% 68.5%, transparent 69%);
  mask-image: radial-gradient(circle, transparent 0 66%, #000 66.5% 68.5%, transparent 69%);
}
@media (prefers-reduced-motion: no-preference) {
  .art::after { animation: orbit 90s linear infinite; }
  .hero-text > * { animation: rise 0.7s ease both; }
  .hero-text > :nth-child(2) { animation-delay: 0.1s; }
  .hero-text > :nth-child(3) { animation-delay: 0.2s; }
  .hero-text > :nth-child(4) { animation-delay: 0.3s; }
  @keyframes orbit { to { transform: rotate(1turn); } }
  @keyframes rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
}

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.5rem; }
.copyright { margin: 0; font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; color: var(--muted); text-underline-offset: 3px; }
.legal-nav a:hover { color: var(--fg); }

/* legal pages */
.legal { padding-block: 3rem 4rem; }
.legal .container { max-width: 52rem; }
.legal h1 { margin: 0 0 1.5rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(2rem, 7vw, 3rem); overflow-wrap: anywhere; }
.legal h2 { margin: 2rem 0 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.legal p { margin: 0 0 1rem; max-width: 46rem; line-height: 1.7; overflow-wrap: anywhere; hyphens: auto; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; color: var(--accent); text-underline-offset: 3px; }

/* private preview banner (only in --preview builds) */
.preview-banner { padding: 0.5rem 1.5rem; background: #3b2f00; color: #ffe08a; border-bottom: 1px solid #7a6200; font-size: 0.8125rem; font-weight: 700; text-align: center; }

/* 404 */
.notfound-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; }
.notfound-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-underline-offset: 3px; }

@media (min-width: 640px) {
  .logo { height: 48px; width: 149px; }
  .site-header .container { min-height: 4.5rem; }
  .hero { padding-block: 4.5rem 6rem; }
}
@media (min-width: 900px) {
  .art { right: -6vw; width: min(52vw, 46rem); opacity: 0.9; }
}
@media (min-width: 1280px) {
  .logo { height: 64px; width: 198px; }
  .site-header .container { min-height: 5rem; }
}
@media (forced-colors: active) {
  .chip, .lang, .lang a[aria-current="page"] { border: 1px solid CanvasText; }
  .art { display: none; }
}
