:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --ink: #08101d;
  --ink-soft: #4f6178;
  --line: #d6deea;
  --accent: #0a84ff;
  --accent-2: #00a8c9;
  --radius: 24px;
  --shadow-lg: 0 36px 70px rgba(10, 24, 47, 0.2);
  --shadow-md: 0 22px 44px rgba(10, 24, 47, 0.14);
}

[data-theme="dark"] {
  --bg: #0a1018;
  --surface: #121b26;
  --surface-2: #0f1823;
  --ink: #eaf0f8;
  --ink-soft: #a5b4c8;
  --line: #263447;
  --accent: #4faeff;
  --accent-2: #4ad4ea;
  --shadow-lg: 0 36px 70px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 22px 44px rgba(0, 0, 0, 0.34);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Manrope", "Plus Jakarta Sans", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at 12% 16%, #ffffff 0%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 88% 12%, rgba(185, 220, 255, 0.56) 0%, rgba(185, 220, 255, 0) 46%),
    linear-gradient(170deg, #f6f9fd 0%, #edf3fa 62%, #e5edf7 100%);
  color: var(--ink);
  transition: background 260ms ease, color 260ms ease;
}

main,
.topbar,
.footer {
  width: min(1200px, calc(100vw - 3rem));
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-1 {
  width: 360px;
  height: 360px;
  top: -80px;
  right: -120px;
  background: linear-gradient(150deg, rgba(10, 132, 255, 0.24), rgba(0, 168, 201, 0.16));
}

.orb-2 {
  width: 320px;
  height: 320px;
  bottom: 8%;
  left: -100px;
  background: linear-gradient(160deg, rgba(0, 89, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 1.1rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-cta {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid rgba(8, 16, 29, 0.12);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid rgba(8, 16, 29, 0.12);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  font: inherit;
  cursor: pointer;
}

.switch-label {
  font-size: 0.86rem;
  line-height: 1;
}

.switch-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c8d5e6;
  border: 1px solid rgba(8, 16, 29, 0.14);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background-color 200ms ease;
}

.switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(8, 16, 29, 0.28);
  transform: translateX(0);
  transition: transform 200ms ease;
}

.theme-toggle[aria-checked="true"] .switch-track {
  background: linear-gradient(130deg, #0a84ff, #0083b7);
}

.theme-toggle[aria-checked="true"] .switch-thumb {
  transform: translateX(18px);
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  padding: 2rem 0 4rem;
}

.eyebrow,
.section-title {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

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

h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  margin-top: 0.7rem;
  letter-spacing: -0.03em;
}

.lede {
  margin-top: 1.2rem;
  max-width: 38ch;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1.06rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(130deg, #0a84ff, #0083b7);
  color: #fff;
  box-shadow: 0 14px 30px rgba(10, 132, 255, 0.26);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(8, 16, 29, 0.11);
}

.hero-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stats article {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(8, 16, 29, 0.09);
  border-radius: 18px;
  padding: 1rem;
}

.hero-stats h3 {
  font-size: 1.2rem;
}

.hero-stats p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: min(390px, 90vw);
  aspect-ratio: 0.43;
  background: linear-gradient(180deg, #f8fbff, #d8e4f2);
  border-radius: 42px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(8, 16, 29, 0.15);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.phone-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 34%;
  height: 18px;
  border-radius: 999px;
  background: rgba(8, 16, 29, 0.8);
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  position: absolute;
  top: 48px;
  left: 28px;
  box-shadow: 0 12px 24px rgba(8, 16, 29, 0.15);
}

.map-image {
  width: 88%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  position: absolute;
  left: 6%;
  top: 128px;
  border: 1px solid rgba(8, 16, 29, 0.12);
  box-shadow: var(--shadow-md);
  background: #0c0f14;
}

.phone-overlay {
  width: 36%;
  position: absolute;
  top: 30%;
  left: 7%;
  border-radius: 18px;
  border: 1px solid rgba(8, 16, 29, 0.15);
  box-shadow: 0 14px 30px rgba(8, 16, 29, 0.14);
}

.floating-chip {
  position: absolute;
  right: -8%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 16, 29, 0.08);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(8, 16, 29, 0.11);
}

.chip-a {
  top: 24%;
  animation: bob 3.8s ease-in-out infinite;
}

.chip-b {
  top: 37%;
  right: -5%;
  animation: bob 4.2s ease-in-out infinite reverse;
}

.section {
  margin-top: 7rem;
}

.story {
  max-width: 760px;
}

.story h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
}

.story p:last-child {
  margin-top: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.screens-head h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
}

.screens-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.screen-card {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(242, 248, 255, 0.7));
  box-shadow: 0 18px 30px rgba(8, 16, 29, 0.08);
}

.screen-card img {
  width: 100%;
  display: block;
}

.screen-card figcaption {
  padding: 0.8rem 0.9rem 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.screen-card figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  grid-column: span 4;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: 0 12px 28px rgba(8, 16, 29, 0.08);
}

.card-large {
  grid-column: span 6;
}

.tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h3 {
  margin-top: 0.6rem;
  font-size: 1.35rem;
}

.card p:last-child {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split-copy h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.7rem, 2.9vw, 2.8rem);
  letter-spacing: -0.02em;
}

.split-copy p:last-child {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 1rem;
}

.split-visual img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.cta {
  text-align: center;
  background: linear-gradient(130deg, rgba(10, 132, 255, 0.12), rgba(0, 168, 201, 0.08));
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 4rem);
  margin-bottom: 5rem;
}

