/* RouteWatch — myroutewatch.com stylesheet
   Mobile-first, vanilla CSS, no external dependencies
   Palette: dark navy bg, electric blue accent, off-white text */

/* ─── Design tokens ─────────────────────────────────────── */
:root {
  --navy-900: #0a0f1e;
  --navy-800: #0d1530;
  --navy-700: #111d42;
  --navy-600: #1a2a5e;
  --blue-500: #1a6dff;
  --blue-400: #3d87ff;
  --blue-300: #7ab0ff;
  --white:    #ffffff;
  --grey-100: #f0f4ff;
  --grey-200: #c8d4f0;
  --grey-400: #8a9abf;
  --grey-600: #4a5880;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif, "Apple Color Emoji";
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code",
               "Fira Code", monospace;

  --max-w:      1120px;
  --max-legal:  75ch;
  --radius:     10px;
  --radius-sm:  6px;
  --transition: 0.18s ease;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--grey-100);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--blue-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover, a:focus-visible {
  color: var(--white);
  outline: none;
}

/* ─── Utility ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ─── Navigation ────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 109, 255, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--blue-300);
}

.nav-brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-200);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--white);
  background: rgba(26, 109, 255, 0.15);
  outline: none;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(26, 109, 255, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(26, 109, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 1rem;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--blue-400);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--grey-200);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: default;
  position: relative;
}

.btn-store-apple {
  background: var(--white);
  color: var(--navy-900);
  border: 2px solid var(--white);
}

.btn-store-google {
  background: transparent;
  color: var(--grey-100);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 109, 255, 0.3);
}

.btn-store-apple:hover {
  background: var(--grey-100);
}

.btn-store-google:hover {
  border-color: var(--blue-300);
  color: var(--white);
}

.btn-store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-store-sub {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.01em;
}

.btn-store-main {
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.coming-soon-badge {
  position: absolute;
  top: -9px;
  right: -9px;
  background: var(--blue-500);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── Section shared ─────────────────────────────────────── */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--grey-400);
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.6;
}

/* ─── Features ──────────────────────────────────────────── */
.features {
  background: var(--navy-800);
}

.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid .feature-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    max-width: 360px;
    margin-inline: auto;
    width: 100%;
  }
}

.feature-card {
  background: var(--navy-700);
  border: 1px solid rgba(26, 109, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(26, 109, 255, 0.45);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(26, 109, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue-300);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--grey-400);
  line-height: 1.6;
}

/* ─── Legal sections (Privacy, Terms, Licences) ─────────── */
.legal-section {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-section:nth-child(odd) {
  background: var(--navy-800);
}

.legal-body {
  max-width: var(--max-legal);
  font-size: 0.95rem;
  color: var(--grey-200);
  line-height: 1.8;
}

.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-body h3:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 1rem;
}

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

.legal-body ul,
.legal-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-body a {
  color: var(--blue-300);
}

.legal-meta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--grey-600);
  font-style: italic;
}

/* ─── Contact ───────────────────────────────────────────── */
.contact {
  background: var(--navy-700);
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--navy-800);
  border: 1px solid rgba(26, 109, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(26, 109, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875rem;
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue-300);
}

.contact-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.contact-card p {
  font-size: 0.82rem;
  color: var(--grey-400);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.contact-card a {
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-all;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--grey-600);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--grey-400);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ─── Focus styles (keyboard nav) ───────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 639px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 0.3rem 0.4rem;
    font-size: 0.78rem;
  }

  section {
    padding: 3rem 0;
  }
}
