:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-hero: #eef4ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-strong: #edf4ff;
  --text: #101936;
  --text-soft: #24304f;
  --muted: #66728d;
  --line: #dbe4f3;
  --accent: #2563eb;
  --accent-2: #6268f5;
  --accent-3: #0ea5e9;
  --mint: #14b8a6;
  --button-text: #ffffff;
  --shadow-soft: 0 18px 44px rgba(29, 45, 85, 0.1);
  --shadow-card: 0 16px 34px rgba(29, 45, 85, 0.09);
  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-pill: 999px;
  --max-width: 1208px;
  --header-height: 84px;
  --font-main:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-hero: #0d1930;
  --surface: #101b31;
  --surface-soft: #132039;
  --surface-strong: #172347;
  --text: #f8fbff;
  --text-soft: #d9e4f6;
  --muted: #a8b4cc;
  --line: #263653;
  --accent: #5fd4ff;
  --accent-2: #8b8cff;
  --accent-3: #70e0c5;
  --mint: #70e0c5;
  --button-text: #07111f;
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 16px 34px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text-soft);
  background:
    linear-gradient(180deg, var(--bg-hero) 0, var(--bg) 680px), var(--bg);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

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

.site-header {
  position: relative;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: var(--header-height);
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 900;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-small);
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    var(--text),
    var(--accent-2) 62%,
    var(--accent-3)
  );
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

.brand-mark span {
  width: 19px;
  height: 19px;
  border: 3px solid #ffffff;
  border-right-color: rgba(255, 255, 255, 0.58);
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

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

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 800;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta,
.theme-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 900;
}

.nav-cta {
  padding: 0 20px;
  color: var(--button-text);
  background: linear-gradient(94deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.theme-toggle {
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

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

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 72px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow span {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: var(--radius-pill);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(3.2rem, 5.8vw, 5.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  text-wrap: balance;
}

.hero-text {
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border-radius: var(--radius-small);
  font-weight: 900;
  border: 1px solid transparent;
}

.store-button {
  min-width: 230px;
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
  cursor: not-allowed;
}

.store-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.store-button-muted {
  color: var(--muted);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-size: 0.83rem;
  font-weight: 800;
}

.trust-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(42vw, 560px);
  height: 588px;
  min-width: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--surface) 92%, transparent),
      color-mix(in srgb, var(--surface-strong) 80%, transparent)
    ),
    linear-gradient(
        90deg,
        transparent 31px,
        color-mix(in srgb, var(--line) 62%, transparent) 32px
      )
      0 0 / 32px 32px,
    linear-gradient(
        transparent 31px,
        color-mix(in srgb, var(--line) 62%, transparent) 32px
      )
      0 0 / 32px 32px;
  box-shadow: var(--shadow-soft);
}

.phone {
  position: relative;
  z-index: 4;
  width: 330px;
  height: 660px;
  padding: 14px;
  border-radius: 46px;
  background: linear-gradient(145deg, #07111f, #172347);
  box-shadow: 0 24px 54px rgba(7, 17, 31, 0.28);
  transform: rotate(-1.5deg) translateX(10px);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 39px;
  pointer-events: none;
}

.phone-speaker {
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 5;
  width: 96px;
  height: 20px;
  background: #0c1327;
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
}

.phone-screen {
  height: 100%;
  padding: 52px 20px 22px;
  border-radius: 33px;
  background: linear-gradient(180deg, #fbfcff 0%, #eef4ff 100%);
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: calc(100% - 70px);
  object-fit: cover;
  border-radius: var(--radius-small);
}

.screen-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.screen-topbar span,
.preview-card span,
.shot-card span {
  display: block;
  color: #66728d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.screen-topbar strong {
  display: block;
  margin-top: 2px;
  color: #101936;
  font-size: 1.08rem;
  line-height: 1.18;
}

.screen-topbar em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.preview-card {
  position: absolute;
  z-index: 6;
  width: 188px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.preview-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.25;
}

.preview-card-one {
  left: -2%;
  top: 22%;
}

.preview-card-two {
  right: -3%;
  top: 34%;
}

.preview-card-three {
  left: 1%;
  bottom: 15%;
}

.preview-card-four {
  right: 1%;
  bottom: 9%;
}

.section,
.page-main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 66px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.data-panel h2,
.privacy-panel h2,
.page-hero h1 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.card-grid,
.content-grid,
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card,
.content-card,
.shot-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.card-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
}

.map-icon::before {
  inset: 13px;
  border: 3px solid var(--accent);
  border-right-color: var(--accent-3);
  border-radius: 50%;
}

.station-icon::before {
  left: 17px;
  top: 11px;
  width: 18px;
  height: 29px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}

.favourite-icon::before {
  left: 15px;
  top: 14px;
  width: 22px;
  height: 22px;
  background: var(--accent-2);
  clip-path: polygon(
    50% 0,
    62% 34%,
    98% 35%,
    69% 55%,
    80% 90%,
    50% 68%,
    20% 90%,
    31% 55%,
    2% 35%,
    38% 34%
  );
}

.history-icon::before {
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 22px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}

.history-icon::after {
  left: 17px;
  bottom: 18px;
  width: 24px;
  height: 14px;
  border-top: 3px solid var(--accent-3);
  border-right: 3px solid var(--accent-2);
  transform: skewY(-20deg);
}

.location-icon::before {
  left: 15px;
  top: 10px;
  width: 22px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  transform: rotate(-45deg);
}

.route-icon::before {
  left: 12px;
  top: 24px;
  width: 28px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.route-icon::after {
  right: 10px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--accent-3);
}

.feature-card h3,
.content-card h2,
.shot-card h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.24rem;
  line-height: 1.2;
}

