:root {
  --page: #f4f7fb;
  --paper: #ffffff;
  --ink: #0b1018;
  --ink-soft: #384454;
  --muted: #667386;
  --line: rgba(13, 21, 32, 0.12);
  --dark: #05080c;
  --dark-2: #0b1119;
  --dark-3: #111923;
  --text: #f8fbff;
  --text-soft: #aeb9c8;
  --blue: #2189ff;
  --blue-2: #5cc7ff;
  --green: #42c86f;
  --yellow: #f4bd4f;
  --red: #ef635b;
  --shadow-soft: 0 18px 45px rgba(18, 30, 46, 0.12);
  --shadow-strong: 0 32px 90px rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(33, 137, 255, 0.22);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.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;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--text);
  background: rgba(5, 8, 12, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 21px;
  line-height: 1;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(33, 137, 255, 0.34);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  color: rgba(248, 251, 255, 0.82);
  font-size: 14px;
  font-weight: 720;
}

.nav-links a,
.site-footer a,
.back-link,
.text-button {
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.site-footer a:hover,
.back-link:hover,
.text-button:hover {
  color: var(--blue-2);
}

.language-control {
  justify-self: end;
}

.language-control select {
  min-width: 142px;
  height: 42px;
  padding: 0 36px 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 680;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(60px, 7vw, 108px) clamp(20px, 5vw, 72px) clamp(58px, 7vw, 96px);
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(33, 137, 255, 0.15), transparent 36%),
    linear-gradient(155deg, #05080c 0%, #0a1119 52%, #081b2b 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 580px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero p {
  margin: 26px 0 0;
  max-width: 560px;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 52px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(180deg, #38a0ff, #0e73ea);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(33, 137, 255, 0.3);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(33, 137, 255, 0.38);
}

.primary-button.dark {
  background: #0d141e;
  box-shadow: none;
}

.primary-button::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background: currentColor;
  clip-path: polygon(55% 0, 69% 28%, 100% 34%, 78% 58%, 83% 92%, 55% 76%, 27% 92%, 32% 58%, 10% 34%, 41% 28%);
}

.text-button {
  color: var(--blue-2);
  font-size: 15px;
  font-weight: 780;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.trust-list li {
  padding: 8px 11px;
  color: rgba(248, 251, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.hero-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  perspective: 1400px;
}

.desktop-frame,
.showcase-screen {
  position: relative;
  padding: 34px 12px 12px;
  background: linear-gradient(180deg, #202732, #080b10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.desktop-frame {
  transform: rotateX(2deg) rotateY(-7deg);
}

.desktop-frame img,
.showcase-screen img,
.localized-large img,
.localized-stack img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  object-fit: contain;
  background: #050505;
}

.window-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 7px;
}

.window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-controls span:nth-child(1) { background: var(--red); }
.window-controls span:nth-child(2) { background: var(--yellow); }
.window-controls span:nth-child(3) { background: var(--green); }

.mode-card {
  position: absolute;
  right: clamp(6px, 2vw, 24px);
  bottom: -28px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 290px;
  padding: 14px;
  color: var(--text);
  background: rgba(10, 17, 25, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.mode-card img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.mode-card span {
  color: rgba(248, 251, 255, 0.86);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.floating {
  animation: floatFrame 8s ease-in-out infinite;
}

.section,
.product-section,
.localized-section,
.legal-preview,
.download-section {
  padding: clamp(74px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  padding: 0;
  margin: -34px auto 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.feature-rail article,
.mode-grid article {
  background: var(--paper);
  transition: transform 180ms ease, background 180ms ease;
}

.feature-rail article {
  min-height: 176px;
  padding: 30px;
}

.feature-rail article:hover,
.mode-grid article:hover {
  transform: translateY(-3px);
  background: #fdfefe;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #0d141e;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.feature-rail h2 {
  margin: 18px 0 8px;
  font-size: 20px;
  line-height: 1.16;
  font-weight: 850;
}

.feature-rail p,
.mode-grid p,
.section-heading p,
.product-copy p,
.check-list p,
.legal-copy p,
.download-section p,
.site-footer p,
.legal-document p {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.align-left {
  max-width: var(--max);
  text-align: left;
}

.section-heading h2,
.product-copy h2,
.legal-copy h2,
.download-section h2,
.legal-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5.1vw, 62px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p,
.download-section p {
  margin: 16px auto 0;
  max-width: 720px;
  font-size: 18px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(18, 30, 46, 0.08);
}

.mode-grid article {
  padding: 34px 28px;
}

.mode-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.mode-grid h3,
.legal-document h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
}

.product-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  color: var(--text);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(92, 199, 255, 0.14), transparent 34%),
    linear-gradient(150deg, rgba(33, 137, 255, 0.16), transparent 38%),
    linear-gradient(135deg, #05080c 0%, #0c121b 58%, #071522 100%);
  overflow: hidden;
}

.product-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.35;
}

.product-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-copy.is-changing {
  opacity: 0.25;
  transform: translateY(8px);
}

.product-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 860;
  line-height: 1;
  text-transform: uppercase;
}

.product-copy h2 {
  color: var(--text);
}

.product-copy p {
  color: var(--text-soft);
  font-size: 18px;
}

.check-list {
  margin-top: 28px;
}

.check-list p {
  position: relative;
  padding-left: 34px;
  margin: 14px 0;
  color: rgba(248, 251, 255, 0.9);
}

.check-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--blue);
  border-radius: 50%;
  clip-path: polygon(43% 64%, 24% 46%, 16% 55%, 44% 82%, 85% 28%, 75% 20%);
}

.showcase {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.showcase-screen {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(180deg, #1c232d, #080b10);
}

.showcase-screen::after {
  content: "";
  position: absolute;
  inset: 34px 12px 12px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -90px 120px rgba(33, 137, 255, 0.04);
}

.showcase-screen img {
  aspect-ratio: 16 / 9;
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.showcase-screen img.is-changing {
  opacity: 0.35;
  filter: blur(2px);
  transform: scale(0.992);
}

.shot-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.shot-button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 0 10px;
  color: rgba(248, 251, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.shot-button::after {
  content: "";
  position: absolute;
  inset: auto 12px 7px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 180ms ease, transform 180ms ease;
}

.shot-button:hover,
.shot-button.is-active {
  color: #fff;
  background: rgba(33, 137, 255, 0.86);
  border-color: rgba(92, 199, 255, 0.5);
  transform: translateY(-1px);
}

.shot-button.is-active::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.localized-section {
  background: #f7f9fc;
}

.localized-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.localized-large,
.localized-stack img {
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.localized-large img {
  aspect-ratio: 16 / 9;
}

.localized-stack {
  display: grid;
  gap: 18px;
}

.localized-stack img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.legal-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-copy {
  max-width: 540px;
}

.legal-copy p {
  font-size: 18px;
}

.legal-actions {
  display: grid;
  gap: 14px;
}

.document-link {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(18, 30, 46, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.document-link:hover {
  transform: translateY(-3px);
  border-color: rgba(33, 137, 255, 0.36);
  box-shadow: 0 18px 45px rgba(18, 30, 46, 0.13);
}

.document-link span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 860;
}

.document-link strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.download-section {
  text-align: center;
  background: var(--page);
}

.download-section img {
  margin: 0 auto 24px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(33, 137, 255, 0.22);
}

.download-section .primary-button {
  margin-top: 24px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 7, 12, 0.68);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.download-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 34px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  transform: translateY(16px) scale(0.96);
  transition: transform 220ms ease;
}

.modal-backdrop.is-open .download-modal {
  transform: translateY(0) scale(1);
}

.download-modal img {
  margin: 0 auto 18px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(33, 137, 255, 0.22);
}

.download-modal h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.download-modal p {
  margin: 14px auto 0;
  max-width: 310px;
  color: var(--muted);
  line-height: 1.55;
}

.modal-action {
  margin-top: 24px;
  min-width: 160px;
  border: 0;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink-soft);
  background: #f2f5f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.modal-close:hover {
  color: var(--ink);
  background: #e9eef5;
}

.legal-page {
  min-height: 72vh;
  background:
    linear-gradient(180deg, #05080c 0, #07111b 310px, var(--page) 310px);
  padding: clamp(42px, 6vw, 82px) clamp(18px, 5vw, 72px) clamp(82px, 9vw, 126px);
}

.legal-hero {
  max-width: 820px;
  margin: 0 auto 32px;
  color: var(--text);
}

.legal-hero h1 {
  color: var(--text);
  margin-top: 22px;
}

.legal-hero p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-weight: 740;
}

.back-link {
  color: var(--blue-2);
  font-size: 14px;
  font-weight: 820;
}

.legal-document {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.legal-document section + section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-document p {
  margin: 0;
  font-size: 17px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: center;
  padding: 34px clamp(20px, 5vw, 72px);
  color: var(--text);
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer nav {
  display: flex;
  gap: 20px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-brand {
  font-size: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@keyframes floatFrame {
  0%, 100% {
    transform: rotateX(2deg) rotateY(-7deg) translateY(0);
  }
  50% {
    transform: rotateX(2deg) rotateY(-7deg) translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .product-section,
  .legal-preview {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .desktop-frame {
    transform: none;
  }

  .floating {
    animation-name: floatFrameMobile;
  }

  @keyframes floatFrameMobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .feature-rail,
  .mode-grid {
    grid-template-columns: 1fr 1fr;
  }

  .localized-grid {
    grid-template-columns: 1fr;
  }

  .localized-stack {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 66px;
    padding-left: 14px;
    padding-right: 14px;
    overflow-x: clip;
  }

  .brand span {
    font-size: 18px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .language-control select {
    min-width: 112px;
    max-width: 44vw;
    height: 38px;
    padding-left: 10px;
    padding-right: 24px;
    font-size: 13px;
  }

  .hero,
  .section,
  .product-section,
  .localized-section,
  .legal-preview,
  .download-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions,
  .trust-list {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .text-button {
    width: 100%;
    text-align: center;
  }

  .primary-button {
    min-height: 56px;
    padding: 10px 14px;
  }

  .mode-card {
    position: static;
    margin-top: 12px;
    max-width: none;
  }

  .feature-rail,
  .mode-grid,
  .shot-picker,
  .localized-stack {
    grid-template-columns: 1fr;
  }

  .feature-rail {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .showcase-screen {
    padding: 30px 8px 8px;
  }

  .legal-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .legal-document {
    padding: 24px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
