:root {
  color-scheme: dark;
  --bg: #090807;
  --panel: #11100e;
  --panel-soft: #17140f;
  --text: #f4ecdc;
  --muted: #aaa092;
  --gold: #f4b13e;
  --gold-soft: #ffd17a;
  --line: rgba(244, 177, 62, .19);
  --content: 1160px;
}

* { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 80% 20%, rgba(191, 103, 18, .11), transparent 28rem),
    linear-gradient(180deg, #0a0908 0%, #0c0a08 48%, #080706 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: max(12px, env(safe-area-inset-top)) max(18px, calc((100vw - var(--content)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(9, 8, 7, .85);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand img, .footer-brand img { border-radius: 12px; }
.site-header nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); color: var(--muted); font-size: .92rem; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }
.lang-button {
  width: 44px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(244,177,62,.08);
  color: var(--gold-soft);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  width: min(var(--content), calc(100% - 36px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  padding: clamp(52px, 8vw, 110px) 0;
}
.hero > *, .hero-copy, .hero-visual { min-width: 0; max-width: 100%; }
.hero-copy > * { max-width: 100%; }

.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: .74rem; font-weight: 900; letter-spacing: .18em; }
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero h1 span { color: var(--gold-soft); }
.hero-text { max-width: 620px; margin: 28px 0; color: #c5bbac; font-size: clamp(1rem, 1.5vw, 1.17rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.primary-button {
  min-height: 52px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffc45a;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6bd55, #e89d23);
  color: #17110a;
  font-weight: 900;
  box-shadow: 0 12px 44px rgba(227, 143, 23, .16);
}
.platforms { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.platforms i { width: 3px; height: 3px; background: var(--gold); border-radius: 999px; }
.feature-list { margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: #9f9587; font-size: .88rem; list-style: none; }
.feature-list li::before { content: "•"; margin-right: 8px; color: var(--gold); }

.hero-visual { position: relative; width: min(100%, 420px); justify-self: center; }
.hero-visual img { position: relative; z-index: 2; width: 100%; border-radius: 24px; box-shadow: 0 24px 90px rgba(0,0,0,.65); }
.glow { position: absolute; inset: 22% -10% 5%; z-index: 1; background: #bd681a; filter: blur(70px); opacity: .19; }

.how { width: min(var(--content), calc(100% - 36px)); margin: 0 auto; padding: clamp(72px, 9vw, 130px) 0; border-top: 1px solid rgba(255,255,255,.06); }
.how h2 { max-width: 700px; margin: 0 0 40px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4.8vw, 4.6rem); line-height: 1; letter-spacing: -.045em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps article { min-height: 230px; padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; background: linear-gradient(145deg, rgba(24,21,17,.94), rgba(14,13,11,.92)); }
.steps span { color: var(--gold); font-size: .75rem; font-weight: 900; letter-spacing: .16em; }
.steps h3 { margin: 50px 0 10px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

.document-shell, .support-shell { width: min(860px, calc(100% - 32px)); min-height: calc(100svh - 260px); margin: 0 auto; padding: clamp(44px, 7vw, 84px) 0; }
.document { padding: clamp(24px, 5vw, 58px); border: 1px solid rgba(255,255,255,.07); border-radius: 24px; background: rgba(18,16,13,.86); box-shadow: 0 30px 100px rgba(0,0,0,.22); }
.document h1, .support-card h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.045em; }
.document .updated { margin: 14px 0 40px; color: var(--muted); font-size: .9rem; }
.document h2 { margin: 42px 0 10px; font-size: 1.3rem; }
.document p, .document li { color: #c1b7a8; }
.document a { color: var(--gold-soft); text-decoration: underline; text-decoration-color: rgba(255,209,122,.35); text-underline-offset: 3px; }
.document ul { padding-left: 22px; }

.support-shell { display: grid; place-items: center; }
.support-card { width: 100%; padding: clamp(28px, 7vw, 70px); text-align: center; border: 1px solid rgba(255,255,255,.07); border-radius: 24px; background: rgba(18,16,13,.86); }
.support-card > img { margin: 0 auto 24px; border-radius: 22px; }
.support-card p:not(.eyebrow) { max-width: 630px; margin: 22px auto 30px; color: var(--muted); }
.support-card .primary-button { margin: 0 auto 18px; }
.mail-address { display: block; color: var(--gold-soft); overflow-wrap: anywhere; }

footer {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 max(34px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #8f8679;
  font-size: .82rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
footer p { margin: 0; }

@media (max-width: 780px) {
  .site-header { min-height: 64px; padding-left: 16px; padding-right: 16px; }
  .brand span { display: none; }
  .site-header nav { gap: 8px; }
  .site-header nav a:nth-of-type(1), .site-header nav a:nth-of-type(4) { display: none; }
  .site-header nav a { padding: 0 5px; font-size: .8rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 52px; padding-top: 64px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-copy { min-width: 0; }
  .eyebrow { white-space: normal; text-wrap: balance; overflow-wrap: anywhere; }
  .hero h1 { max-width: 100%; font-size: clamp(2.35rem, 8vw, 3.5rem); overflow-wrap: anywhere; }
  .hero-text { max-width: 540px; }
  .hero-actions, .feature-list { justify-content: center; }
  .feature-list { display: grid; gap: 8px; text-align: left; }
  .hero-visual { width: min(68vw, 300px); }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: 190px; }
  .steps h3 { margin-top: 34px; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 430px) {
  .hero, .how { width: min(100% - 28px, var(--content)); }
  .hero { padding-top: 46px; }
  .eyebrow { max-width: 100%; font-size: .66rem; letter-spacing: .13em; }
  .hero h1 { font-size: clamp(2.25rem, 10.7vw, 2.85rem); line-height: 1; letter-spacing: -.04em; }
  .hero-text { font-size: .96rem; }
  .hero-actions { width: 100%; }
  .primary-button { width: 100%; }
  .hero-visual { width: min(72vw, 280px); }
  .document-shell, .support-shell { width: calc(100% - 20px); padding: 24px 0 48px; }
  .document, .support-card { border-radius: 18px; }
  .document h1, .support-card h1 { font-size: 2.55rem; }
  .document h2 { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
