:root {
  --bg-page: #f4f8ff;
  --bg-gradient-a: #d9ebff;
  --bg-gradient-b: #f3f6ff;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --surface-accent: #e5efff;
  --text-900: #102244;
  --text-700: #34517a;
  --text-500: #56739d;
  --blue-700: #1e5eff;
  --blue-600: #2c77ff;
  --blue-500: #3f9dff;
  --teal-500: #18c6b8;
  --coral-500: #ff6d6d;
  --amber-500: #ffb020;
  --line: #d6e3ff;
  --line-strong: #bdd2ff;
  --shadow-md: 0 18px 36px rgba(19, 51, 97, 0.12);
  --shadow-sm: 0 10px 24px rgba(19, 51, 97, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text-900);
  background:
    radial-gradient(90vmax 60vmax at -10% -15%, rgba(63, 157, 255, 0.24), transparent 50%),
    radial-gradient(80vmax 60vmax at 120% -10%, rgba(24, 198, 184, 0.2), transparent 42%),
    linear-gradient(165deg, var(--bg-gradient-a), var(--bg-gradient-b));
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(34vmax 26vmax at 10% 95%, rgba(255, 176, 32, 0.16), transparent 60%),
    radial-gradient(40vmax 20vmax at 86% 100%, rgba(255, 109, 109, 0.12), transparent 62%);
}

a {
  color: var(--blue-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.top-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 252, 255, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(171, 197, 244, 0.65);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-900);
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(33, 95, 255, 0.24);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nav a {
  color: var(--text-700);
  padding: 9px 11px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  color: var(--blue-700);
  background: rgba(63, 157, 255, 0.13);
  text-decoration: none;
}

.lang-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: var(--shadow-sm);
}

.lang-control label {
  font-size: 12px;
  color: var(--text-500);
  font-weight: 700;
}

.lang-picker {
  border: 0;
  background: transparent;
  color: var(--text-900);
  font-size: 13px;
  font-weight: 700;
  min-width: 170px;
  cursor: pointer;
}

.lang-picker:focus {
  outline: none;
}

.hero {
  display: grid;
  gap: 26px;
  align-items: center;
}

.home-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  padding: 44px 0 24px;
}

.hero-copy {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(24, 198, 184, 0.33);
  background: rgba(24, 198, 184, 0.11);
  color: #077b72;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(24, 198, 184, 0.33);
  background: rgba(24, 198, 184, 0.11);
  color: #077b72;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.hero h1 {
  margin: 14px 0 12px;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-900);
}

.hero-subtitle,
.hero p,
.lead {
  margin: 0;
  color: var(--text-700);
  font-size: clamp(16px, 1.8vw, 21px);
  max-width: 60ch;
}

.proof-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #224265;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.17s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(120deg, #2c77ff, #3f9dff);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(45, 124, 255, 0.32);
}

.btn-secondary {
  background: linear-gradient(120deg, rgba(24, 198, 184, 0.92), rgba(15, 170, 156, 0.92));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(19, 161, 149, 0.28);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-900);
  border-color: var(--line-strong);
}

.btn-disabled {
  background: #e6edf9;
  color: #6f88ad;
  border-color: #cfdef5;
  cursor: not-allowed;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #1e5eff 0%, #2c77ff 40%, #18c6b8 100%);
  padding: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 470px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -140px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.43), rgba(255, 255, 255, 0));
}

.shot-stack {
  position: relative;
  z-index: 2;
  height: 320px;
}

.shot {
  border-radius: 20px;
  box-shadow: 0 20px 34px rgba(2, 29, 76, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.shot-main {
  position: absolute;
  width: min(72%, 320px);
  left: 20px;
  top: 16px;
}

.shot-side {
  position: absolute;
  width: min(56%, 245px);
  right: 8px;
  top: 86px;
}

.lexy-note {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  border-radius: 16px;
  border: 0;
  background: transparent;
  padding: 0;
}

.lexy-note img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 44, 117, 0.34));
}

.lexy-note p {
  margin: 0;
  max-width: 220px;
  color: #f6fbff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.35;
  text-shadow: 0 3px 12px rgba(7, 30, 84, 0.28);
}

.section {
  padding: 16px 0 34px;
}

.section-head h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head .lead {
  margin-top: 9px;
  font-size: 17px;
}

.feature-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.feature-kicker {
  margin: 0 0 7px;
  font-size: 11px;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.feature-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--text-700);
  font-size: 15px;
}

.language-panel {
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, #ffffff, #e9f1ff);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.section-head.compact h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.lang-chip-host {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.lang-chip {
  appearance: none;
  border-radius: 14px;
  border: 1px solid #cfddf6;
  background: #f8fbff;
  color: #35537e;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lang-chip:hover {
  transform: translateY(-1px);
  border-color: #b8cdf8;
  box-shadow: 0 10px 20px rgba(18, 57, 120, 0.1);
}

.lang-chip-flag {
  font-size: 21px;
  line-height: 1;
}

.lang-chip-label {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;
}

.lang-chip.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, #1e5eff, #3f9dff);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(35, 92, 233, 0.3);
}

.panel-note {
  margin: 12px 0 0;
  color: var(--text-500);
  font-size: 14px;
}

.invite-main {
  padding: 38px 0 10px;
}

.invite-hero {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, #ffffff, #eaf2ff);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.invite-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.invite-ref {
  margin-top: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #1959bb;
  background: #e5efff;
  border: 1px solid #b8cefb;
}

.platform-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.platform-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.platform-card h2 {
  margin: 0;
  font-size: 24px;
}

.platform-card p {
  margin: 8px 0 14px;
  color: var(--text-700);
}

.platform-card.ios {
  border-color: #bdd4ff;
  background: linear-gradient(160deg, #ffffff, #eef4ff);
}

.platform-card.android {
  border-color: #d3dbeb;
  background: linear-gradient(160deg, #ffffff, #f5f7fc);
}

.coming-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-500);
}

.invite-help {
  margin-top: 14px;
  margin-bottom: 20px;
}

.invite-help a {
  font-weight: 700;
}

.footer {
  padding: 22px 0 34px;
  color: var(--text-500);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #ccddfb;
  padding-top: 14px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--text-700);
  font-weight: 700;
  font-size: 13px;
}

.legal-page .hero {
  padding: 22px 0 10px;
  grid-template-columns: 1fr;
}

.legal-wrap {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2vw, 30px);
}

.legal-wrap h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: clamp(20px, 2.2vw, 28px);
}

.legal-wrap h2:first-of-type {
  margin-top: 0;
}

.legal-wrap p,
.legal-wrap li,
.muted {
  color: var(--text-700);
}

.legal-wrap ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-in 0.62s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.1s;
}

.reveal.delay-2 {
  animation-delay: 0.2s;
}

.reveal.delay-3 {
  animation-delay: 0.3s;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nav {
    justify-content: flex-start;
  }

  .lang-control {
    width: 100%;
    justify-content: space-between;
    border-radius: var(--radius-sm);
  }

  .lang-picker {
    min-width: 0;
    width: 64%;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 24px);
  }

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

  .lang-chip-host {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-chip {
    min-height: 48px;
  }

  .shot-main {
    width: min(78%, 300px);
    left: 8px;
    top: 8px;
  }

  .shot-side {
    width: min(60%, 220px);
    right: 8px;
    top: 92px;
  }

  .hero-visual {
    min-height: 392px;
  }

  .lexy-note img {
    width: 140px;
    height: 140px;
  }

  .lexy-note p {
    max-width: 165px;
    font-size: 14px;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .proof-pill {
    width: 100%;
    justify-content: center;
  }
}
