:root {
  --ink: #f4f2eb;
  --muted: #c2c4bd;
  --line: rgba(255, 255, 255, 0.24);
  --line-strong: rgba(255, 255, 255, 0.58);
  --panel: rgba(12, 16, 15, 0.86);
  --panel-solid: #101514;
  --accent: #d7ff45;
  --accent-dark: #182000;
  --cyan: #73e5d2;
  --error: #ff8c78;
  --success: #b7ef66;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #0b0e0d;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.background-video,
.video-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-video {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.08);
}

.video-shade {
  z-index: -2;
  background: rgba(5, 8, 7, 0.6);
  box-shadow: inset 0 -30vh 30vh rgba(3, 5, 4, 0.48);
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 24px clamp(20px, 4vw, 64px) 20px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.demo-label,
.eyebrow,
.panel-kicker,
.research-facts dt {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.language-switcher {
  display: flex;
  min-width: 190px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(5, 8, 7, 0.44);
  padding: 3px 7px;
}

.language-icon {
  color: var(--accent);
  font-size: 17px;
}

#language-select {
  min-width: 0;
  min-height: 30px;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  outline: 0;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
}

#language-select option {
  background: #101514;
  color: var(--ink);
}

.language-switcher:focus-within {
  border-color: var(--accent);
}

.locale-source {
  border-left: 1px solid var(--line);
  color: var(--muted);
  padding-left: 7px;
  font-family: "Courier New", monospace;
  font-size: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  display: grid;
  width: min(1280px, 100%);
  flex: 1;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: center;
  align-self: center;
  padding: clamp(56px, 10vh, 110px) 0 48px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 20px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7.4vw, 112px);
  font-weight: 400;
  line-height: 0.92;
}

.hero-description {
  max-width: 610px;
  margin-bottom: 22px;
  color: #e1e1da;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.55;
}

.hero-store-row {
  display: flex;
  max-width: 520px;
  align-items: center;
  gap: 12px;
}

.hero-store-row img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
}

.hero-store-badge {
  display: block;
  width: min(240px, calc(50% - 6px));
  border-radius: 7px;
  cursor: default;
}

.hero-store-note {
  max-width: 520px;
  margin: 9px 0 30px;
  color: #b8bbb7;
  font-size: 10px;
  line-height: 1.4;
}

.research-facts {
  display: grid;
  max-width: 620px;
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.research-facts div {
  min-width: 0;
  padding: 18px 14px 0 0;
}

.research-facts dt {
  margin-bottom: 8px;
}

.research-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.access-panel {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(18px);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 34px;
}

.step-number {
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.panel-kicker {
  margin-bottom: 8px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 400;
  line-height: 1.06;
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
  display: flex;
  height: 58px;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.22);
}

.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.input-wrap.is-valid {
  border-color: var(--success);
}

.input-wrap.is-invalid {
  border-color: var(--error);
}

.input-prefix {
  position: absolute;
  left: 17px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
}

input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 44px 0 17px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

input::placeholder {
  color: #7e827d;
}

.validation-dot {
  position: absolute;
  right: 17px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.is-valid .validation-dot {
  border-color: var(--success);
  background: var(--success);
}

.is-invalid .validation-dot {
  border-color: var(--error);
  background: var(--error);
}

.field-help,
.field-status,
.store-note,
.privacy-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.field-help {
  margin: 9px 0 0;
}

.field-status {
  min-height: 18px;
  margin: 5px 0 8px;
  color: var(--error);
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-dark);
  cursor: pointer;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
}

.primary-button:not(:disabled):hover,
.primary-button:not(:disabled):focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}

.primary-button:disabled {
  border-color: #565c57;
  background: #373c38;
  color: #989d98;
  cursor: not-allowed;
}

.arrow {
  font-size: 18px;
}

.store-area {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.success-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 12px;
}

.success-icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #152000;
  font-size: 11px;
  font-weight: 700;
}

.store-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.store-badge {
  display: block;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #050706;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.store-badge:hover,
.store-badge:focus-visible {
  border-color: var(--accent);
}

.store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.store-note {
  margin: 12px 0 0;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.privacy-note p {
  margin: 0;
}

.privacy-lock {
  color: var(--cyan);
  font-size: 16px;
}

.site-footer {
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #b9bcb8;
  font-size: 9px;
}

.site-footer p {
  margin-bottom: 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  max-width: min(360px, calc(100vw - 40px));
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  color: var(--ink);
  opacity: 0;
  padding: 14px 16px;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
  line-height: 1.4;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .access-panel,
html[dir="rtl"] .site-footer {
  text-align: right;
}

html[dir="rtl"] .panel-heading,
html[dir="rtl"] .privacy-note,
html[dir="rtl"] .success-line {
  flex-direction: row-reverse;
}

html[dir="rtl"] input {
  direction: ltr;
  text-align: left;
}

@media (max-width: 940px) {
  .demo-label {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 54px;
  }

  .access-panel {
    max-width: 620px;
    justify-self: start;
  }
}

@media (max-width: 580px) {
  .page-shell {
    padding: 16px 16px 14px;
  }

  .brand > span:last-child {
    display: none;
  }

  .language-switcher {
    min-width: 154px;
  }

  #language-select {
    font-size: 11px;
  }

  .hero {
    gap: 36px;
    padding: 42px 0 34px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: 50px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-store-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-store-row img {
    width: 100%;
  }

  .hero-store-badge {
    width: min(270px, 100%);
  }

  .research-facts {
    grid-template-columns: 1fr 1fr;
  }

  .research-facts div:last-child {
    display: none;
  }

  .access-panel {
    padding: 24px 20px;
  }

  .store-buttons {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-video {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
