/* Quotiveo — shared stylesheet
   Pure CSS, no build step. */

:root {
  --navy: #0a1428;
  --navy-2: #0e1c38;
  --navy-3: #14264a;
  --paper: #f7f6f1;
  --white: #ffffff;
  --ink: #101a2e;
  --muted: #5b6474;
  --line: #e4e1d8;
  --accent: #0bb8d6;
  --accent-ink: #031730;
  --teal: #0bb8d6;
  --coral: #ff6b4a;
  --amber: #f5a524;
  --radius: 16px;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 20px 50px -20px rgba(10, 20, 40, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }

.wrap {
  width: min(1160px, 100% - 3rem);
  margin: 0 auto;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.nav-links a.nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-links a.nav-link.active { color: var(--accent); }

/* dropdown */
.has-dropdown > a.nav-link::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 0.35em;
  opacity: 0.7;
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  display: none;
  box-shadow: var(--shadow);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.dropdown a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.dropdown a small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(201, 242, 78, 0.5); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(201, 242, 78, 0.14), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(45, 212, 191, 0.12), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(800px 500px at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  margin-bottom: 1.1rem;
}
.hero h1 .accent { color: var(--accent); }
.lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
}
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* RFQ card mock */
.rfq-card {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.rfq-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid #eee;
}
.rfq-id { font-family: var(--font-display); font-weight: 700; }
.pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill-ready { background: #e2f8d8; color: #2c7a1b; }
.pill-review { background: #fff1d6; color: #9a6200; }
.pill-missing { background: #ffe3da; color: #b23c1a; }
.rfq-route {
  padding: 1rem 1.3rem 0.4rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.rfq-route span { color: var(--muted); font-weight: 400; font-size: 1rem; margin: 0 0.5rem; }
.rfq-fields { padding: 0.6rem 1.3rem 1.1rem; display: grid; gap: 0.55rem; }
.rfq-field {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.88rem;
  padding: 0.5rem 0.65rem;
  background: var(--paper);
  border-radius: 10px;
}
.rfq-field .k { color: var(--muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; }
.rfq-field .v { font-weight: 600; }
.conf { font-size: 0.72rem; font-weight: 700; color: #2c7a1b; background: #e2f8d8; padding: 0.15rem 0.5rem; border-radius: 999px; }
.conf.warn { color: #9a6200; background: #fff1d6; }
.rfq-source {
  padding: 0 1.3rem 1.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.rfq-source code {
  font-family: var(--font-mono);
  background: #eef0f4;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.74rem;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.tight { padding: 3.5rem 0; }
.section.dark { background: var(--navy); color: #fff; }
.section.white { background: #fff; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section.dark .section-head p, .section.dark .lede { color: rgba(255,255,255,0.72); }
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7a1f;
  margin-bottom: 0.8rem;
}
.section.dark .kicker { color: var(--accent); }

/* workflow steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.step .tag {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--navy);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--navy);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.card a.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.section.dark .card { background: var(--navy-2); border-color: rgba(255,255,255,0.1); }
.section.dark .card p { color: rgba(255,255,255,0.65); }
.section.dark .card a.card-link { color: #fff; }

/* code */
.code-block {
  background: var(--navy-2);
  color: #dbe4f3;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.1);
}
.code-block .cm { color: #7d8aa3; }
.code-block .hl { color: var(--accent); }

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.stat {
  border-top: 3px solid var(--accent);
  padding-top: 1.1rem;
}
.stat .n { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.stat p { color: var(--muted); font-size: 0.92rem; margin: 0.3rem 0 0; }
.section.dark .stat p { color: rgba(255,255,255,0.65); }

/* principle band */
.principle {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 22px;
  padding: 2.6rem 2.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.8rem;
  align-items: center;
}
.principle .big { font-size: 2.6rem; }
.principle h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.principle p { margin: 0; font-weight: 500; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(201,242,78,0.16), transparent 60%),
    var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 3.5rem 3rem;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 38rem; margin: 0 auto 1.8rem; }

/* footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { max-width: 22rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* inner page hero */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 400px at 20% 0%, #000 20%, transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 16em; }
.page-hero .lede { max-width: 40rem; }
.crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 1.2rem; }
.crumbs a { color: rgba(255,255,255,0.75); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row h3 { font-size: 1.4rem; }
.feature-row p, .feature-row li { color: var(--muted); }
.feature-row ul { padding-left: 1.2rem; margin: 0 0 1em; display: grid; gap: 0.45rem; }
.demo-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.demo-panel h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }

/* conflict example */
.conflict {
  border: 1px solid #f3c1ae;
  background: #fff7f3;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
}
.conflict .warn-line { font-weight: 700; color: #b23c1a; margin-bottom: 0.5rem; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.6rem; }
.vs div { background: #fff; border: 1px solid #f0d9cd; border-radius: 8px; padding: 0.6rem 0.8rem; }
.vs .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
table.data th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--paper); }
table.data tr:last-child td { border-bottom: 0; }
table.data code { font-family: var(--font-mono); font-size: 0.82rem; background: #eef0f4; padding: 0.15rem 0.45rem; border-radius: 6px; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.checklist li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.9rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.checklist .tick {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #e2f8d8;
  color: #2c7a1b;
  display: grid; place-items: center;
  font-weight: 800;
}
.checklist p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--muted); }
.checklist strong { font-size: 1rem; }

/* faq */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.8rem;
}
.faq summary { font-weight: 600; cursor: pointer; font-family: var(--font-display); }
.faq details p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.94rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.brief-box {
  background: var(--navy-2);
  color: #dbe4f3;
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.brief-box pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0 0 1.2rem;
  max-height: 320px;
  overflow-y: auto;
}
.brief-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .split, .feature-row, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .principle { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-2);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.2rem 1.2rem;
    gap: 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .dropdown { position: static; display: block; border: 0; background: transparent; box-shadow: none; padding: 0 0 0 1rem; }
  .nav { position: relative; flex-wrap: wrap; }
  .nav .btn { margin-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .cta-band { padding: 2.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
