/* ---------- Tokens ---------- */
:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1A2E;
  --gold: #C5962C;
  --gold-dark: #A87E22;
  --cream: #F5F5F0;
  --white: #FFFFFF;
  --warm-gray: #8A8A7A;

  --shadow-card: 0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-card-strong: 0 8px 24px rgba(27, 42, 74, 0.10);
  --shadow-nav: 0 2px 12px rgba(15, 26, 46, 0.30);

  --radius-card: 16px;
  --radius-btn: 12px;

  --container: 1180px;
  --nav-h: 72px;

  --font: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.container.narrow { max-width: 880px; }
.container.center  { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--navy); color: var(--white);
  padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.10); border-color: var(--white); }

.btn-large {
  height: 56px;
  padding: 0 32px;
  font-size: 17px;
  box-shadow: 0 8px 22px rgba(197, 150, 44, 0.35);
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark-shepherds { color: var(--white); }
.wordmark-watch     { color: var(--gold); }
.wordmark-small     { font-size: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  z-index: 50;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-nav); background: var(--navy-deep); }

.nav-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 140ms ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta { color: var(--white); }
.nav-links .nav-cta { height: 40px; padding: 0 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle .bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav.is-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 96px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60%; height: 60%;
  background: radial-gradient(circle at 70% 30%, rgba(197, 150, 44, 0.18), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy { max-width: 600px; }
.hero-headline {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(245, 245, 240, 0.82);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Fanned phones */
.hero-visual {
  position: relative;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone {
  width: 280px;
  height: 580px;
  border-radius: 36px;
  background: var(--navy-deep);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.phone-label {
  color: var(--warm-gray);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.hero-visual .phone {
  position: absolute;
  transition: transform 400ms ease;
}
.phone-left {
  transform: translateX(-150px) translateY(30px) rotate(-8deg);
  z-index: 1;
  opacity: 0.88;
}
.phone-right {
  transform: translateX(150px) translateY(30px) rotate(8deg);
  z-index: 1;
  opacity: 0.88;
}
.phone-center {
  z-index: 2;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy  { background: var(--navy); color: var(--white); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--navy);
  max-width: 820px;
  margin-bottom: 24px;
}
.section-headline-light { color: var(--white); }

.section-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(245, 245, 240, 0.78);
  max-width: 720px;
  margin-bottom: 56px;
  line-height: 1.55;
}
.section-cream .section-sub,
.section-white .section-sub { color: var(--warm-gray); }

/* ---------- Mission ---------- */
.mission-body {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  font-size: 18px;
  color: var(--navy);
  line-height: 1.65;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-strong);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(197, 150, 44, 0.10);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--navy);
}
.feature-card p {
  font-size: 16px;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ---------- App preview row ---------- */
.preview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.preview-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.phone-small {
  width: 220px;
  height: 460px;
  border-radius: 32px;
}
.preview-item figcaption {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Metrics ---------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.metric-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.metric-number {
  font-size: 44px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  font-feature-settings: "tnum";
}
.metric-card h3 {
  font-size: 17px;
  color: var(--navy);
  font-weight: 600;
}
.metric-card p {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.55;
}

/* ---------- Audience cards ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.audience-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 32px 28px;
}
.audience-card h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 18px;
}
.audience-card ul {
  display: grid;
  gap: 10px;
}
.audience-card li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.55;
}
.audience-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Privacy cards ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.privacy-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
}
.privacy-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--navy);
}
.privacy-card p {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ---------- CTA section ---------- */
.cta { padding: 112px 0 120px; }
.cta .section-headline {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 18px;
  color: var(--warm-gray);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.cta-contact {
  margin-top: 24px;
  color: var(--warm-gray);
  font-size: 15px;
}
.cta-contact a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.cta-contact a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(245, 245, 240, 0.7);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(245, 245, 240, 0.55);
}
.footer-links {
  display: inline-flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(245, 245, 240, 0.7);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }

/* ---------- Fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in.is-visible { transition: none; transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .preview-row     { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .metric-grid     { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }

  .hero { padding: calc(var(--nav-h) + 40px) 0 56px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { height: 560px; }
  .phone-left  { transform: translateX(-90px) translateY(20px) rotate(-8deg); }
  .phone-right { transform: translateX(90px)  translateY(20px) rotate(8deg);  }

  .feature-grid,
  .audience-grid,
  .privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    padding: 8px 16px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
    box-shadow: var(--shadow-nav);
  }
  .nav.is-open .nav-links { max-height: 420px; }

  .nav-links a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links .nav-cta {
    margin-top: 12px;
    height: 48px;
    justify-content: center;
    border-bottom: 0;
  }

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

  .hero-visual { height: 520px; }
  .phone { width: 240px; height: 500px; border-radius: 32px; }
  .phone-left  { transform: translateX(-60px) translateY(30px) rotate(-6deg); opacity: 0.5; }
  .phone-right { transform: translateX(60px)  translateY(30px) rotate(6deg);  opacity: 0.5; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .container, .nav-inner { padding-left: 18px; padding-right: 18px; }
  .hero-ctas .btn { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .preview-row { grid-template-columns: 1fr; }
  .hero-visual { height: 480px; }
  .phone { width: 220px; height: 460px; }
}
