/* NavAnywhere – site styles */
:root {
  --primary: #0F62FE;
  --accent: #14B8A6;
  --dark: #111827;
  --light: #F8FAFC;
  --warning: #F59E0B;
  --muted: #6B7280;
  --border: #E5E7EB;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --radius: 20px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --shadow-lg: 0 25px 60px rgba(17, 24, 39, .18);
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section.alt { background: #fff; }
.section.dark { background: var(--dark); color: #fff; }
.section.dark .lead, .section.dark p { color: #CBD5E1; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, .8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, .7);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--dark); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--dark); font-weight: 500; font-size: .95rem; opacity: .75; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--primary); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--dark); margin: 6px 0; border-radius: 2px; transition: .3s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; transition: transform .2s, box-shadow .2s, background .2s; border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(15, 98, 254, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 98, 254, .45); }
.btn-ghost { border-color: currentColor; color: var(--dark); }
.btn-ghost:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.hero .btn-ghost, .dark .btn-ghost { color: #fff; }
.hero .btn-ghost:hover, .dark .btn-ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at top right, rgba(20, 184, 166, .35), transparent 55%),
              radial-gradient(ellipse at bottom left, rgba(15, 98, 254, .45), transparent 55%),
              var(--dark);
  padding: 110px 0 100px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: .2em; }
.hero .tagline { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: .4em; }
.hero .powered { color: var(--accent); font-weight: 600; letter-spacing: .02em; margin-bottom: 1.4em; }
.hero .lead { color: #CBD5E1; max-width: 560px; margin-bottom: 2em; }
.hero-center { text-align: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .btn-row { justify-content: center; }

/* Phone frame */
.phone {
  position: relative; max-width: 340px; margin: 0 auto; border-radius: 44px; padding: 12px;
  background: linear-gradient(145deg, #2a2f3a, #0b0f17); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone img, .phone .placeholder { border-radius: 34px; width: 100%; }
.phone.sm { max-width: 260px; border-radius: 36px; padding: 10px; }
.phone.sm img, .phone.sm .placeholder { border-radius: 28px; }
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 10% -10%; background: var(--grad); filter: blur(80px); opacity: .45; z-index: 0;
}
.glow > * { position: relative; z-index: 1; }

/* Placeholder */
.placeholder {
  aspect-ratio: 9 / 19.5; background: var(--grad); color: #fff; display: grid; place-items: center;
  text-align: center; padding: 20px; font-weight: 700; font-size: 1rem;
}
.placeholder.wide { aspect-ratio: 16 / 9; }

/* Grids & cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px;
}
.card-media { margin: -36px -36px 26px; padding: 30px 30px 0; background: linear-gradient(180deg, #EEF4FF, #fff); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-media img, .card-media .placeholder { max-width: 220px; margin: 0 auto; border-radius: 22px 22px 0 0; box-shadow: var(--shadow); }
.card-media.crop { max-height: 340px; }
.mode-card { padding: 44px; }
.mode-card .badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: rgba(15, 98, 254, .1); color: var(--primary); margin-bottom: 14px;
}
.mode-card.pathfinder .badge { background: rgba(20, 184, 166, .12); color: #0d9488; }
.mode-card .phone { margin-top: 26px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1.05rem; }
.checklist li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.phone-pair { display: flex; gap: 24px; justify-content: center; align-items: flex-start; }
.phone-pair .phone:nth-child(2) { margin-top: 60px; }

/* Showcase (full-width image) */
.showcase { position: relative; padding: 110px 0 0; background: var(--dark); color: #fff; overflow: hidden; }
.showcase .section-head p { color: #CBD5E1; }
.showcase-frame {
  max-width: 1100px; margin: 0 auto; border-radius: 28px 28px 0 0; overflow: hidden;
  box-shadow: 0 -20px 80px rgba(20, 184, 166, .35); border: 1px solid rgba(255,255,255,.08); border-bottom: 0;
  background: #000;
}
.showcase-frame img { width: 100%; max-height: 900px; object-fit: cover; object-position: top; }
.callout {
  border-left: 4px solid var(--accent); background: rgba(20, 184, 166, .08); padding: 22px 26px; border-radius: 0 16px 16px 0;
  font-size: 1.15rem; font-weight: 600; margin: 30px auto 0; max-width: 680px; text-align: left; color: #fff;
}
.callout strong { color: var(--accent); }

/* Feature rows */
.feature-row { padding: 80px 0; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: 0; }
.feature-row:nth-child(even) .split > :first-child { order: 2; }
.feature-num { font-size: .85rem; font-weight: 800; color: var(--primary); letter-spacing: .1em; }

/* Feature nav chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--dark);
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: .2s; font-family: inherit;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; margin-top: 40px; }
.gallery-item {
  background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); cursor: zoom-in;
  border: 1px solid var(--border); transition: transform .3s, box-shadow .3s, opacity .3s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img, .gallery-item .placeholder { border-radius: 14px; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.gallery-item figcaption { font-weight: 600; font-size: .95rem; margin-top: 12px; text-align: center; }
.gallery-item.hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; background: rgba(5, 8, 15, .92); display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 40px; flex-direction: column;
}
.lightbox.open { display: flex; animation: fade .25s ease; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 20px; box-shadow: var(--shadow-lg); }
.lightbox-caption { color: #fff; margin-top: 16px; font-weight: 600; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Architecture */
.arch { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 520px; margin: 0 auto; }
.arch-step {
  width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 26px;
  box-shadow: var(--shadow); display: flex; gap: 18px; align-items: center;
}
.arch-step .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.arch-step h3 { margin: 0 0 4px; font-size: 1.1rem; }
.arch-step p { margin: 0; color: var(--muted); font-size: .95rem; }
.arch-arrow { width: 2px; height: 36px; background: var(--grad); position: relative; }
.arch-arrow::after {
  content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--accent);
}
.arch-step.final { background: var(--dark); color: #fff; border-color: var(--dark); }
.arch-step.final p { color: #CBD5E1; }

.tech-card { text-align: center; padding: 30px 20px; }
.tech-card .icon { margin: 0 auto 16px; }
.tech-card h3 { font-size: 1.1rem; }
.tech-card p { font-size: .92rem; }

/* CTA */
.cta { text-align: center; background: var(--grad); color: #fff; border-radius: 32px; padding: 80px 30px; }
.cta p { color: rgba(255,255,255,.9); }
.cta .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta .btn-row { justify-content: center; }

/* Hero note */
.hero-note { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 1em; }
.checklist.compact { margin: 16px 0 0; gap: 10px; }
.checklist.compact li { font-size: .98rem; }

/* Comparison */
.compare { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 2fr 1fr 1fr; align-items: center; padding: 18px 28px; border-top: 1px solid var(--border); }
.compare-row span:not(:first-child) { text-align: center; }
.compare-row span:first-child { font-weight: 600; }
.compare-head { border-top: 0; background: var(--dark); color: #fff; font-weight: 700; font-size: .92rem; }
.compare-head span:last-child { color: var(--accent); }
.compare .yes { color: var(--accent); font-weight: 800; font-size: 1.2rem; }
.compare .no { color: #CBD5E1; font-size: 1.2rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--light); border: 1px solid var(--border); border-radius: 16px; padding: 20px 26px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* Feature group headers */
.group-head { text-align: center; max-width: 760px; margin: 0 auto; padding: 90px 0 10px; }
.group-head .badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: rgba(15, 98, 254, .1); color: var(--primary); margin-bottom: 14px;
}
.group-head.pathfinder .badge { background: rgba(20, 184, 166, .12); color: #0d9488; }

@media (max-width: 560px) {
  .compare-row { padding: 14px 16px; font-size: .9rem; grid-template-columns: 1.6fr 1fr 1fr; }
}

/* Footer */
.site-footer { background: var(--dark); color: #94A3B8; padding: 60px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #94A3B8; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1F2937; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; }
}
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 400px; box-shadow: var(--shadow); }
  .nav-links a { display: block; padding: 16px 24px; opacity: 1; border-top: 1px solid var(--border); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { padding: 70px 0; }
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .hero-grid { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .split.reverse > :first-child, .feature-row:nth-child(even) .split > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .showcase { padding-top: 72px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .phone-pair { gap: 12px; }
  .phone-pair .phone { max-width: 46%; padding: 6px; border-radius: 24px; }
  .phone-pair .phone img { border-radius: 19px; }
  .phone-pair .phone:nth-child(2) { margin-top: 30px; }
  .card, .mode-card { padding: 28px; }
  .card-media { margin: -28px -28px 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-item { padding: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lightbox img { max-height: 72vh; }
}
