:root {
  --color-bg: #0c1014;
  --color-surface: #141a21;
  --color-surface-elevated: #1b232c;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e9eef2;
  --color-muted: #9aa8b4;
  --color-accent: #3db8a6;
  --color-accent-hover: #52c9b8;
  --color-accent-muted: rgba(61, 184, 166, 0.15);
  --color-warm: #d4915d;
  /* Matches mobile app Typography.kt (Roboto Mono regular / semibold / bold). */
  --font: "Roboto Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
  --maxw: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

  .hero-phone--small {
    transform: none;
  }

  .hero-phone--large {
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

.shell {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #04221e;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 16, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand:hover {
  text-decoration: none;
  color: #fff;
}

.brand__mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 22%;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  position: absolute;
  left: 11px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle__bar {
  top: 21px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  left: 0;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.site-header.is-open .nav-toggle__bar {
  background: transparent;
}

.site-header.is-open .nav-toggle__bar::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent) !important;
}

.site-nav__cta:hover {
  background: var(--color-accent-muted);
  color: var(--color-accent-hover) !important;
}

.site-nav__langs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switcher__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.lang-btn {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.is-active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-muted);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(12, 16, 20, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .site-header.is-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .site-nav__list > li > a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav__langs {
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--color-border);
  }

  .lang-switcher__list {
    justify-content: flex-start;
  }

  .site-nav__cta {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  padding-block: 4rem 4.5rem;
  background-color: #0a1620;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    rgba(8, 14, 18, 0.92) 0%,
    rgba(8, 14, 18, 0.78) 42%,
    rgba(8, 14, 18, 0.55) 100%
  );
}

.hero__grid {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 3rem 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    justify-self: center;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-warm);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.125rem;
  color: rgba(233, 238, 242, 0.88);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

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

.button--primary {
  background: var(--color-accent);
  color: #04221e;
  border-color: var(--color-accent);
}

.button--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.button--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.35);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.button--block {
  width: 100%;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

/*
 * Bottom-aligned pair: Samsung (small, +20% size) left / on top; Pixel (large) right / behind.
 * Pixel is pulled left by ½ its width so the front phone covers half of the big one.
 */
.hero-phones {
  --big-w: min(292px, 80vw);
  /* Small handset: ×1.44 vs base, then −10% → ×1.296 of original 228px / 58vw. */
  --small-w: min(calc(228px * 1.296), calc(58vw * 1.296));
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: min(580px, 100%);
  min-height: min(500px, 85vw);
  margin-inline: auto;
}

.hero-phone {
  margin: 0;
  flex: 0 0 auto;
}

.hero-phone--small {
  position: relative;
  z-index: 2;
  width: var(--small-w);
  transform: translateX(-7%);
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.52));
}

.hero-phone--large {
  position: relative;
  z-index: 1;
  width: var(--big-w);
  margin-left: calc(var(--big-w) * -0.5);
  transform: translateX(7%);
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.48));
}

@media (max-width: 900px) {
  .hero-phones {
    --big-w: min(268px, 76vw);
    --small-w: min(calc(200px * 1.296), calc(52vw * 1.296));
    min-height: min(460px, 92vw);
  }

  .hero-phone--small {
    transform: translateX(-6%);
  }

  .hero-phone--large {
    margin-left: calc(var(--big-w) * -0.5);
    transform: translateX(6%);
  }
}

/* Screenshot sits behind; frame PNG stacks on top (z-index) with a transparent display cutout. */
.hero-phone__device {
  position: relative;
  width: 100%;
  line-height: 0;
}

/*
 * Match screenshot aspect (460×1024). Tweak per frame template with --screen-height / --screen-maxw.
 */
.hero-phone__screen {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: var(--hero-phone-screen-h, 84%);
  width: auto;
  aspect-ratio: 460 / 1024;
  max-width: var(--hero-phone-screen-w, 88%);
  border-radius: clamp(10px, 3.2%, 22px);
  overflow: hidden;
  background: #070b0e;
}

.hero-phone__device--samsung .hero-phone__screen {
  --hero-phone-screen-h: 90%;
  --hero-phone-screen-w: 100%;
}

.hero-phone__device--pixel .hero-phone__screen {
  --hero-phone-screen-h: 87%;
  --hero-phone-screen-w: 105%;
  aspect-ratio: 500 / 1024;
}

.hero-phone__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-phone__frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* Features */
.section {
  padding-block: 4.5rem;
}

.section--features {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section__intro {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.35rem;
}

.feature-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 700px) {
  .feature-card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1000px) {
  .feature-card--wide {
    grid-column: span 3;
  }
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* CTA / waitlist */
.section--cta {
  position: relative;
  padding-block: 5rem;
  background-color: #121a22;
  background-image: var(--cta-image);
  background-size: cover;
  background-position: center;
}

.section--cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 14, 18, 0.94) 20%, rgba(10, 14, 18, 0.82) 100%);
}

.section--cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 2.5rem 3.5rem;
  align-items: start;
}

@media (max-width: 840px) {
  .section--cta__inner {
    grid-template-columns: 1fr;
  }
}

.cta-copy p {
  color: rgba(233, 238, 242, 0.9);
}

.cta-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  color: rgba(233, 238, 242, 0.88);
}

.cta-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
}

.cta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.cta-form-wrap {
  background: rgba(20, 26, 33, 0.88);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.85rem;
  backdrop-filter: blur(10px);
}

.waitlist-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
}

.req {
  color: var(--color-warm);
}

.field__input {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text);
}

.field__input::placeholder {
  color: rgba(154, 168, 180, 0.65);
}

.field__input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.form-status--ok {
  color: var(--color-accent);
}

.form-status--err {
  color: #f0a8a8;
}

/* Footer */
.site-footer {
  background: #2a343c;
  color: rgba(255, 255, 255, 0.82);
  padding-block: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.legal-links {
  display: flex;
  gap: 1.25rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.social {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.social img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
