/* ============================================================
   ORBYTE — design tokens (Apple-inspired: type-led, generous
   white space, rounded card system, one red accent)
   ============================================================ */

:root {
  --navy: #0B1E4D;
  --navy-deep: #071433;
  --text-70: rgba(11, 30, 77, 0.72);
  --text-50: rgba(11, 30, 77, 0.5);
  --white: #FFFFFF;
  --gray: #F3F6FC;
  --gray-deep: #E9EFFB;
  --royal: #0050FE;
  --royal-dark: #0040CC;
  --sky: #00B4FE;
  --cyan: #06DFDA;
  --brand-gradient: linear-gradient(100deg, var(--navy) 0%, var(--royal) 45%, var(--sky) 75%, var(--cyan) 100%);
  --line: #DCE4F5;
  --muted: #5B6B8C;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1200px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 650; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; color: var(--text-70); max-width: 62ch; }

.lede {
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--text-70);
  max-width: 40ch;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--royal);
  letter-spacing: -0.005em;
}

.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-gradient);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.chop-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.primary a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 450;
  color: var(--text-70);
  padding: 4px 0;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

/* Selector intentionally matches/beats "nav.primary a" (element+class vs
   element+element+class) so every property below actually wins the
   cascade — a bare ".nav-cta" rule was losing padding, font-size,
   font-weight, text-decoration and white-space to that rule silently. */
nav.primary a.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 6px 12px;
  line-height: 1;
  border-radius: 0;
  background: var(--royal);
  color: var(--white);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
nav.primary a.nav-cta:hover {
  background: var(--royal-dark);
  color: var(--white);
}
nav.primary a.nav-cta:active { transform: scale(0.97); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  line-height: 1;
  border-radius: 980px;
  font-size: 0.85rem;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--royal);
  color: var(--white);
}
.btn-primary:hover { background: var(--royal-dark); }

/* Nav links' own color rule is more specific than .btn-primary alone
   (nav.primary a beats .btn-primary on element count), so it was
   silently overriding the button's white text. Pin it explicitly. */
nav.primary a.btn-primary,
nav.primary a.btn-primary:hover {
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.btn-line {
  background: transparent;
  color: var(--royal);
  border-radius: 0;
  padding: 0;
  font-weight: 600;
}
.btn-line:hover { color: var(--royal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav.primary { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open nav.primary {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 22px 24px;
  }
  .site-header.nav-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
  }
  .site-header.nav-open nav.primary a { padding: 12px 0; width: 100%; }
  .site-header.nav-open nav.primary a.nav-cta {
    margin-left: 0;
    margin-top: 14px;
    padding: 6px 12px;
    justify-content: center;
  }
}

/* ---------- Sections ---------- */

section { padding: 120px 0; }
section.tight { padding: 84px 0; }
.border-t { border-top: none; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 660px;
  margin: 0 auto 64px;
}
.section-head h2 { max-width: 18ch; }
.section-head p { margin: 0 auto; }

.rule { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 150px 0 110px;
  text-align: center;
  background: var(--gray);
}

.hero .wrap { max-width: 900px; }
.hero.hero-wide .wrap { max-width: var(--max); }

.hero h1 { margin-top: 18px; }
.hero .lede { margin: 22px auto 0; max-width: 44ch; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
  text-align: left;
}
.hero-grid .lede,
.hero-grid .hero-actions { margin-left: 0; justify-content: flex-start; }
.hero-grid .stamp-panel { margin: 0; max-width: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.stamp-panel {
  border: none;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -30px rgba(11,11,12,0.18);
  position: relative;
  max-width: 720px;
  margin: 56px auto 0;
  text-align: left;
}
.stamp-panel::before { content: none; }

.big-chop {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  font-weight: 650;
  font-size: 0.82rem;
  line-height: 1.25;
  margin-bottom: 24px;
}

.stat-row {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 20px;
  background: none;
  border: none;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
}

.cell {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cell:hover { box-shadow: 0 20px 40px -24px rgba(11,11,12,0.18); }
.cell h3 { margin-bottom: 10px; }
.cell p { margin-top: 8px; }
.cell .tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--royal);
  font-weight: 600;
  margin-bottom: 14px;
}

ul.plain { list-style: none; margin: 16px 0 0; padding: 0; }
ul.plain li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--text-70);
}
ul.plain li:first-child { border-top: none; }

/* ---------- Ledger / comparison rows ---------- */

.ledger { border-top: none; }
.ledger-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: none;
}
@media (max-width: 700px) { .ledger-row { grid-template-columns: 1fr; } }
.ledger-row > div {
  padding: 30px 28px;
  background: var(--gray);
  border-radius: var(--radius);
}
.ledger-row > div + div { border-left: none; padding-left: 28px; }

/* ---------- Numbered step sequences (e.g. hiring flow) ---------- */

.phase {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 32px;
  background: var(--gray);
  border-radius: var(--radius);
  margin-bottom: 18px;
  border-top: none;
}
.phase:last-child { border-bottom: none; margin-bottom: 0; }
.phase-num {
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--royal);
}
.phase-tag { font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; margin-bottom: 6px; display: block; }
@media (max-width: 600px) { .phase { grid-template-columns: 1fr; gap: 10px; padding: 26px; } }

/* ---------- Pricing ---------- */

.price-card {
  border: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card h3 { margin-bottom: 6px; }
.price-card .model-name { font-size: 0.78rem; font-weight: 650; color: var(--royal); margin-bottom: 10px; display: block; }
.price-card p { flex-grow: 1; }

/* ---------- FAQ ---------- */

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 26px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 1.12rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.faq-q .plus { font-size: 1.3rem; color: var(--royal); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 4px 26px; max-width: 68ch; }
.faq-a p { color: var(--text-70); }

/* ---------- Forms ---------- */

form.contact-form { max-width: 100%; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--royal);
  outline-offset: 1px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy-deep);
  color: var(--white);
  padding: 100px 0;
  border-radius: 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.65); }
.cta-band .section-head { margin-bottom: 0; }
.cta-band .btn-ghost { border-color: var(--white); color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--navy); }
.cta-band .btn-primary { background: var(--royal); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--gray);
  border-top: none;
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.01em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; font-size: 0.9rem; color: var(--text-70); }
.footer-grid a:hover { color: var(--royal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
