:root {
  --bg: #0f1521;
  --bg-strong: #121d2c;
  --text: #f7f9fc;
  --muted: #b7c0cf;
  --soft: #8f9aab;
  --line: rgba(255, 255, 255, 0.13);
  --card: rgba(22, 30, 45, 0.72);
  --card-solid: #161e2d;
  --accent: #007aff;
  --accent-deep: #0062cc;
  --green: #26c281;
  --purple: #8c6cff;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 16px 45px rgba(0, 0, 0, 0.2);
  --max-width: 1180px;
  --section: clamp(76px, 9vw, 128px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 122, 255, 0.22), transparent 26rem),
    radial-gradient(circle at 90% 6%, rgba(140, 108, 255, 0.18), transparent 25rem),
    linear-gradient(180deg, #0c111a 0%, var(--bg) 70%, #0b1018 100%);
  min-height: 100vh;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 20px 0;
}

.nav-shell {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(20, 27, 40, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(35, 55, 90, 0.08);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: var(--max-width);
  min-height: 60px;
  padding: 8px 10px 8px 14px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0;
  min-width: max-content;
}

.app-icon {
  align-items: center;
  background: linear-gradient(145deg, #63c7ff, #007aff 54%, #6559ff);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px rgba(0, 122, 255, 0.24);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.app-icon span {
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  height: 16px;
  position: relative;
  width: 16px;
}

.app-icon span::after {
  background: #ffffff;
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.nav-cta,
.button,
.signup-form button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.nav-cta,
.button.primary,
.signup-form button {
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.24);
  color: #ffffff;
}

.nav-cta {
  font-size: 14px;
  padding: 0 18px;
}

.button {
  padding: 0 22px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(28, 46, 86, 0.08);
  color: var(--text);
}

.nav-cta:hover,
.button:hover,
.signup-form button:hover {
  transform: translateY(-2px);
}

.button.primary:hover,
.nav-cta:hover,
.signup-form button:hover {
  background: var(--accent-deep);
}

.section-pad {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: var(--section) 20px 0;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(36px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.18fr);
  padding-top: clamp(72px, 10vw, 132px);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(48px, 7vw, 78px);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(34px, 4.5vw, 54px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-subtitle,
.section-intro p,
.privacy-panel p,
.signup-panel p,
.feature-card p {
  color: var(--muted);
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
  margin-bottom: 30px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mockup-wrap {
  perspective: 1400px;
}

.window {
  background: rgba(20, 27, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding-top: 44px;
  position: relative;
  transform: rotateX(2deg) rotateY(-5deg);
}

.traffic-lights {
  display: flex;
  gap: 8px;
  left: 20px;
  position: absolute;
  top: 17px;
}

.traffic-lights span {
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

.traffic-lights span:nth-child(1) { background: #ff5f57; }
.traffic-lights span:nth-child(2) { background: #febc2e; }
.traffic-lights span:nth-child(3) { background: #28c840; }

.app-layout {
  background: #121b29;
  display: grid;
  grid-template-columns: 170px minmax(260px, 1fr) 178px;
  min-height: 480px;
}

.mock-sidebar,
.detail-panel {
  background: rgba(20, 27, 40, 0.72);
  border-color: var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 16px;
}

.mock-sidebar {
  border-right: 1px solid var(--line);
}

.sidebar-title {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.mock-sidebar a {
  align-items: center;
  border-radius: 12px;
  color: #aab6c7;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  min-height: 34px;
  padding: 0 10px;
}

.mock-sidebar a.active {
  background: rgba(0, 122, 255, 0.11);
  color: var(--accent-deep);
}

.css-icon,
.card-icon {
  display: inline-block;
  position: relative;
}

.css-icon {
  height: 15px;
  width: 15px;
}

.css-icon.library { border: 2px solid currentColor; border-radius: 4px; }
.css-icon.map { border: 2px solid currentColor; border-radius: 50%; }
.css-icon.timeline { border-bottom: 2px solid currentColor; }
.css-icon.timeline::before,
.css-icon.timeline::after {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 5px;
  position: absolute;
  top: 5px;
  width: 5px;
}
.css-icon.timeline::before { left: 0; }
.css-icon.timeline::after { right: 0; }
.css-icon.pin { border: 2px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.css-icon.export { border: 2px solid currentColor; border-radius: 4px; }
.css-icon.export::after {
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  height: 6px;
  position: absolute;
  right: -5px;
  top: -5px;
  width: 6px;
}

.map-panel {
  background:
    linear-gradient(90deg, rgba(0, 122, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 122, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 30% 28%, rgba(0, 122, 255, 0.16), transparent 16rem),
    radial-gradient(circle at 76% 65%, rgba(38, 194, 129, 0.14), transparent 13rem),
    #121b29;
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  min-height: 480px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.map-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #1f2937;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  padding: 10px 12px;
  position: relative;
  z-index: 3;
}

.map-toolbar span:last-child {
  color: var(--soft);
  font-weight: 700;
}

.route-line {
  border: 2px solid rgba(0, 122, 255, 0.2);
  border-bottom: 0;
  border-left: 0;
  border-radius: 50%;
  height: 250px;
  left: 19%;
  position: absolute;
  top: 25%;
  transform: rotate(16deg);
  width: 56%;
}

.cluster {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(31, 63, 111, 0.15);
  color: #ffffff;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  position: absolute;
  z-index: 2;
}

.cluster-a { background: rgba(0, 122, 255, 0.88); height: 66px; left: 18%; top: 30%; width: 66px; }
.cluster-b { background: rgba(140, 108, 255, 0.88); height: 54px; left: 62%; top: 23%; width: 54px; }
.cluster-c { background: rgba(38, 194, 129, 0.88); height: 76px; left: 48%; top: 52%; width: 76px; }
.cluster-d { background: rgba(0, 122, 255, 0.72); height: 44px; left: 75%; top: 66%; width: 44px; }
.cluster-e { background: rgba(114, 190, 255, 0.92); height: 52px; left: 27%; top: 69%; width: 52px; }

.place-label {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3b4558;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  position: absolute;
}

.label-a { left: 14%; top: 47%; }
.label-b { left: 45%; top: 68%; }
.label-c { left: 66%; top: 37%; }

.detail-panel {
  border-left: 1px solid var(--line);
}

.detail-heading span {
  display: block;
  font-weight: 800;
}

.detail-heading small {
  color: var(--soft);
  font-weight: 700;
}

.photo-stack {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, 1fr);
}

.photo-card {
  aspect-ratio: 1;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.photo-card:first-child {
  grid-row: span 2;
}

.photo-card.blue { background: linear-gradient(145deg, #7fd1ff, #2479ff); }
.photo-card.green { background: linear-gradient(145deg, #9befd1, #1fb56f); }
.photo-card.violet { background: linear-gradient(145deg, #d1c6ff, #7a5cff); }

.info-card {
  background: rgba(20, 27, 40, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.info-card span {
  color: var(--soft);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.info-card strong {
  display: block;
  font-size: 15px;
  margin-top: 2px;
}

.progress {
  background: rgba(0, 122, 255, 0.12);
  border-radius: 999px;
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
}

.progress span {
  background: var(--accent);
  border-radius: inherit;
  height: 100%;
  width: 64%;
}

.section-intro {
  margin: 0 auto 32px;
  max-width: 780px;
  text-align: center;
}

.section-intro.narrow {
  max-width: 860px;
}

.problem .section-intro {
  background: rgba(20, 27, 40, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(32px, 6vw, 64px);
}

.card-grid,
.tile-grid,
.steps {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.feature-tile,
.step,
.privacy-panel,
.signup-panel {
  backdrop-filter: blur(18px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.feature-card,
.feature-tile {
  border-radius: var(--radius-md);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card {
  min-height: 250px;
  padding: 28px;
}

.feature-card:hover,
.feature-tile:hover {
  box-shadow: 0 20px 50px rgba(28, 46, 86, 0.13);
  transform: translateY(-4px);
}

.card-icon {
  background: rgba(0, 122, 255, 0.1);
  border-radius: 17px;
  height: 48px;
  margin-bottom: 26px;
  width: 48px;
}

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

.card-icon.compass::before {
  border: 2px solid var(--accent);
  border-radius: 50%;
  inset: 12px;
}

.card-icon.compass::after {
  background: var(--accent);
  height: 16px;
  left: 24px;
  top: 15px;
  transform: rotate(38deg);
  width: 2px;
}

.card-icon.marker::before {
  border: 2px solid var(--accent);
  border-radius: 50% 50% 50% 0;
  height: 18px;
  left: 14px;
  top: 11px;
  transform: rotate(-45deg);
  width: 18px;
}

.card-icon.folder::before {
  background: var(--accent);
  border-radius: 6px 6px 4px 4px;
  height: 22px;
  left: 12px;
  top: 17px;
  width: 26px;
}

.card-icon.folder::after {
  background: var(--accent);
  border-radius: 4px;
  height: 8px;
  left: 14px;
  top: 12px;
  width: 14px;
}

.tile-grid {
  grid-template-columns: repeat(6, 1fr);
}

.feature-tile {
  min-height: 166px;
  padding: 20px;
}

.feature-tile span {
  align-items: center;
  background: rgba(0, 122, 255, 0.09);
  border-radius: 15px;
  color: var(--accent);
  display: flex;
  font-size: 24px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  margin-bottom: 22px;
  width: 44px;
}

.feature-tile h3 {
  font-size: 17px;
  margin-bottom: 0;
}

.privacy-panel {
  align-items: center;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: clamp(32px, 6vw, 64px);
}

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

.privacy-list li {
  align-items: center;
  background: rgba(20, 27, 40, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  font-weight: 800;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
}

.privacy-list span {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(38, 194, 129, 0.12);
  height: 10px;
  width: 10px;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.step {
  border-radius: var(--radius-md);
  min-height: 150px;
  padding: 24px;
  position: relative;
}

.step span {
  align-items: center;
  background: var(--text);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  margin-bottom: 24px;
  width: 34px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 0;
}

.signup-panel {
  border-radius: var(--radius-lg);
  margin: 0 auto;
  max-width: 780px;
  padding: clamp(34px, 7vw, 72px);
  text-align: center;
}

.signup-form {
  background: rgba(20, 27, 40, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin: 28px auto 10px;
  max-width: 520px;
  padding: 8px;
}

.signup-form input {
  background: transparent;
  border: 0;
  color: var(--text);
  min-height: 44px;
  min-width: 0;
  outline: 0;
  padding: 0 14px;
}

.signup-form button {
  padding: 0 22px;
}

.signup-form button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.privacy-note {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 0;
}

.form-message {
  color: var(--accent);
  font-weight: 800;
  min-height: 26px;
}

.legal-wrap {
  margin: 0 auto;
  max-width: 900px;
  padding: clamp(72px, 10vw, 128px) 20px 0;
}

.legal-hero,
.legal-card {
  backdrop-filter: blur(18px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.legal-hero {
  border-radius: var(--radius-lg);
  padding: clamp(34px, 7vw, 72px);
}

.legal-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  margin-bottom: 18px;
}

.legal-hero p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  margin-bottom: 0;
}

.legal-meta {
  color: var(--soft) !important;
  font-size: 14px !important;
  font-weight: 800;
  margin-bottom: 18px !important;
}

.legal-card {
  border-radius: var(--radius-md);
  margin-top: 18px;
  padding: clamp(24px, 4vw, 34px);
}

.legal-card h2 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul,
.legal-card ol {
  margin: 0;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a {
  color: var(--accent);
  font-weight: 800;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto auto;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 56px 20px 36px;
}

.site-footer div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer p {
  font-size: 14px;
  margin: 0;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

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

  .hero-copy {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .window {
    transform: none;
  }

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

@media (max-width: 820px) {
  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 4px 6px;
  }

  .card-grid.three,
  .privacy-panel,
  .steps {
    grid-template-columns: 1fr;
  }

  .privacy-panel {
    gap: 22px;
  }

  .app-layout {
    grid-template-columns: 130px minmax(240px, 1fr);
  }

  .detail-panel {
    display: none;
  }

  .mock-sidebar a {
    font-size: 12px;
    padding: 0 8px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section-pad {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand span:last-child {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 0 14px;
  }

  .nav-links {
    gap: 16px;
  }

  h1 {
    font-size: 44px;
  }

  .mockup-wrap {
    margin-left: -16px;
    margin-right: -16px;
    overflow: hidden;
    padding: 0 16px;
  }

  .window {
    border-radius: 22px;
  }

  .app-layout {
    grid-template-columns: 1fr;
    min-height: 400px;
  }

  .mock-sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .sidebar-title {
    grid-column: 1 / -1;
    margin: 0;
  }

  .map-panel {
    min-height: 360px;
  }

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

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

  .signup-form {
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .signup-form button {
    width: 100%;
  }

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

@media (max-width: 430px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .nav-shell {
    border-radius: 20px;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .feature-tile {
    min-height: 128px;
  }
}
