:root {
  --ink-900: #0f2132;
  --ink-800: #173247;
  --ink-700: #1f4660;
  --ink-500: #3d6884;
  --ink-400: #5f859f;
  --line-200: #c8d8e6;
  --line-100: #dbe7f1;
  --surface-strong: #ffffff;
  --surface-soft: #f4f8fc;
  --surface-muted: #edf3f9;
  --brand-700: #0d6aa2;
  --brand-600: #1783ba;
  --brand-500: #26a4c8;
  --brand-300: #7dd0da;
  --ok: #196f51;
  --danger: #a23b4a;
  --hero-glow: rgba(24, 120, 168, 0.24);
  --panel-shadow: 0 32px 54px -40px rgba(18, 54, 78, 0.48);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(880px 420px at -8% -16%, rgba(118, 192, 223, 0.24) 0%, rgba(118, 192, 223, 0) 66%),
    radial-gradient(720px 360px at 112% 8%, rgba(40, 144, 199, 0.16) 0%, rgba(40, 144, 199, 0) 72%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 55%, #ecf3f8 100%);
}

body.auth-modal-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0.6rem;
  z-index: 30;
  width: min(1160px, calc(100% - 1.4rem));
  margin: 0.8rem auto 0;
  padding: 0.74rem 0.86rem;
  border: 1px solid rgba(172, 194, 211, 0.74);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 46px -42px rgba(21, 60, 84, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
  box-shadow: 0 0 0 6px rgba(29, 135, 184, 0.15);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-actions .btn {
  padding: 0.42rem 0.66rem;
  font-size: 0.76rem;
}

.top-link {
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.32rem 0.14rem;
  border-radius: 8px;
}

.top-link:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.shell {
  width: min(1160px, calc(100% - 1.4rem));
  margin: 1.04rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 1.06rem;
}

.page-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  align-items: center;
  position: sticky;
  top: 4.45rem;
  z-index: 20;
  padding: 0.28rem 0.34rem;
  border: 1px solid #d6e5f1;
  border-radius: 999px;
  background: rgba(250, 253, 255, 0.92);
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
}

.page-nav a {
  text-decoration: none;
  border: 1px solid #c7d9e8;
  border-radius: 999px;
  background: #edf4fb;
  color: #1f4f6d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.28rem 0.56rem;
}

.page-nav a:hover {
  background: #e1edf8;
}

.page-nav a:focus-visible,
.top-link:focus-visible,
.btn:focus-visible,
.copy-mode-btn:focus-visible {
  outline: 2px solid rgba(25, 133, 182, 0.26);
  outline-offset: 1px;
}

.card,
.hero {
  border: 1px solid var(--line-100);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 250, 255, 0.94) 100%);
  box-shadow: var(--panel-shadow);
}

.fold-section {
  overflow: hidden;
}

.fold-section > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.88rem 0.96rem;
}

.fold-section > summary::-webkit-details-marker {
  display: none;
}

.fold-section > summary::after {
  content: "+";
  color: #2a6483;
  font-size: 0.92rem;
}

.fold-section[open] > summary::after {
  content: "-";
}

.fold-meta {
  font-size: 0.78rem;
  color: var(--ink-500);
}

.fold-section > .fold-body {
  border-top: 1px solid #d4e5f2;
  padding: 0.82rem 0.96rem 1rem;
  display: grid;
  gap: 0.74rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.38rem 1.42rem;
  display: grid;
  gap: 0.82rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--hero-glow) 0%, rgba(24, 120, 168, 0) 72%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-700);
  font-size: 0.72rem;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.8rem, 3.7vw, 2.72rem);
  line-height: 1.04;
  max-width: 22ch;
}

.subtitle {
  color: var(--ink-500);
  line-height: 1.62;
  font-size: 0.98rem;
  max-width: 62ch;
}

.copy-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  flex-wrap: wrap;
}

.copy-mode-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.copy-mode-btn {
  border: 1px solid #c1d6e6;
  border-radius: 999px;
  background: #f3f8fd;
  color: #2b5a78;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.34rem 0.58rem;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.copy-mode-btn:hover {
  background: #e7f1fa;
  transform: translateY(-1px);
}

