:root {
  color-scheme: dark;
  --background: #080a0e;
  --text: #f6f7fa;
  --muted: #9ca4b2;
  --line: rgba(219, 229, 255, .13);
  --gutter: clamp(24px, 5vw, 200px);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body { margin: 0; color: var(--text); background: var(--background); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #fff; background: #3b4b69; }
:focus-visible { outline: 2px solid #c6d5f4; outline-offset: 7px; }
.page { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 100svh; display: flex; flex-direction: column; }
.ambient { position: absolute; z-index: -1; pointer-events: none; inset: 0; background: radial-gradient(ellipse at 90% 54%, #17223555, transparent 52%), linear-gradient(115deg, #080a0e 20%, #0c1018 100%); }

/* Header: logo on the left, contact button and language switch on the right */
.header { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 128px; padding: 32px var(--gutter); border-bottom: 1px solid var(--line); }
.wordmark { display: block; flex-shrink: 0; width: clamp(230px, 20vw, 430px); }
.wordmark img { display: block; width: 100%; height: auto; }
.header-actions { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 32px); }
.contact { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid rgba(246, 247, 250, .3); color: var(--text); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.contact svg { flex-shrink: 0; width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.4; }
.contact:hover { background: var(--text); border-color: var(--text); color: var(--background); }
.language-switch { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4a505b; }
.language-switch button { min-width: 44px; min-height: 44px; padding: 12px; border: 0; background: transparent; font-size: 11px; letter-spacing: 1px; color: #8c94a2; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: #fff; }
.language-switch button:hover { color: #fff; }

/* Centered hero */
.hero { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: clamp(56px, 7vh, 150px) var(--gutter) clamp(64px, 8vh, 180px); }
.hero-content { position: relative; z-index: 2; width: 100%; text-align: center; }
h1 { font-size: clamp(62px, 7.1vw, 240px); font-weight: 450; line-height: 1.04; letter-spacing: -.055em; margin: 0; }
h1 > span { display: block; }
.headline-muted { color: #a7b3c8; }
.description { max-width: 57em; margin: 0 auto; font-size: clamp(15px, 1.12vw, 24px); line-height: 1.85; font-weight: 350; color: #aab0bd; }
.description, .notice { text-wrap: balance; }
.notice { max-width: 60em; margin: 0 auto; font-size: clamp(11px, .75vw, 15px); line-height: 1.75; color: #7f8796; }
/* Thin separators between headline, description and notice; spacing follows screen height so the page breathes without scrolling */
.rule { width: min(340px, 50%); height: 1px; margin: clamp(30px, 6vh, 84px) auto; background: rgba(219, 229, 255, .2); }
.horizon { position: absolute; pointer-events: none; z-index: 0; right: -10%; left: -10%; bottom: -35%; height: 62%; transform: rotate(-8deg); opacity: .5; }
.horizon span { position: absolute; inset: 0; border-top: 1px solid rgba(162, 189, 229, .13); border-radius: 50%; }
.horizon span:nth-child(2) { top: 15px; }
.horizon span:nth-child(3) { top: 30px; }
.horizon span:nth-child(4) { top: 45px; }
.horizon span:nth-child(5) { top: 60px; }
.horizon span:nth-child(6) { top: 75px; }
.horizon span:nth-child(7) { top: 90px; }
.horizon span:nth-child(8) { top: 105px; }
.horizon span:nth-child(9) { top: 120px; }
.footer { position: relative; z-index: 2; min-height: 82px; padding: 24px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: #818a99; font-size: 10px; letter-spacing: .03em; }
.footer p { margin: 0; }
.footer a { border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.footer a:hover { color: var(--text); border-color: currentColor; }

/* Legal notice page */
.legal { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: clamp(48px, 8vh, 120px) 24px clamp(64px, 10vh, 140px); }
.legal h1 { font-size: clamp(36px, 4vw, 64px); line-height: 1.1; letter-spacing: -.04em; }
.legal-subtitle { margin: 14px 0 clamp(36px, 5vh, 64px); color: #a6b2c5; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 14px; color: #a6b2c5; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.legal p:not(.legal-subtitle) { margin: 0 0 8px; color: #aab0bd; font-size: 15px; line-height: 1.8; font-weight: 350; }
.todo { padding: 1px 5px; background: rgba(255, 170, 60, .16); color: #ffc27a; }
.legal-link { color: var(--text); border-bottom: 1px solid rgba(246, 247, 250, .35); }
.legal-link:hover { border-color: var(--text); }

@media (min-width: 2000px) {
  .header { min-height: 160px; }
  .contact { min-height: 52px; padding: 0 28px; font-size: 13px; }
  .rule { width: 420px; }
  .footer { min-height: 110px; font-size: 12px; }
}
/* Short laptop screens (e.g. 1366 x 768): tighter header and footer, headline capped by height, so nothing scrolls */
@media (max-height: 820px) and (min-width: 651px) {
  .header { min-height: 104px; padding-top: 24px; padding-bottom: 24px; }
  .footer { min-height: 64px; padding-top: 18px; padding-bottom: 18px; }
  h1 { font-size: clamp(54px, min(7.1vw, 12.5vh), 240px); }
}
@media (max-width: 650px) {
  .header { min-height: 96px; padding-top: 24px; padding-bottom: 24px; gap: 16px; }
  .wordmark { width: min(42vw, 200px); }
  .header-actions { gap: 8px; }
  .contact { padding: 0 14px; font-size: 10px; letter-spacing: .16em; }
  .language-switch { gap: 0; }
  .language-switch button { min-width: 32px; padding: 9px; font-size: 10px; }
  .hero { padding-top: 72px; padding-bottom: 88px; }
  h1 { font-size: clamp(38px, 8.2vw, 54px); line-height: 1.1; letter-spacing: -.055em; }
  html[lang="en"] h1 { font-size: clamp(35px, 7.4vw, 50px); }
  .description { font-size: 15px; line-height: 1.8; }
  .notice { font-size: 11px; }
  .rule { width: 96px; margin: 32px auto; }
  .footer { align-items: center; text-align: center; flex-direction: column; gap: 9px; justify-content: center; padding-top: 23px; padding-bottom: 23px; font-size: 9px; }
  .horizon { bottom: -34%; opacity: .3; }
}
/* Small phones: the contact button becomes an envelope icon; its label stays readable by screen readers */
@media (max-width: 440px) {
  .wordmark { width: min(40vw, 170px); }
  .contact { width: 44px; padding: 0; }
  .contact-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
