/* ── QUANTBIT SERVICES — SHARED DESIGN SYSTEM ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #0F1F3D;
  --navy2: #162B52;
  --teal: #00C9A7;
  --teal-d: #00A88C;
  --amber: #F59E0B;
  --slate: #475569;
  --slate-l: #94A3B8;
  --bg: #F8FAFB;
  --bg2: #EEF2F7;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --radius: 8px;
  --radius-lg: 14px;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
  --shadow: 0 1px 3px rgba(15, 31, 61, .06), 0 4px 16px rgba(15, 31, 61, .08);
  --shadow-lg: 0 8px 32px rgba(15, 31, 61, .12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--slate);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── GLOBAL TYPOGRAPHY ────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -.015em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--slate);
  line-height: 1.7;
}

a {
  color: #94a3b8;
  text-decoration: none;
}

a:hover {
  color: var(--teal-d);
}

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 56px 0;
}

.section-lg {
  padding: 112px 0;
}

.label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}

.nav-logo span {
  color: #94a3b8;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  font-weight: 500;
  transition: color .15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: #94a3b8;
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: .825rem !important;
  transition: background .15s !important;
}

.nav-cta:hover {
  background: var(--teal-d) !important;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #0D3B6E 100%);
  overflow: hidden;
  position: relative;
  padding: 96px 0 80px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 201, 167, .12);
  border: 1px solid rgba(0, 201, 167, .25);
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '◆';
  font-size: .5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: #94a3b8;
}

.hero-desc {
  color: rgba(255, 255, 255, .7);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #94a3b8;
  color: var(--navy);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary:hover {
  background: var(--teal-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 201, 167, .35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: all .2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .06);
}

/* ── CODE CARD (hero right panel) ────────────────────────────────────────── */
.code-card {
  background: #0A1628;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-card-bar {
  background: #111E35;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cc-dot.r {
  background: #FF5F57;
}

.cc-dot.y {
  background: #FFBD2E;
}

.cc-dot.g {
  background: #28CA41;
}

.cc-file {
  font-family: var(--mono);
  font-size: .7rem;
  color: rgba(255, 255, 255, .4);
  margin-left: auto;
}

.code-card pre {
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.6;
  padding: 20px;
  color: #A8B4CC;
  overflow: hidden;
}

.cc-key {
  color: #7EC8E3;
}

.cc-str {
  color: #98D982;
}

.cc-num {
  color: #F0A04B;
}

.cc-bool {
  color: #C084FC;
}

.cc-comment {
  color: #4A5568;
}

/* ── TRUST STRIP ──────────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .825rem;
  font-weight: 500;
  color: var(--slate);
}

.trust-icon {
  font-size: 1.1rem;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ── WHAT WE OFFER GRID ───────────────────────────────────────────────────── */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.offer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #94a3b8, var(--amber));
  opacity: 0;
  transition: opacity .2s;
}

.offer-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.offer-card:hover::before {
  opacity: 1;
}

.offer-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 201, 167, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.offer-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.offer-card p {
  font-size: .875rem;
  color: var(--slate-l);
  line-height: 1.6;
}

/* ── EXPERTISE RAIL ───────────────────────────────────────────────────────── */
.expertise-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.expertise-rail {
  position: sticky;
  top: 80px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--white);
}

.rail-title {
  font-family: var(--mono);
  font-size: .65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .825rem;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  transition: color .15s;
}

.rail-item:last-child {
  border-bottom: none;
}

.rail-item:hover,
.rail-item.active {
  color: #94a3b8;
}

.rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  flex-shrink: 0;
}

.rail-item.active .rail-dot {
  background: #94a3b8;
}

.expertise-panels {}

.exp-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
}

.exp-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.exp-panel p {
  font-size: .9rem;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 201, 167, .08);
  color: #94a3b8;
  border: 1px solid rgba(0, 201, 167, .2);
}

/* ── PROCESS STEPS ────────────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.process-step::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 700;
}

.process-step:last-child::after {
  display: none;
}

.step-num {
  font-family: var(--mono);
  font-size: .7rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: .95rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: .825rem;
  color: var(--slate-l);
}

/* ── STATS ROW ────────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.stat-item {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
}

.stat-num span {
  color: #94a3b8;
}

.stat-label {
  font-size: .8rem;
  color: var(--slate-l);
  margin-top: 6px;
}

/* ── FAQ / TERMINAL ACCORDION ─────────────────────────────────────────────── */
.faq-section {
  background: var(--navy);
  padding: 80px 0;
}

.faq-section h2 {
  color: #5a5a5a;
}

.faq-terminal {
  margin-top: 40px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, .03);
  transition: background .15s;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(22, 21, 21, 0.85);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
}

.faq-question:hover {
  background: rgba(255, 255, 255, .06);
}

.faq-prompt {
  font-family: var(--mono);
  color: #94a3b8;
  flex-shrink: 0;
  font-size: .85rem;
  margin-top: 1px;
}

.faq-q-text {
  flex: 1;
}

.faq-chevron {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform .2s;
  font-size: 1rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px 44px;
  font-size: .875rem;
  color: rgba(18, 17, 17, 0.6);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── CTA BAND ─────────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #c1daf9 0%, #d9e3f5 100%);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(15, 31, 61, .7);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
  border: none;
  cursor: pointer;
}

.btn-dark:hover {
  background: var(--navy2);
  transform: translateY(-1px);
}

/* ── CERTIFICATION BAND ───────────────────────────────────────────────────── */
.cert-band {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.cert-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.cert-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-l);
  white-space: nowrap;
}

.cert-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
}

.cert-badge .cb-icon {
  color: #94a3b8;
  font-size: 1rem;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .5);
  padding: 32px 0;
  text-align: center;
  font-size: .8rem;
}

.site-footer a {
  color: #94a3b8;
}

/* ── SERVICE PAGE NAV STRIP ───────────────────────────────────────────────── */
.service-nav-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 57px;
  z-index: 90;
}

  .service-nav-inner {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  align-items: center;
}

.sn-link {
  padding: 14px 20px;
  font-size: .825rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}

.sn-link:hover {
  color: var(--navy);
}

.sn-link.active {
    color: #0A1628;
    background: #eef4ff;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    font-weight: 600;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .code-card {
    display: none;
  }

  .offer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .expertise-layout {
    grid-template-columns: 1fr;
  }

  .expertise-rail {
    position: static;
  }
}

@media (max-width: 600px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step::after {
    display: none;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }
}

/* 
 */
.distillery-demo-btn {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
  transition: all 0.3s ease;
  border: none;
}

.distillery-demo-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.distillery-demo-btn:visited,
.distillery-demo-btn:focus,
.distillery-demo-btn:active {
  color: #fff;
  text-decoration: none;
}