/* Harrier Systems — Restyled Design System
   Based on combined-best layout exploration.
   All pages link to this shared stylesheet. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #000000; --text: #ffffff; --muted: #a8a8a8; --accent: #4A90A4;
  --accent-hover: #5ba3b8; --surface: #0a0a0a; --surface-raised: #1a1a1a;
  --border: rgba(74,144,164,0.2);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === NAV === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 4vw;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  padding: 0.5rem 1.25rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  background: var(--accent); color: var(--text); text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }
/* Hamburger toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; z-index: 101; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; list-style: none; padding: 1rem 4vw 1.5rem;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  }
  .nav-links a { display: block; padding: 0.75rem 0; font-size: 1rem; }
  nav.nav-open .nav-links { display: flex; }
  nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 8px; font-size: 1rem;
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s; border: none; cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 22px; font-size: 0.875rem; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
section { padding: 6rem 4vw; }

/* === SECTION TYPOGRAPHY === */
.section-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.75rem; font-weight: 600; }
.section-heading { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.section-sub { color: var(--muted); max-width: 600px; margin-bottom: 3rem; font-size: 1.05rem; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === CARDS === */
.card {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px;
  padding: 36px 28px; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(74,144,164,0.1); }
.card-highlight { border-color: rgba(74,144,164,0.4); background: rgba(74,144,164,0.05); }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px; background: rgba(74,144,164,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* === GRIDS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* === SPLIT LAYOUT === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 6rem 4vw; }
.split-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.25rem; }
.split-text p { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.placeholder-img {
  width: 100%; aspect-ratio: 4/3; border-radius: 12px;
  background: linear-gradient(135deg, rgba(74,144,164,0.15), rgba(74,144,164,0.05));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem;
}
@media (max-width: 768px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* === STORY GRAPHIC (Concentric Arcs) === */
.story-graphic {
  width: 100%; aspect-ratio: 4/3; border-radius: 12px;
  background: linear-gradient(135deg, rgba(74,144,164,0.08), rgba(74,144,164,0.02));
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.story-graphic::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(74,144,164,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}
.story-graphic::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 20%, var(--bg) 100%);
}
.story-graphic svg { width: 75%; height: auto; position: relative; z-index: 1; }

.story-arc-core { animation: storyCorePulse 4s ease-in-out infinite; }
@keyframes storyCorePulse {
  0%, 100% { r: 6; opacity: 0.6; }
  50% { r: 8; opacity: 1; }
}

.story-arc {
  fill: none; stroke: var(--accent); stroke-linecap: round;
  animation: storyArcPulse 6s ease-in-out infinite;
}
.story-arc-r1 { stroke-width: 1.5; animation-delay: 0s; }
.story-arc-r1b { stroke-width: 1; animation-delay: 0.4s; }
.story-arc-r2 { stroke-width: 1.5; animation-delay: 0.8s; }
.story-arc-r2b { stroke-width: 1; animation-delay: 1.2s; }
.story-arc-r3 { stroke-width: 1.5; animation-delay: 1.6s; }
.story-arc-r3b { stroke-width: 1; animation-delay: 2s; }
.story-arc-r3c { stroke-width: 0.75; animation-delay: 2.4s; }
.story-arc-r4 { stroke-width: 1; animation-delay: 2.4s; }
.story-arc-r4b { stroke-width: 0.75; animation-delay: 2.8s; }
.story-arc-r5 { stroke-width: 0.75; animation-delay: 3.2s; }
.story-arc-r5b { stroke-width: 0.5; animation-delay: 3.6s; }

@keyframes storyArcPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.6; }
}

.story-arc-dot { animation: storyDotFade 6s ease-in-out infinite; }
.story-arc-dot-1 { animation-delay: 0.3s; }
.story-arc-dot-2 { animation-delay: 1.1s; }
.story-arc-dot-3 { animation-delay: 1.9s; }
.story-arc-dot-4 { animation-delay: 2.7s; }
@keyframes storyDotFade {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.6; }
}

/* === STATS BANNER === */
.stats-banner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--accent); }
.stats-banner .stat { background: var(--surface); padding: 2.5rem 1.5rem; text-align: center; }
.stats-banner .stat-value { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--accent); }
.stats-banner .stat-label { color: var(--muted); font-size: 0.8rem; margin-top: 0.4rem; }
@media (max-width: 768px) { .stats-banner { grid-template-columns: repeat(2, 1fr); } }

