/* ==========================================================================
   Sync340B — Design tokens
   ========================================================================== */
:root {
  --bg: #000000;
  --surface: #111111;
  --surface-raised: #161616;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #ff6b00;
  --accent-light: #ff8a3d;
  --accent-deep: #2b1006;
  --accent-wash: rgba(255, 107, 0, 0.08);
  --accent-border: rgba(255, 107, 0, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #a6a6a6;
  --text-tertiary: #6e6e6e;

  --muted-icon: #5a5a5a;

  --font-display: "Michroma", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --section-py: 7rem;
  --radius-md: 10px;
  --radius-lg: 16px;
}

@media (max-width: 720px) {
  :root {
    --section-py: 4rem;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-deep);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 18px;
}

.section-lead {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 16px;
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Halo ring (signature visual)
   ========================================================================== */
.halo-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.halo-stage svg {
  width: 100%;
  height: 100%;
  max-width: 1100px;
}
.halo-stage.spin svg {
  animation: halo-spin 120s linear infinite;
  transform-origin: 250px 250px;
}
@keyframes halo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.brand-mark {
  width: 26px;
  height: 26px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
}
.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0 22px;
  border-top: 1px solid var(--border-subtle);
}
.nav-links-mobile.open { display: flex; }
.nav-links-mobile a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-links-mobile a:last-of-type { border-bottom: none; }
.nav-links-mobile a.active { color: var(--accent); }
.nav-links-mobile .btn { margin-top: 10px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .btn--secondary { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--accent);
  color: #1a0900;
}
.btn--primary:hover { background: var(--accent-light); }
.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--secondary:hover { border-color: var(--accent-border); background: var(--accent-wash); }
.btn--ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
  height: 42px;
  padding: 0 20px;
}
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.18;
  letter-spacing: 0.005em;
}
.hero-title .accent-text { color: var(--accent); }
.hero-sub {
  margin: 26px auto 0;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 17px;
}
.hero .btn-row { justify-content: center; margin-top: 38px; }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  padding: 38px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-label {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.trust-tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ==========================================================================
   Generic section
   ========================================================================== */
.section {
  position: relative;
  padding: var(--section-py) 0;
}
.section--bordered { border-bottom: 1px solid var(--border-subtle); }
.section--surface { background: var(--surface); }

/* ==========================================================================
   About / split layout
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-visual svg { width: 88%; }
.split p + p { margin-top: 18px; }
.split-text p { color: var(--text-secondary); font-size: 16px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-visual { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ==========================================================================
   Capability / impact / tech cards
   ========================================================================== */
.grid {
  display: grid;
  gap: 20px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 18px; height: 18px; }
.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.card-text {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Comparison (Why Sync340B / Why not a TPA)
   ========================================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
}
.compare-col {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-subtle);
}
.compare-col--off {
  background: var(--surface);
}
.compare-col--on {
  background: linear-gradient(180deg, var(--accent-wash), transparent 60%), var(--surface);
  border-color: var(--accent-border);
  position: relative;
}
.compare-col--on::before {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.compare-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.compare-col--on .compare-kicker { color: var(--accent-light); }
.compare-heading {
  font-size: 19px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 24px;
}
.compare-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 14.5px;
  color: var(--text-secondary);
}
.compare-list li:first-child { border-top: none; padding-top: 0; }
.compare-col--on .compare-list li { color: var(--text-primary); }
.compare-icon { flex-shrink: 0; margin-top: 2px; }
.compare-icon svg { width: 16px; height: 16px; }
.compare-col--off .compare-icon { color: var(--muted-icon); }
.compare-col--on .compare-icon { color: var(--accent); }

/* ==========================================================================
   Implementation steps (real sequence)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--border-strong);
}
.step { position: relative; padding: 0 20px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.step-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-text { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .step { padding: 0; }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-final {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  text-align: center;
}
.cta-final-inner { position: relative; z-index: 1; }
.cta-final .section-title { margin-top: 0; }
.cta-final .section-lead { margin: 18px auto 0; }
.cta-final .btn-row { justify-content: center; margin-top: 36px; }

/* ==========================================================================
   Modules grid (product page)
   ========================================================================== */
.module-row {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
}
.module-row:first-child { border-top: none; padding-top: 0; }
.module-name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.module-name span {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-primary);
  margin-top: 10px;
  letter-spacing: 0;
}
.module-desc { color: var(--text-secondary); font-size: 15px; max-width: 560px; }

@media (max-width: 760px) {
  .module-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   Closing line block (Why not a TPA)
   ========================================================================== */
.closing-line {
  text-align: center;
  max-width: 720px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}
.closing-line p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.5;
  color: var(--text-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 36px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand { max-width: 320px; }
.footer-brand p {
  color: var(--text-tertiary);
  font-size: 13.5px;
  margin-top: 14px;
}
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Page hero (secondary pages)
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-hero .section-title { margin-top: 18px; font-size: clamp(30px, 4.6vw, 46px); }
.page-hero .section-lead { margin: 18px auto 0; font-size: 17px; }

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}