.copy-mode-btn.is-active {
  border-color: #1c79ac;
  background: linear-gradient(135deg, #e4f2fb 0%, #d8edf9 100%);
  color: #11517a;
  box-shadow: 0 8px 20px -18px rgba(17, 94, 138, 0.85);
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-actions .btn.primary {
  min-width: 212px;
  box-shadow: 0 20px 34px -24px rgba(17, 112, 161, 0.78);
}

.hero-actions .btn.ghost {
  min-width: 174px;
}

.btn-compact {
  padding: 0.48rem 0.74rem;
  font-size: 0.8rem;
}

.cta-meta {
  color: var(--ink-400);
  font-size: 0.79rem;
  line-height: 1.4;
}

.inline-link {
  color: var(--brand-700);
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  border: 1px solid #c2d6e6;
  background: linear-gradient(180deg, #f8fcff 0%, #eef6fc 100%);
  color: #255777;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.hero-stats article {
  border: 1px solid #d2e3ef;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fafdff 0%, #f0f8fd 100%);
  padding: 0.54rem 0.62rem;
  display: grid;
  gap: 0.08rem;
}

.hero-stats strong {
  font-size: 0.82rem;
  color: var(--ink-800);
}

.hero-stats span {
  color: var(--ink-500);
  font-size: 0.74rem;
  line-height: 1.35;
}

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

.hero-points article {
  border: 1px solid #d7e5f0;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fafdff 0%, #f2f8fd 100%);
  padding: 0.68rem 0.72rem;
}

.hero-points strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.hero-points span {
  display: block;
  margin-top: 0.26rem;
  color: var(--ink-500);
  font-size: 0.78rem;
  line-height: 1.45;
}

.marketing {
  grid-column: 2;
  grid-row: 1;
  padding: 1.12rem;
  display: grid;
  gap: 0.8rem;
}

.marketing-head h2 {
  font-size: 1.24rem;
  line-height: 1.26;
}

.marketing-head p {
  margin-top: 0.34rem;
  color: var(--ink-500);
  font-size: 0.93rem;
  line-height: 1.56;
}

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

.marketing-grid article {
  border: 1px solid #d8e6f1;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f9fcff 0%, #f2f8fd 100%);
  padding: 0.68rem 0.72rem;
}

.marketing-grid strong {
  display: block;
  color: var(--ink-800);
  font-size: 0.83rem;
}

.marketing-grid p {
  margin-top: 0.23rem;
  color: var(--ink-500);
  font-size: 0.8rem;
  line-height: 1.5;
}

.marketing-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  flex-wrap: wrap;
}

.marketing-actions .btn.primary {
  min-width: 166px;
}

.use-cases,
.how-it-works,
.preview,
.site-footer {
  width: min(1160px, calc(100% - 1.4rem));
}

.use-cases {
  margin: 0.9rem auto 0.96rem;
  padding: 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.52rem;
}

#use-cases-subtitle {
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.56;
}

.use-case-card {
  border: 1px solid #d7e4ef;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fafcff 0%, #f2f8fd 100%);
  padding: 0.66rem 0.7rem;
}

.use-case-card h3 {
  font-size: 0.86rem;
  line-height: 1.3;
}

.use-case-card p {
  margin-top: 0.24rem;
  color: var(--ink-500);
  font-size: 0.79rem;
  line-height: 1.52;
}

.how-it-works {
  margin: 0 auto 1.04rem;
  padding: 0;
}

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

.steps article {
  position: relative;
  border: 1px solid #d7e4ef;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fafcff 0%, #f2f8fd 100%);
  padding: 0.68rem 0.74rem;
  display: grid;
  gap: 0.28rem;
}

.steps span {
  width: max-content;
  border-radius: 999px;
  padding: 0.17rem 0.48rem;
  background: linear-gradient(135deg, #e6f2fb 0%, #d8edf7 100%);
  border: 1px solid #bfd8ea;
  color: #16557b;
  font-size: 0.73rem;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
}

.steps p {
  color: var(--ink-500);
  font-size: 0.84rem;
  line-height: 1.5;
}

.preview {
  margin: 0 auto 1.2rem;
  padding: 0.96rem 1rem 1.04rem;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.preview-head h2 {
  font-size: 1.16rem;
}

.preview-status {
  margin-top: 0.28rem;
  color: var(--ink-500);
  font-size: 0.87rem;
  line-height: 1.5;
}

.preview-actions {
  display: inline-flex;
  gap: 0.48rem;
  flex-wrap: wrap;
}

.preview-coverage {
  margin-top: 0.54rem;
  color: var(--ink-500);
  font-size: 0.91rem;
  line-height: 1.54;
}

.preview-map-shell {
  margin-top: 0.66rem;
  width: 100%;
  height: clamp(360px, 56vh, 620px);
  border: 1px solid #c5d9e9;
  border-radius: 14px;
  background: #d7e8f3;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.preview-map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #d7e8f3;
}

.btn {
  border-radius: var(--radius-sm);
  border: 1px solid #c0d5e6;
  padding: 0.58rem 0.92rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #1f4a66;
  background: #ecf4fb;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, background 0.16s ease;
}

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

.btn.primary {
  color: #ffffff;
  border-color: #116d9f;
  background: linear-gradient(135deg, #0f6ea5 0%, #1c88be 58%, #29a3c9 100%);
  box-shadow: 0 18px 30px -22px rgba(12, 107, 161, 0.78);
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.ghost {
  background: #f5f9fd;
}

.site-footer {
  margin: 0 auto 1.3rem;
  padding: 0.96rem 1rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.9fr));
  gap: 0.82rem;
}

.footer-block h2,
.footer-block h3 {
  font-size: 0.93rem;
}

.footer-block p {
  margin-top: 0.32rem;
  color: var(--ink-500);
  font-size: 0.81rem;
  line-height: 1.54;
}

.footer-links {
  margin-top: 0.34rem;
  display: grid;
  gap: 0.24rem;
}

.footer-links a {
  width: max-content;
  font-size: 0.8rem;
  color: #235e83;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  margin-top: 0.44rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d3e3ef;
  background: #f6fbff;
  padding: 0.44rem 0.5rem;
}

.footer-note a {
  color: #245c83;
  text-decoration: none;
  font-weight: 700;
}

.footer-note a:hover {
  text-decoration: underline;
}

.footer-meta {
  margin: 0.74rem 0 0;
  padding-top: 0.62rem;
  border-top: 1px solid #d3e2ee;
  color: var(--ink-400);
  font-size: 0.77rem;
}

.auth {
  padding: 1rem;
  display: grid;
  gap: 0.72rem;
}

.auth-head h2 {
  font-size: 1.12rem;
}

#auth-subtitle {
  margin-top: 0.28rem;
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.48;
}

.mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #c8d9e8;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f2f7fc;
}

.mode-btn {
  border: 0;
  background: transparent;
  color: #37607a;
  padding: 0.52rem 0.6rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-btn.is-active {
  background: #e0edf8;
  color: #194d71;
}

.auth-form {
  display: grid;
  gap: 0.56rem;
}

.hidden {
  display: none !important;
}

label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #557991;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid #c6d9e8;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink-900);
  padding: 0.57rem 0.65rem;
  font: inherit;
}

input::placeholder {
  color: #87a3b8;
}

.google-wrap {
  margin-top: 0.2rem;
}

.separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  color: #6f8ea3;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  background: #d0e0ed;
}

