﻿@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Georgian:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --text: #f2edf9;
  --muted: #c0b5cf;
  --accent: #d0b0fc;
  --border: #c8a9f54d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: var(--text);
  font: 14px/1.6 Manrope, Arial, sans-serif;
  background: #0a0812;
}
/* A separate fixed layer keeps the supplied orc visible as the page scrolls. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, #08060de8, #08060d15 70%),
    linear-gradient(90deg, #08060d65, #08060d15, #08060d45),
    url('hero.webp') 65% center / cover no-repeat;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
header { text-align: center; padding: 32px 20px 20px; }
h1 {
  font: 500 clamp(40px, 5vw, 68px)/1 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .18em;
  margin: 0 0 12px;
  padding-left: .18em;
  text-shadow: 0 2px 25px #000;
}
header p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 6px;
}
header p span { width: 40px; height: 1px; background: #c8a9f580; }
.layout {
  width: min(1400px, calc(100% - 64px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
  padding: 32px 0 48px;
}
.layout > section { min-width: 0; }
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 10px;
}
h2 {
  font: 500 clamp(28px, 2.5vw, 34px)/1.15 'Cormorant Garamond', Georgia, serif;
  margin: 0 0 24px;
}
.side { text-align: center; text-shadow: 0 2px 12px #000; }
.video {
  aspect-ratio: 16/9;
  border: 1px solid #c8a9f580;
  background: #0d0916;
  box-shadow: 0 12px 45px #0008;
  margin-bottom: 12px;
}
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.subtle { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
a.subtle { display: inline-flex; align-items: center; min-height: 44px; }
a.subtle:hover { color: #fff; text-decoration: underline; }
.form-card {
  padding: 30px;
  background: #100b1be8;
  border: 1px solid var(--border);
  border-top-color: #d0b0fc99;
  box-shadow: 0 20px 70px #0008, 0 0 45px #a862ee12;
  backdrop-filter: blur(12px);
  scroll-margin-top: 24px;
}
.form-card > .eyebrow, .form-card > h2 { text-align: center; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 15px; }
input:not([type=checkbox]):not([type=hidden]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: 7px;
  padding: 11px 12px;
  background: #09060fbb;
  border: 1px solid #c8a9f545;
  border-radius: 0;
  color: var(--text);
  font-size: 16px;
}
input::placeholder { color: #a99bb9; font-size: 12px; }
.field-note { font-size: 11px; color: var(--muted); margin: 0 0 16px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 20px;
  cursor: pointer;
}
.check input { accent-color: var(--accent); margin: 2px 0 0; width: 18px; height: 18px; flex-shrink: 0; }
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--accent);
  border: 1px solid #e0cbfa;
  color: #20112f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-shadow: none;
  transition: background .2s;
}
.button:hover { background: #e1cafa; }
.button span { font-size: 20px; line-height: 1; }
.button:disabled { cursor: default; background: #31223fee; color: #d6bfea; border-color: #9572b080; }
.download-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  background: #160c25aa;
  margin: 0 auto 24px;
  font-size: 32px;
  color: var(--accent);
}
.download h2 { margin-bottom: 14px; }
.description { color: #ded4e9; margin: 0 auto 24px; max-width: 250px; }
.download .button { max-width: 290px; margin: auto; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notice { padding: 12px; margin: 0 0 16px; font-size: 13px; border: 1px solid var(--border); overflow-wrap: anywhere; }
.success { color: #b0e6c4; }
.error { color: #ffc4bb; }
footer { text-align: center; color: var(--muted); font-size: 11px; line-height: 1.8; padding: 12px 16px 24px; text-shadow: 0 1px 8px #000; }
/* Preserve document order: trailer, registration, download. */
@media (max-width: 1000px) {
  .layout {
    width: min(540px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 20px 0 36px;
  }
  body::before { background-position: center, center, 68% top; }
  .side {
    padding: 24px;
    background: #100b1bd9;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px #0005;
  }
  h2 { font-size: 32px; }
  .form-card { padding: 28px; }
  .download .button { max-width: none; }
}
@media (max-width: 400px) {
  header { padding-top: 24px; }
  .layout { width: calc(100% - 28px); gap: 24px; }
  .side, .form-card { padding: 20px 16px; }
  h2 { font-size: 29px; }
  .eyebrow { letter-spacing: 1.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Georgian typography: natural spacing and room for translated labels. */
html[lang="ka"] body { font-family: 'Noto Sans Georgian', Manrope, Arial, sans-serif; }
html[lang="ka"] h2 { font-family: 'Noto Sans Georgian', Arial, sans-serif; font-size: clamp(23px, 2vw, 28px); line-height: 1.5; }
html[lang="ka"] .eyebrow { letter-spacing: .02em; line-height: 1.7; }
html[lang="ka"] .button { line-height: 1.6; overflow-wrap: anywhere; }

/* Fit the three desktop blocks on laptop screens without clipping content. */
@media (min-width: 1001px) and (max-height: 900px) {
  header { padding: 16px 20px 8px; }
  h1 { font-size: 44px; margin-bottom: 7px; }
  header p { font-size: 10px; }
  .layout { padding: 12px 0; }
  .form-card { padding: 20px 24px; }
  .form-card h2 { margin-bottom: 16px; }
  label { margin-bottom: 10px; }
  input:not([type=checkbox]):not([type=hidden]) {
    min-height: 40px;
    padding: 8px 11px;
    margin-top: 4px;
  }
  .field-note { margin-bottom: 10px; }
  .check { margin-bottom: 12px; }
  .button { min-height: 44px; padding: 10px 12px; }
  footer { padding: 6px 16px 12px; font-size: 10px; }
}
@media (min-width: 1001px) and (max-height: 720px) {
  header { padding-top: 10px; }
  h1 { font-size: 36px; }
  .layout { padding: 8px 0; }
  .form-card { padding: 14px 20px; }
  .form-card > .eyebrow { margin-bottom: 5px; }
  .form-card h2 { margin-bottom: 10px; }
  html[lang="ka"] .form-card h2 { font-size: 23px; }
  label { margin-bottom: 8px; }
  .field-note, .check { font-size: 11px; }
  footer { padding-bottom: 8px; }
}
