:root {
  --bg: #071324;
  --surface: rgba(11, 23, 38, 0.5);
  --surface-soft: rgba(8, 21, 35, 0.56);
  --surface-strong: #10243d;
  --text: #f6f8fc;
  --muted: #b9c2d3;
  --gold: #f7c95a;
  --gold-strong: #ffb627;
  --green: #16b269;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1400px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 13, 24, 0.26) 0%, rgba(5, 13, 24, 0.4) 36%, rgba(5, 13, 24, 0.58) 100%),
    url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=2200&q=80");
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  z-index: -2;
  will-change: auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.12), transparent 16%),
    radial-gradient(circle at 28% 9%, rgba(255, 255, 255, 0.1), transparent 14%),
    radial-gradient(circle at 52% 8%, rgba(255, 255, 255, 0.08), transparent 13%),
    radial-gradient(circle at 76% 9%, rgba(255, 255, 255, 0.1), transparent 16%),
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.1), transparent 14%),
    linear-gradient(180deg, rgba(5, 13, 24, 0.06), rgba(5, 13, 24, 0.34));
  opacity: 0.26;
  will-change: auto;
}

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

a,
button,
input,
select,
textarea,
summary,
label {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(5, 14, 26, 0.72);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.02rem;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.79rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  color: #d6dceb;
  font-size: 0.92rem;
  font-weight: 600;
  flex-wrap: nowrap;
  min-width: 0;
  justify-self: end;
}

.top-nav a {
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.top-nav a:hover {
  opacity: 1;
}

.top-nav a.active {
  color: var(--text);
  opacity: 1;
}

.lang-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  background-color: rgba(9, 20, 34, 0.88);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23cdd8ea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.72rem center;
  background-size: 12px 8px;
  color: var(--text);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  min-height: 38px;
  width: 160px;
  padding: 0.54rem 2rem 0.54rem 0.72rem;
  outline: none;
  justify-self: end;
}

.lang-select:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 2px rgba(106, 197, 138, 0.25);
}

main,
.page-main {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 3rem;
}

.hero,
.utility-hero {
  padding: 4rem 0 2.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

.hero-copy,
.utility-hero-copy {
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 205, 116, 0.38);
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  color: #ffd994;
  font-size: 0.74rem;
  letter-spacing: 0.42px;
  background: rgba(24, 34, 19, 0.28);
  margin-bottom: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-title,
.utility-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -1.5px;
  margin: 0 0 1rem;
  text-wrap: balance;
  max-width: 11ch;
  color: #fff7ea;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.hero-subtitle,
.utility-subtitle {
  font-size: clamp(1.02rem, 1.66vw, 1.2rem);
  color: #dce5f5;
  max-width: 42ch;
}

.hero-list {
  list-style: none;
  counter-reset: hero-step;
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 52rem;
}

.hero-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  color: #dce5f5;
}

.hero-list li::before {
  counter-increment: hero-step;
  content: counter(hero-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(247, 201, 90, 0.14);
  border: 1px solid rgba(247, 201, 90, 0.24);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
}

.hero-list strong {
  display: block;
  margin-bottom: 0.18rem;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.hero-support {
  margin-top: 2rem;
  padding-top: 1.18rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.2rem;
  max-width: 58rem;
}

.hero-proof-row,
.step-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  flex: 1 1 32rem;
  min-width: min(100%, 32rem);
}

.proof-item,
.step-card {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.proof-value {
  font-size: 1.34rem;
  margin-bottom: 0.24rem;
}

.proof-label {
  font-size: 0.72rem;
  letter-spacing: 0.42px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(247, 201, 90, 0.14);
  border: 1px solid rgba(247, 201, 90, 0.24);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.step-card h3,
.step-card strong {
  display: block;
  margin: 0 0 0.3rem;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.store-group,
.hero-actions {
  margin-top: 1.78rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.72rem;
}

.store-btn,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 49px;
  border-radius: 14px;
  padding: 0.64rem 1.08rem;
  font-weight: 800;
  font-size: 0.91rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.store-btn:hover,
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.28);
}

.store-btn.google,
.button-secondary {
  color: #edf8f2;
  background: linear-gradient(130deg, rgba(14, 119, 69, 0.94), rgba(19, 149, 84, 0.92));
}

.store-btn.apple {
  color: #f2f6ff;
  background: linear-gradient(130deg, rgba(31, 45, 66, 0.94), rgba(17, 28, 42, 0.96));
  border-color: rgba(207, 220, 243, 0.28);
}

.store-btn.web,
.button-primary {
  color: #0b1626;
  background: linear-gradient(130deg, rgba(247, 201, 90, 0.97), rgba(255, 182, 39, 0.95));
  border-color: rgba(255, 220, 128, 0.38);
}

.store-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.apple-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.text-link {
  color: #dce5f5;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.section {
  padding: 2rem 0;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-title {
  margin: 0 0 0.55rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.35px;
  text-wrap: balance;
}

.section-subtitle,
.section-copy,
.surface-panel p,
.surface-card p,
.surface-panel li,
.surface-card li {
  color: #bfcae0;
}

.surface-grid {
  display: grid;
  gap: 1rem;
}

.surface-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.surface-panel,
.surface-card,
.legal-content {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
}

.surface-panel {
  padding: 1.1rem;
}

.surface-card {
  padding: 1.1rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 14, 26, 0.55);
  margin-top: auto;
}

.footer-grid {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.3rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #aeb8c9;
  font-size: 0.92rem;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-weight: 700;
}

.footer-links a {
  color: #d9e2f1;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
}

.legal-shell {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content {
  padding: 2rem;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  font-family: "Sora", sans-serif;
}

@media (max-width: 1040px) {
  .topbar-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    align-items: start;
  }

  .brand {
    grid-area: brand;
  }

  .top-nav {
    grid-area: nav;
    width: 100%;
    gap: 0.9rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .lang-select {
    grid-area: lang;
  }

  .hero-copy,
  .utility-hero-copy {
    max-width: none;
  }

  .hero-proof-row,
  .step-row,
  .surface-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container,
  .footer-grid {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .topbar-inner {
    gap: 0.7rem;
    padding: 0.62rem 0;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-tagline {
    font-size: 0.74rem;
    max-width: 180px;
  }

  .lang-select {
    width: 132px;
    min-width: 0;
  }

  .top-nav {
    font-size: 0.88rem;
    gap: 0.75rem;
  }

  .hero,
  .utility-hero {
    padding-top: 2.35rem;
  }

  .hero-title,
  .utility-title {
    font-size: clamp(2.25rem, 10vw, 3.35rem);
    max-width: 11ch;
  }

  .hero-support {
    margin-top: 1.7rem;
    padding-top: 1rem;
  }

  .hero-proof-row .proof-item:last-child {
    grid-column: 1 / -1;
  }

  .store-group,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .store-btn,
  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .surface-panel,
  .surface-card,
  .legal-content {
    padding: 1rem;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  html,
  body {
    scroll-behavior: auto;
  }

  body {
    background:
      linear-gradient(180deg, rgba(5, 13, 24, 0.3) 0%, rgba(5, 13, 24, 0.46) 34%, rgba(5, 13, 24, 0.64) 100%),
      url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=2200&q=80");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }

  body::before,
  body::after {
    display: none;
  }

  .topbar {
    backdrop-filter: none;
    background: rgba(5, 14, 26, 0.9);
  }

  .proof-item,
  .step-card,
  .surface-panel,
  .surface-card,
  .legal-content {
    backdrop-filter: none;
  }
}
