:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-glow: #38bdf8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px -24px rgb(15 23 42 / 0.18);
  --max: 1120px;
  --legal-max: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 100;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

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

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

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-glow));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px -8px rgb(37 99 235 / 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgb(37 99 235 / 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(37 99 235 / 0.08);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #3b82f6);
  color: white;
  box-shadow: 0 12px 28px -12px rgb(37 99 235 / 0.65);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.mock-phone {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0f172a, #1e293b);
  padding: 0.85rem;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  margin-inline: auto;
}

.mock-screen {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 42%, #cbd5e1 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-map {
  flex: 1;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgb(37 99 235 / 0.12), transparent),
    repeating-linear-gradient(
      90deg,
      rgb(148 163 184 / 0.15) 0,
      rgb(148 163 184 / 0.15) 1px,
      transparent 1px,
      transparent 32px
    ),
    repeating-linear-gradient(
      rgb(148 163 184 / 0.12) 0,
      rgb(148 163 184 / 0.12) 1px,
      transparent 1px,
      transparent 32px
    );
  position: relative;
}

.mock-pin {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -100%);
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgb(37 99 235 / 0.18);
}

.mock-sheet {
  border-radius: 14px;
  background: white;
  padding: 0.85rem;
  box-shadow: 0 -8px 24px rgb(15 23 42 / 0.08);
}

.mock-line {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  margin-bottom: 0.5rem;
}

.mock-line.short {
  width: 55%;
}

.mock-line.accent {
  width: 72%;
  background: rgb(37 99 235 / 0.25);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgb(37 99 235 / 0.1);
  color: var(--brand);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Apps */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.app-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.app-card h3 {
  margin: 0 0 0.25rem;
}

.app-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-soon {
  background: rgb(245 158 11 / 0.12);
  color: #b45309;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0f172a;
  color: white;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.store-btn svg {
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.85;
}

.store-btn span {
  font-size: 0.95rem;
  line-height: 1.2;
}

.store-btn.is-live {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.store-btn.is-live:hover {
  background: #1e293b;
  text-decoration: none;
}

/* Contact */
.contact-card {
  background: linear-gradient(135deg, var(--brand), #1d4ed8);
  color: white;
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.contact-card h2 {
  margin: 0 0 0.5rem;
}

.contact-card p {
  margin: 0;
  opacity: 0.92;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-links a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: white;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

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

/* Legal pages */
.legal-page {
  padding: 3rem 0 4.5rem;
}

.legal-wrap {
  width: min(100% - 2rem, var(--legal-max));
  margin-inline: auto;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-page h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page li + li {
  margin-top: 0.35rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 360px;
  }

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

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

  .contact-card {
    grid-template-columns: 1fr;
  }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0;
  }
}