.cta h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
}

.cta p {
  margin: 1rem auto 0;
  max-width: 52ch;
  line-height: 1.7;
  color: var(--ink-soft);
}

.cta-form {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem;
}

.cta-form input {
  border: 0;
  outline: none;
  background: transparent;
  min-width: min(300px, 48vw);
  padding: 0.6rem 0.9rem;
  font: inherit;
}

.cta-form button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(130deg, #0a84ff, #0083b7);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 1.8rem;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 16%, rgba(36, 55, 79, 0.35) 0%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 88% 12%, rgba(79, 174, 255, 0.2) 0%, rgba(185, 220, 255, 0) 46%),
    linear-gradient(170deg, #070c12 0%, #0a111a 62%, #0d1621 100%);
}

[data-theme="dark"] .nav-cta,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .hero-stats article,
[data-theme="dark"] .floating-chip,
[data-theme="dark"] .card,
[data-theme="dark"] .screen-card,
[data-theme="dark"] .cta-form {
  background: rgba(18, 27, 38, 0.86);
  border-color: rgba(150, 175, 204, 0.2);
}

[data-theme="dark"] .phone-shell {
  background: linear-gradient(180deg, #152130, #101a27);
  border-color: rgba(150, 175, 204, 0.22);
}

[data-theme="dark"] .cta {
  background: linear-gradient(130deg, rgba(79, 174, 255, 0.16), rgba(74, 212, 234, 0.12));
  border-color: rgba(79, 174, 255, 0.28);
}

[data-theme="dark"] .cta-form input {
  color: var(--ink);
}

[data-theme="dark"] .cta-form input::placeholder {
  color: #8da2bb;
}

[data-theme="dark"] .switch-track {
  background: #243246;
  border-color: rgba(150, 175, 204, 0.28);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

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

  .screens-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card,
  .card-large {
    grid-column: auto;
  }

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

  .split-visual {
    order: -1;
  }

  .section {
    margin-top: 5rem;
  }
}

@media (max-width: 680px) {
  main,
  .topbar,
  .footer {
    width: min(1200px, calc(100vw - 1.45rem));
  }

  .topbar {
    padding-top: 0.85rem;
  }

  .nav-cta {
    display: none;
  }

  .switch-label {
    display: none;
  }

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

  .phone-shell {
    width: min(340px, 96vw);
    border-radius: 32px;
  }

  .map-image {
    width: 86%;
    left: 7%;
    top: 116px;
    border-radius: 20px;
  }

  .floating-chip {
    right: 4%;
  }

  .phone-overlay {
    width: 44%;
    top: 34%;
  }

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

  .cta-form {
    width: 100%;
    display: flex;
    padding: 0.45rem;
  }

  .cta-form input {
    min-width: 0;
    width: 100%;
  }

  .footer {
    gap: 0.6rem;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .screens-grid {
    grid-template-columns: 1fr;
  }
}
