/* Сайт caimanpilot.com — облик экрана входа приложения.
   Цвета перенесены из packages/mobile/src/theme/colors.ts (палитры dark и light, приняты CEO 14.11.2026).
   Меняется приложение — меняется и здесь, тем же изменением. */

:root {
  color-scheme: dark;
  --canvas-top: #0B1630;
  --canvas-mid: #09122A;
  --canvas: #070D1C;
  --glow: rgba(42, 91, 200, 0.55);
  --glow-soft: rgba(42, 91, 200, 0.14);
  --ring: rgba(110, 160, 255, 0.22);
  --ring-faint: rgba(110, 160, 255, 0.10);
  --text: #EEF2FA;
  --text-2: #A9B4CC;
  --text-muted: #8792AD;
  --accent: #8FBBFF;
  --glass-fill: rgba(28, 58, 128, 0.30);
  --glass-border: rgba(120, 170, 255, 0.55);
  --glass-shadow: 0 0 22px rgba(61, 123, 255, 0.45);
  --hairline: rgba(160, 190, 255, 0.12);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --caiman-fade-start: 62%;
  --caiman-fade-end: 100%;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas-top: #F4F7FD;
    --canvas-mid: #EAF0FB;
    --canvas: #F7F9FD;
    --glow: rgba(255, 255, 255, 0.9);
    --glow-soft: rgba(188, 208, 245, 0.35);
    --ring: rgba(61, 111, 216, 0.16);
    --ring-faint: rgba(61, 111, 216, 0.08);
    --text: #0E1A33;
    --text-2: #4A5877;
    --text-muted: #5A6683;
    --accent: #1646A3;
    --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(240, 245, 253, 0.95));
    --glass-border: rgba(22, 70, 163, 0.08);
    --glass-shadow: 0 14px 30px rgba(22, 70, 163, 0.20);
    --hairline: rgba(22, 70, 163, 0.10);
    --caiman-fade-start: 70%;
    --caiman-fade-end: 88%;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 62% 34% at 50% 27%, var(--glow) 0%, var(--glow-soft) 55%, transparent 100%) no-repeat,
    linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-mid) 45%, var(--canvas) 100%) fixed;
  background-color: var(--canvas);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── шапка: язык ───────────────────────────────────────── */
.topbar {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.2px;
}
.brand img { width: 30px; height: 30px; object-fit: cover; object-position: top; border-radius: 50%; }
.lang { display: inline-flex; gap: 4px; }
.lang a, .lang span {
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-2);
}
.lang span[aria-current] { color: var(--text); border: 1px solid var(--glass-border); }

/* ── главная ──────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 24px 0;
  text-align: center;
}
.stage {
  position: relative;
  width: 300px;
  height: 340px;
  margin: 0 auto;
}
.stage::before, .stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.stage::before { width: 264px; height: 264px; border: 1px solid var(--ring); }
.stage::after { width: 356px; height: 356px; border: 1px solid var(--ring-faint); }
.caiman {
  position: relative;
  z-index: 1;
  display: block;
  width: 226px;
  height: 340px;
  margin: 0 auto;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 var(--caiman-fade-start), transparent var(--caiman-fade-end));
  mask-image: linear-gradient(180deg, #000 var(--caiman-fade-start), transparent var(--caiman-fade-end));
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-top: 4px;
}
.hero h1 .pilot { color: var(--accent); }
.lead {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--text-2);
  font-size: 18px;
}
.soon { margin-top: 10px; color: var(--text-muted); font-size: 15px; }

/* ── стеклянная карточка ──────────────────────────────── */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.hero .glass {
  max-width: 560px;
  margin: 28px auto 0;
  padding: 22px 26px;
  text-align: left;
}
.facts { display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--text-muted); font-size: 15px; }
.facts dd { text-align: right; font-size: 15px; }

/* ── юридические страницы ─────────────────────────────── */
.doc {
  max-width: 820px;
  margin: 28px auto 0;
  padding: 0 20px;
}
.doc .glass { padding: 34px 38px; }
.doc h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.4px;
}
.doc .meta { color: var(--text-muted); font-size: 15px; margin-top: 8px; }
.doc h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.3;
  margin: 34px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.doc h3 { font-size: 17px; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { margin: 10px 0 10px 22px; }
.doc li { margin: 6px 0; }
.doc .muted { color: var(--text-2); }
.note {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--glow-soft);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
th { color: var(--text-muted); font-weight: 600; }

/* ── подвал ───────────────────────────────────────────── */
footer {
  max-width: 980px;
  margin: 48px auto 0;
  padding: 24px 24px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer nav a { color: var(--text-2); text-decoration: none; }
footer nav a:hover { color: var(--accent); }
.imprint { line-height: 1.7; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .doc .glass { padding: 24px 20px; }
  .hero .glass { padding: 18px 18px; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  .stage { width: 260px; height: 300px; }
  .caiman { width: 200px; height: 300px; }
  .stage::before { width: 228px; height: 228px; }
  .stage::after { width: 300px; height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
