/* ==========================================================================
   Granite Fox base styles
   ========================================================================== */

:root {
  --navy-950: #080f1c;
  --navy-900: #0b1626;
  --navy-800: #10203a;
  --navy-700: #16283f;
  --navy-600: #1d3452;
  --line: #223753;

  --cream: #fff6e0;
  --gold: #f2c15c;
  --gold-deep: #e0a53a;

  --grass: #5cb24f;
  --grass-deep: #3f8c39;

  --red: #d6455a;
  --orange: #dc8a35;
  --teal: #1a9e93;
  --pink: #d1275f;
  --indigo: #3a53c4;

  --forest: #0f5c42;
  --forest-deep: #06352b;
  --sand: #d9c48f;
  --sky: #3b82c4;

  --text: #f4f6fb;
  --text-dim: #aab4c9;
  --text-dimmer: #7c8aa3;

  --radius: 16px;
  --radius-lg: 26px;
  --wrap: 1120px;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-950);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 999;
}
.skip-link:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.1rem; color: var(--text); }

p { margin: 0 0 1em; color: var(--text-dim); }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9em;
}

section { position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--navy-950);
  box-shadow: 0 10px 26px -10px rgba(242, 193, 92, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(242, 193, 92, 0.65); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 15, 28, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 32px;
}
.site-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(242, 193, 92, 0.16), transparent 60%),
    radial-gradient(700px 420px at 5% 10%, rgba(58, 83, 196, 0.18), transparent 60%),
    var(--navy-900);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-sub { font-size: 1.08rem; max-width: 46ch; }
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background: radial-gradient(closest-side, rgba(242, 193, 92, 0.22), transparent 70%);
  z-index: -1;
  filter: blur(10px);
}

.hero-crosswalk {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--text-dimmer) 0 28px, transparent 28px 46px);
  opacity: .18;
}

/* Phone mockup */
.phone-frame {
  width: 240px;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}
.phone-frame img {
  border-radius: 24px;
  width: 100%;
  height: auto;
}
.phone-frame.small { width: 190px; }

.trail-illustration {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(190deg, var(--forest-deep) 0%, #08251c 70%);
}
.trail-illustration svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   About
   ========================================================================== */

.about { padding: 88px 0; border-top: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-sub { font-size: 1.05rem; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-deep);
  border-radius: var(--radius);
  padding: 26px;
}
.value-card:nth-child(2) { border-top-color: var(--teal); }
.value-card:nth-child(3) { border-top-color: var(--red); }
.value-card h3 { margin-bottom: .4em; }
.value-card p { margin: 0; font-size: .95rem; }

/* ==========================================================================
   Apps overview (homepage)
   ========================================================================== */

.apps { padding: 0 0 88px; }

.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.app-card {
  display: block;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .15s ease, border-color .15s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--gold-deep); }

.app-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.app-card h3 { margin-bottom: .15em; font-size: 1.25rem; }
.app-card-tagline { margin: 0; color: var(--gold); font-weight: 600; font-size: .92rem; }
.app-card p.app-card-desc { margin: 0 0 18px; font-size: .95rem; }
.app-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
}
.app-card:hover .app-card-link { color: var(--gold); }
.app-card-link svg { transition: transform .15s ease; }
.app-card:hover .app-card-link svg { transform: translateX(3px); }

/* ==========================================================================
   App section
   ========================================================================== */

.app {
  padding: 88px 0 100px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(92, 178, 79, 0.10), transparent 60%),
    var(--navy-900);
}
.app--tiaki {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(15, 92, 66, 0.22), transparent 60%),
    radial-gradient(700px 420px at 5% 30%, rgba(59, 130, 196, 0.10), transparent 60%),
    var(--navy-900);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}
.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.app-header h2 { margin-bottom: .1em; }
.app-tagline {
  margin: 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 1.02rem;
}

.app-desc { max-width: 72ch; font-size: 1.05rem; margin-bottom: 30px; }

.dodge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}
.dodge-chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cream);
}
.chip-red { background: linear-gradient(135deg, var(--red), #a72e40); }
.chip-teal { background: linear-gradient(135deg, var(--teal), #0f6f67); }
.chip-orange { background: linear-gradient(135deg, var(--orange), #b5661f); }
.chip-pink { background: linear-gradient(135deg, var(--pink), #941d48); }
.chip-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy-950); }
.chip-indigo { background: linear-gradient(135deg, var(--indigo), #263a8f); }
.chip-forest { background: linear-gradient(135deg, var(--forest), var(--forest-deep)); }
.chip-sky { background: linear-gradient(135deg, var(--sky), #285f92); }
.chip-sand { background: linear-gradient(135deg, var(--sand), #b89f61); color: var(--navy-950); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}
.feature {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; font-size: .92rem; }

.screens {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  margin-bottom: 20px;
  scroll-snap-type: x proximity;
}
.screens .phone-frame { flex: 0 0 auto; scroll-snap-align: start; }

.store-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--navy-800);
  color: var(--text-dim);
  cursor: default;
  user-select: none;
}
.store-text { display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; color: var(--text); font-size: .95rem; }
.store-text small { font-weight: 500; color: var(--text-dimmer); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.tier-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.tier-card.tier-pro { border-color: var(--gold-deep); background: linear-gradient(180deg, rgba(242,193,92,0.07), transparent 40%), var(--navy-800); }
.tier-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.tier-pro-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  padding: 2px 9px;
  border-radius: 999px;
}
.tier-price { margin: 0 0 16px; color: var(--text-dimmer); font-size: .88rem; }
.tier-list { list-style: none; margin: 0; padding: 0; }
.tier-list li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--text-dim);
}
.tier-list li:first-child { border-top: none; }

.disclaimer {
  font-size: .85rem;
  color: var(--text-dimmer);
  border-left: 2px solid var(--line);
  padding-left: 14px;
  max-width: 62ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--navy-950);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-nav a { font-size: .9rem; color: var(--text-dim); }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { margin: 0; font-size: .85rem; color: var(--text-dimmer); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone-frame { width: 210px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .site-nav.open { max-height: 220px; }
  .site-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }

  .value-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .app-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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