:root {
  --bg: #050816;
  --bg-soft: #0f1630;
  --panel: rgba(14, 20, 42, 0.78);
  --panel-strong: rgba(18, 26, 54, 0.94);
  --text: #edf4ff;
  --muted: #aab8d8;
  --line: rgba(166, 195, 255, 0.18);
  --accent-line: rgba(94, 234, 212, 0.3);
  --accent: #5eead4;
  --accent-strong: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.32);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --phone-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(46, 111, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(94, 234, 212, 0.14), transparent 26%),
    linear-gradient(145deg, #040611 0%, #0a1023 52%, #050816 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(2px 2px at 68% 34%, rgba(152, 217, 255, 0.45), transparent 60%),
    radial-gradient(2px 2px at 28% 80%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(2px 2px at 84% 70%, rgba(94, 234, 212, 0.42), transparent 60%),
    radial-gradient(2px 2px at 52% 14%, rgba(255, 255, 255, 0.6), transparent 60%);
  background-size: 280px 280px;
  opacity: 0.72;
}

body::after {
  background:
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.02) calc(100% - 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.02) calc(100% - 1px));
  background-size: 100% 44px, 44px 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  padding: 24px;
}

.page-shell-simple {
  max-width: 1120px;
  margin: 0 auto;
}

.site-header,
.site-footer,
.hero-grid,
.content-page {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(237, 244, 255, 0.92);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.brand-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.language-switch {
  display: inline-flex;
  gap: 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 10, 24, 0.52);
  backdrop-filter: blur(12px);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 11px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.lang-button.is-active {
  color: #071121;
  background: linear-gradient(135deg, var(--accent) 0%, #8bf1ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 84px);
}

.card-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 28, 56, 0.88) 0%, rgba(9, 15, 33, 0.9) 100%);
  border: 1px solid var(--accent-line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.card-panel::before {
  content: "";
  position: absolute;
  inset: auto -15% -55% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.15), transparent 72%);
}

.hero-copy {
  justify-self: start;
  width: min(100%, 470px);
  padding: clamp(24px, 3.4vw, 38px);
}

.hero-title,
.section-title {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.92;
}

.hero-title {
  font-size: clamp(2.35rem, 4.6vw, 4.3rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237, 244, 255, 0.96);
}

.section-title {
  font-size: clamp(2.05rem, 4.1vw, 3.45rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237, 244, 255, 0.96);
}

body[data-page="policy"] .section-title {
  max-width: 100%;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hero-description,
.section-description,
.policy-copy p,
.form-note,
.contact-form span {
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.hero-description,
.section-description {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.75;
}

.cta-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.cta-button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.brand-mark:hover,
.brand-mark:focus-visible,
.lang-button:hover,
.lang-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.cta-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #161616 0%, #020202 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.cta-secondary {
  color: #ffffff;
  background: linear-gradient(180deg, #161616 0%, #020202 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.cta-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.cta-store-badge {
  flex: 1 1 0;
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cta-browser-badge {
  justify-content: flex-start;
  padding: 10px 18px;
  border-radius: 3px;
  letter-spacing: 0;
}

.cta-browser-badge .cta-icon {
  width: 22px;
  height: 22px;
}

.store-badge-image {
  display: block;
  width: 100%;
  height: auto;
}

.device-showcase {
  display: grid;
  place-items: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 16 / 9;
  padding: 22px 24px 24px;
  border-radius: 46px;
  background:
    linear-gradient(145deg, #151b2b 0%, #39435a 16%, #0d121f 48%, #05070d 100%);
  border: 1px solid var(--accent-line);
  box-shadow: var(--phone-shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 38px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  pointer-events: none;
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 16%, transparent 82%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.phone-top-bar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(3, 6, 13, 0.9);
  z-index: 2;
}

.phone-speaker {
  width: 62px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(44, 51, 69, 0.95), rgba(7, 10, 16, 0.95));
}

.phone-camera {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #6cdcff, #071422 70%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #04050b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.phone-screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screenshots {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  width: min(88%, 560px);
  transform: translateX(-50%);
}

.phone-shot {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid rgba(94, 234, 212, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  background: rgba(6, 8, 15, 0.72);
}

.phone-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 34%, transparent 54%);
  pointer-events: none;
}

.phone-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 120px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  z-index: 2;
}

.site-footer {
  padding-bottom: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 18px;
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.footer-links a {
  text-decoration: none;
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.github-link svg {
  width: 19px;
  height: 19px;
}

.content-page {
  padding: clamp(24px, 4.5vw, 46px);
}

.form-card,
.policy-card {
  max-width: 840px;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form span {
  color: rgba(237, 244, 255, 0.95);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(3, 6, 15, 0.45);
  color: var(--text);
  font: inherit;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7e90b9;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.policy-copy {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.policy-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 920px) {
  .page-shell {
    gap: 24px;
    padding: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .device-showcase {
    order: -1;
  }

  .phone-frame {
    max-width: 100%;
  }

  .phone-screenshots {
    width: 90%;
    bottom: 10%;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-title,
  .section-title {
    font-size: clamp(2.3rem, 12vw, 3.3rem);
  }

  .hero-copy,
  .content-page {
    padding: 22px;
    border-radius: 24px;
  }

  .brand-mark {
    letter-spacing: 0.2em;
    font-size: 0.9rem;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .cta-row {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .cta-button {
    width: auto;
    min-width: 0;
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  .cta-store-badge {
    min-height: auto;
    padding: 0;
  }

  .cta-browser-badge {
    min-height: 64px;
    padding: 9px 14px;
  }

  .phone-frame {
    border-radius: 28px;
    padding: 13px 14px 16px;
  }

  .phone-frame::before {
    inset: 7px;
    border-radius: 22px;
  }

  .phone-top-bar {
    top: 9px;
    gap: 8px;
    padding: 6px 12px;
  }

  .phone-speaker {
    width: 44px;
  }

  .phone-home-indicator {
    width: 88px;
    bottom: 6px;
  }

  .phone-screen {
    border-radius: 18px;
  }

  .phone-screenshots {
    width: 92%;
    gap: 8px;
    bottom: 11%;
  }

  .phone-shot {
    border-radius: 10px;
    border-width: 1px;
  }

  .footer-links {
    gap: 14px;
  }
}