.feature-card p,
.content-card p,
.data-panel p,
.privacy-panel p,
.legal-content p,
.page-hero p,
.shot-card p {
  color: var(--muted);
}

.feature-card p,
.content-card p,
.shot-card p {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  align-items: start;
  gap: 42px;
}

.step-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.step-list span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius-small);
  background: var(--text);
  color: var(--bg);
  font-size: 0.83rem;
  font-weight: 900;
}

.step-list strong {
  color: var(--text);
  font-size: 1.1rem;
}

.screenshot-showcase {
  padding-top: 40px;
}

.shot-card {
  min-height: auto;
  padding: 18px;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 10 / 16;
  object-fit: cover;
  border-radius: var(--radius-small);
  background: var(--surface-soft);
}

.shot-card div {
  padding: 18px 4px 2px;
}

.data-panel,
.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 36px;
  margin-top: 34px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.data-panel img {
  width: 100%;
  border-radius: var(--radius-small);
}

.notice {
  margin-bottom: 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  color: var(--text) !important;
  font-weight: 800;
}

.privacy-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 38px;
}

.page-main {
  padding: 64px 0 76px;
}

.page-hero {
  max-width: 840px;
  margin-bottom: 38px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.72;
}

.page-hero a,
.content-card a,
.legal-content a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 34%, transparent);
  text-underline-offset: 4px;
}

.content-grid {
  grid-template-columns: repeat(2, 1fr);
}

.content-card {
  min-height: auto;
}

.warning-card {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: var(--surface-strong);
}

.legal-page {
  max-width: 940px;
}

.legal-content {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.legal-content h2 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 1.24rem;
  line-height: 1.25;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 900;
  color: var(--text);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 2px;
}

.footer-notice {
  grid-column: 1 / -1;
  max-width: 940px;
  color: var(--text-soft);
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-3) 72%, transparent);
  outline-offset: 4px;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.9fr);
    gap: 30px;
  }

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

  .phone {
    width: 292px;
    height: 584px;
    transform: rotate(-1.5deg) translateX(4px);
  }

  .preview-card {
    width: 168px;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .nav {
    min-height: 76px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

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

  .nav-links {
    width: 100%;
    display: grid;
    justify-items: start;
    gap: 16px;
  }

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

  .hero {
    padding: 52px 0 66px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    max-width: 720px;
  }

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

  .hero-visual::before {
    width: min(78vw, 500px);
    height: 560px;
    min-width: 320px;
  }

  .phone {
    width: 306px;
    height: 612px;
    transform: rotate(-1deg);
  }

  .card-grid,
  .content-grid,
  .screenshot-grid,
  .split-section,
  .data-panel,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .data-panel,
  .privacy-panel {
    padding: 30px;
  }

  .data-panel img {
    max-width: 360px;
  }

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

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

@media (max-width: 560px) {
  :root {
    --header-height: 76px;
  }

  .nav,
  .hero,
  .section,
  .page-main,
  .footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

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

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero {
    padding-top: 40px;
  }

  .hero-text {
    font-size: 1rem;
  }

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

  .button,
  .store-button {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 18px;
  }

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

  .phone {
    width: 232px;
    height: 474px;
    padding: 13px;
    border-radius: 36px;
  }

  .phone-screen {
    padding: 38px 13px 14px;
    border-radius: 26px;
  }

  .screen-topbar strong {
    font-size: 0.9rem;
  }

  .screen-topbar span,
  .preview-card span,
  .shot-card span {
    font-size: 0.62rem;
  }

  .phone-screen img {
    height: calc(100% - 56px);
  }

  .preview-card {
    width: 132px;
    padding: 12px;
  }

  .preview-card strong {
    font-size: 0.76rem;
  }

  .preview-card-one {
    left: 0;
    top: 18%;
  }

  .preview-card-two {
    right: 0;
    top: 30%;
  }

  .preview-card-three {
    left: 0;
    bottom: 12%;
  }

  .preview-card-four {
    right: 0;
    bottom: 7%;
  }

  .section {
    padding: 46px 0;
  }

  .feature-card,
  .content-card,
  .legal-content,
  .data-panel,
  .privacy-panel,
  .page-hero {
    padding: 24px;
  }

  .step-list li {
    grid-template-columns: 48px 1fr;
    min-height: 74px;
    padding: 14px;
  }

  .footer {
    padding-bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
