/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f2d5c;
  --navy-light: #1a4272;
  --gold: #c9a84c;
  --gold-light: #e0c87a;
  --off-white: #f8f7f4;
  --light-gray: #eae8e2;
  --mid-gray: #9a9792;
  --text: #1a1a18;
  --text-soft: #4a4a46;
  --stage-done: #2e7d32;
  --stage-active: #f59e0b;
  --stage-waiting: #6b7280;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.25;
  font-weight: 700;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 14px 0;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.nav-rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-label {
  max-width: 1160px;
  margin: 0 auto 20px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.hero-title {
  max-width: 1160px;
  margin: 0 auto 20px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.hero-sub {
  max-width: 1160px;
  margin: 0 auto 52px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.65;
}

/* Protocol Bar */
.hero-protocol-bar {
  max-width: 1160px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px 32px 32px;
}

.pb-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.pb-protocol {
  font-family: 'Source Sans 3', monospace;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pb-stages {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.pb-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.pb-stage.done .pb-dot { background: var(--stage-done); }
.pb-stage.active .pb-dot {
  background: var(--stage-active);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
.pb-stage:not(.done):not(.active) .pb-dot { background: var(--stage-waiting); }

.pb-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--stage-waiting);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.pb-line {
  width: 100%;
  height: 3px;
  background: var(--stage-waiting);
  margin: 7px 0 0;
}
.pb-stage.done .pb-line { background: var(--stage-done); }
.pb-stage.active .pb-line { background: var(--stage-active); }

.pb-text {
  margin-top: 10px;
  text-align: center;
  padding: 0 4px;
}

.pb-stage-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
}
.pb-stage.done .pb-stage-name,
.pb-stage.active .pb-stage-name { color: #fff; }

.pb-date {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
}
.pb-stage.done .pb-date { color: rgba(255,255,255,0.5); }
.pb-stage.active .pb-date { color: var(--gold-light); }
.pb-pending { font-style: italic; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,158,11,0.25); }
  50% { box-shadow: 0 0 0 7px rgba(245,158,11,0.1); }
}

/* === TRACKING DEMO === */
.tracking-demo {
  background: #fff;
  padding: 80px 24px;
}

.demo-inner { max-width: 1160px; margin: 0 auto; }

.demo-header { margin-bottom: 52px; }

.demo-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.demo-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy);
  max-width: 480px;
  line-height: 1.2;
}

.demo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  margin-bottom: 52px;
}

.demo-step { position: relative; }

.step-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 12px;
}

.step-content h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.demo-stat-row {
  display: flex;
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--light-gray);
}

.demo-stat {}

.stat-val {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--mid-gray);
  letter-spacing: 0.03em;
}

/* === FEATURES === */
.features {
  background: var(--off-white);
  padding: 80px 24px;
}

.features-inner { max-width: 1160px; margin: 0 auto; }

.features-header { margin-bottom: 52px; }

.features-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.features-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy);
  max-width: 520px;
  line-height: 1.2;
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 28px 28px 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(15,45,92,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* === PRINCIPLES === */
.principles {
  background: var(--navy);
  padding: 72px 24px;
}

.principles-inner { max-width: 1160px; margin: 0 auto; }

.principles-quote {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.principles-quote blockquote {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  line-height: 1.35;
  font-style: italic;
  max-width: 640px;
}

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

.principle-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.principle h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}

.principle p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* === PHILOSOPHY === */
.philosophy {
  background: var(--light-gray);
  padding: 80px 24px;
}

.philosophy-inner { max-width: 1160px; margin: 0 auto; }

.philosophy-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.philosophy-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.15;
}

.philosophy-body {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 16px;
}

.philosophy-body:last-of-type { margin-bottom: 0; }

/* === CLOSING === */
.closing {
  background: var(--navy);
  padding: 80px 24px;
  text-align: center;
}

.closing-inner { max-width: 1160px; margin: 0 auto; }

.closing-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.closing-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  max-width: 400px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  background: #0a1e3a;
  padding: 40px 24px;
}

.footer-inner { max-width: 1160px; margin: 0 auto; }

.footer-brand { margin-bottom: 28px; }

.footer-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  max-width: 380px;
  line-height: 1.55;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 60px; }
  .hero-protocol-bar { padding: 20px 20px 24px; }

  .pb-stages { flex-direction: column; gap: 0; }
  .pb-stage { flex-direction: row; align-items: flex-start; width: 100%; }
  .pb-line { display: none; }
  .pb-dot { margin-top: 4px; }
  .pb-text { text-align: left; margin-left: 14px; margin-top: 2px; }

  .demo-steps { grid-template-columns: 1fr; gap: 32px; }
  .demo-stat-row { gap: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }

  .tracking-demo, .features, .philosophy, .closing { padding: 56px 20px; }
  .principles { padding: 56px 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .demo-stat-row { flex-direction: column; gap: 20px; }
  .pb-stage-name { font-size: 0.72rem; }
}