/* === COMPARISON === */
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 940px; margin: 0 auto; }
.comp-col { padding: 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-raised); }
.comp-col.with { border-color: var(--accent); }
.comp-col h3 { font-size: 1.25rem; margin-bottom: 20px; }
.comp-col.without h3 { color: var(--muted); }
.comp-col.with h3 { color: var(--accent); }
.comp-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comp-row:last-child { border-bottom: none; }
.comp-label { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 3px; }
.comp-text { font-size: 0.9rem; }
.comp-col.without .comp-text { color: var(--muted); }
.comp-col.with .comp-text { color: var(--text); }
@media (max-width: 768px) { .comp-grid { grid-template-columns: 1fr; } }

/* === STEPS (numbered cards) === */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.step {
  counter-increment: step;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; padding: 2rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--accent);
  display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.875rem; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* === TERMINAL === */
.terminal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-family: 'Space Grotesk', monospace; font-size: 0.85rem; }
.terminal-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--surface-raised); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }
.terminal-body { padding: 20px; min-height: 240px; }
.terminal-line { opacity: 0; white-space: nowrap; margin-bottom: 12px; color: var(--muted); }
.terminal-line .time { color: var(--accent); }
.terminal-line .check { color: #27c93f; }
.terminal-line.visible { animation: fadeType 0.5s forwards; }
@keyframes fadeType { to { opacity: 1; } }
.terminal-line:nth-child(1).visible { animation-delay: 0s; }
.terminal-line:nth-child(2).visible { animation-delay: 0.8s; }
.terminal-line:nth-child(3).visible { animation-delay: 1.6s; }
.terminal-line:nth-child(4).visible { animation-delay: 2.4s; }
.terminal-line:nth-child(5).visible { animation-delay: 3.2s; }
.terminal-line:nth-child(6).visible { animation-delay: 4.0s; }
@media (max-width: 768px) { .terminal { font-size: 0.7rem; } .terminal-line { white-space: normal; } }

/* === FAQ ACCORDION === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  padding: 22px 0; font-family: var(--font-head); font-size: 1.1rem; font-weight: 500;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform 0.3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-answer { padding: 0 0 24px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* === PILOT CTA BOX === */
.pilot-box {
  background: var(--surface-raised); border: 1px solid var(--accent); border-radius: 16px;
  padding: 60px 40px; max-width: 720px; margin: 0 auto; text-align: center;
}
.badge {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(74,144,164,0.15); color: var(--accent); border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.pilot-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.pilot-box p { color: var(--muted); max-width: 520px; margin: 0 auto 2rem; }

/* === FINAL CTA === */
.final-cta { text-align: center; padding: 8rem 4vw; position: relative; overflow: hidden; }
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(74,144,164,0.12), transparent 70%);
}
.final-cta h2 { position: relative; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.final-cta p { position: relative; color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.final-cta .cta-buttons { position: relative; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === DIFFERENTIATOR BOX === */
.diff-box {
  border: 1px solid rgba(74,144,164,0.3); background: rgba(74,144,164,0.05);
  border-radius: 12px; padding: 2rem; text-align: center; max-width: 700px; margin: 0 auto;
}
.diff-box h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.diff-box p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* === FORMS === */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(168,168,168,0.5); }
.form-textarea { resize: none; min-height: 140px; }

/* === STICKY CTA BAR === */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 4vw;
  background: rgba(10,10,10,0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(100%); transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta p { font-size: 0.9rem; color: var(--muted); }
.sticky-cta p strong { color: var(--text); }
@media (max-width: 600px) { .sticky-cta p { display: none; } .sticky-cta { justify-content: center; } }

/* === FOOTER === */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 4rem 4vw 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem; max-width: 400px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--muted); font-size: 0.75rem; }
.footer-bottom a { color: var(--muted); font-size: 0.75rem; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* === PAGE HERO === */
.page-hero { padding: 10rem 4vw 4rem; }
.page-hero.centered { text-align: center; }
.page-hero .eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 1.25rem; max-width: 800px; }
.page-hero.centered h1 { margin-left: auto; margin-right: auto; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.page-hero.centered p { margin-left: auto; margin-right: auto; }

/* === UTILITY === */
.bg-surface { background: var(--surface); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.italic { font-style: italic; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