#google-button {
  margin-top: 0.58rem;
}

.auth-message {
  min-height: 1.15rem;
  color: var(--ink-500);
  font-size: 0.84rem;
}

.auth-message.error {
  color: var(--danger);
}

.auth-message.success {
  color: var(--ok);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 0.9rem;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 25, 39, 0.54);
  backdrop-filter: blur(5px);
}

.auth-modal-panel {
  position: relative;
  z-index: 2;
  width: min(95vw, 470px);
}

.auth-modal-close {
  position: absolute;
  top: 0.48rem;
  right: 0.48rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #c4d8e8;
  background: #eef5fb;
  color: #1c4a67;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  background: #e2edf7;
}

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

  .marketing {
    grid-column: auto;
    grid-row: auto;
  }

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

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

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

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

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

  .preview-head {
    flex-direction: column;
  }

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

@media (max-width: 760px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.46rem;
  }

  .top-actions .btn {
    width: 100%;
    text-align: center;
  }

  .page-nav {
    position: static;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .page-nav a {
    flex: 1 1 calc(50% - 0.3rem);
    text-align: center;
  }

  .top-actions .top-link {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0.3rem 0.4rem;
    border: 1px solid #c9dced;
    background: #f3f8fc;
    border-radius: var(--radius-sm);
  }

  .hero-actions,
  .preview-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .copy-mode {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copy-mode-label {
    grid-column: 1 / -1;
  }

  .copy-mode-btn {
    width: 100%;
    text-align: center;
  }

  .hero-actions .btn,
  .preview-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-trust {
    gap: 0.34rem;
  }

  .trust-pill {
    font-size: 0.69rem;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .marketing,
  .use-cases,
  .how-it-works,
  .preview,
  .site-footer {
    animation: landing-reveal 0.52s ease both;
  }

  .marketing {
    animation-delay: 0.05s;
  }

  .use-cases {
    animation-delay: 0.08s;
  }

  .how-it-works {
    animation-delay: 0.11s;
  }

  .preview {
    animation-delay: 0.14s;
  }

  .site-footer {
    animation-delay: 0.17s;
  }
}

@keyframes landing-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
