:root {
  --bg: #eaf3fc;
  --bg-soft: #f7fbff;
  --ink: #0f1b2d;
  --muted: #5a6b82;
  --line: rgba(15, 27, 45, 0.08);
  --blue: #007aff;
  --blue-deep: #0063d1;
  --blue-soft: #d6e9ff;
  --surface: rgba(255, 255, 255, 0.72);
  --radius: 22px;
  --shadow: 0 24px 60px rgba(20, 60, 120, 0.12);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg-soft);
  overflow-x: hidden;
}

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(0, 122, 255, 0.18), transparent 60%),
    radial-gradient(700px 480px at 90% 8%, rgba(120, 180, 255, 0.22), transparent 55%),
    radial-gradient(640px 420px at 50% 100%, rgba(180, 210, 255, 0.25), transparent 60%),
    linear-gradient(180deg, #e8f2fc 0%, #f7fbff 48%, #eef5fc 100%);
  animation: sky-drift 18s ease-in-out infinite alternate;
}

@keyframes sky-drift {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(8deg) saturate(1.05); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}

.topbar.is-scrolled {
  padding: 12px 0;
  background: rgba(247, 251, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 1px 0 rgba(15, 27, 45, 0.04);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.is-scrolled {
    background: rgba(247, 251, 255, 0.92);
  }
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 auto;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  background: var(--blue);
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-cta:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.top-cta:active {
  transform: translateY(0);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.lang-switch {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  width: 4.6rem;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(15, 27, 45, 0.1);
  border-radius: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b82' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E")
      right 10px center / 10px no-repeat,
    rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.lang-switch:focus {
  outline: 2px solid rgba(0, 122, 255, 0.35);
  outline-offset: 2px;
}

.topbar.is-scrolled .lang-switch {
  background-color: rgba(255, 255, 255, 0.72);
}

.hero {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 8px;
  padding: 24px 24px 32px;
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  min-height: 0;
  margin-left: 0;
  padding: 24px 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 12px 0;
  min-height: 560px;
  pointer-events: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-visual::before {
  display: none;
}

.hero-visual::after {
  display: none;
}

.hero-device {
  position: relative;
  z-index: 1;
  width: min(340px, 72%);
  height: auto;
  max-height: min(720px, 78vh);
  object-fit: contain;
  object-position: center;
  margin: 0;
  transform: none;
  /* soft multi-layer lift, follows alpha, no box */
  filter:
    drop-shadow(0 12px 24px rgba(15, 50, 110, 0.12))
    drop-shadow(0 28px 56px rgba(15, 50, 110, 0.1));
}

.float {
  animation: none;
}

.brand-mark {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.lede {
  margin: 0 0 18px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.availability {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pill-live {
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue-deep);
}

.pill-soon {
  background: rgba(15, 27, 45, 0.05);
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1.05rem;
}

.btn .apple {
  width: 18px;
  height: 18px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px;
}

.section-head {
  max-width: 560px;
  margin-bottom: 40px;
}

.section-head h2,
.privacy-panel h2,
.download-panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-head p,
.privacy-panel p,
.download-panel p {
  margin: 0;
  color: var(--muted);
}

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

.feature {
  padding: 8px 4px 18px;
  border-top: 1px solid var(--line);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin: 18px 0 14px;
  color: var(--blue);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

.privacy {
  padding-top: 24px;
  padding-bottom: 24px;
}

.privacy-panel {
  padding: 56px 40px;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(214, 233, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-align: center;
}

.privacy-panel .eyebrow {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.privacy-panel h2 {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.privacy-panel p:last-child {
  max-width: 42ch;
  margin: 14px auto 0;
}

.download {
  padding-top: 64px;
}

.download-panel {
  text-align: center;
  padding: 48px 24px 24px;
}

.download-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 18px;
}

.download-panel h2 {
  margin-bottom: 10px;
}

.download-panel > p {
  margin-bottom: 24px;
}

.fine {
  margin-top: 16px !important;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer a:hover {
  color: var(--ink);
}

/* Legal pages */
.legal-page .topbar {
  position: sticky;
}

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.legal-doc h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.legal-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.legal-date,
.legal-lead {
  margin: 0 0 28px;
  color: var(--muted);
}

.legal-doc section {
  margin-bottom: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.legal-doc section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-doc h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal-doc p,
.legal-doc li {
  color: var(--ink);
  line-height: 1.65;
}

.legal-doc p {
  margin: 0 0 12px;
}

.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 1.15rem;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-doc .legal-lead {
  max-width: 42ch;
}

.contact-card {
  margin: 8px 0 28px;
  padding: 28px 24px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(214, 233, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.contact-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-mail {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
  text-decoration: none !important;
}

.contact-mail:hover {
  color: var(--blue-deep) !important;
}

.contact-meta {
  margin: 0 0 22px !important;
  color: var(--muted) !important;
}

.contact-card .btn,
.legal-doc .btn-primary {
  text-decoration: none !important;
  color: #fff !important;
}

.legal-doc .btn-primary:hover {
  color: #fff !important;
}

.contact-links {
  color: var(--muted) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 12px 18px 28px;
    overflow: visible;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
    margin: 0 auto;
    min-height: auto;
    padding: 16px 0 8px;
  }

  .brand-mark {
    margin-bottom: 12px;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .availability {
    justify-content: center;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-visual {
    min-height: 420px;
    padding: 0;
  }

  .hero-device {
    width: min(280px, 70%);
    max-height: 520px;
  }

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

  .feature p {
    max-width: none;
  }

  .privacy-panel {
    padding: 40px 24px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    gap: 8px;
    padding: 0 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .topbar-actions {
    gap: 6px;
  }

  .lang-switch {
    width: 4.2rem;
    min-height: 36px;
    padding: 0 24px 0 8px;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .top-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
    border-radius: 10px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

@media (max-width: 380px) {
  .brand span {
    display: none;
  }

  .top-cta {
    padding: 0 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 12px 0;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-mark {
    font-size: 2.15rem;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .lede {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .availability {
    margin-bottom: 20px;
    justify-content: center;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .hero-device {
    width: min(240px, 68%);
    max-height: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atmosphere,
  .float,
  .hero-copy,
  .hero-visual {
    animation: none !important;
  }
  .topbar {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
