@import url('./fonts.css');

/* ============================================================
   TOKENS — strict corporate: white/gray/navy-blue, one accent,
   no decorative type, uniform grids over editorial asymmetry.
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --bg-subtle: #F7F8FA;
  --surface: #FFFFFF;

  --border: #E3E7ED;
  --border-strong: #C7CDD6;

  --text: #101828;
  --text-dim: #475467;
  --text-faint: #667085;

  --accent: #1D4ED8;
  --accent-dark: #1E3A8A;
  --accent-tint: #EFF4FF;

  --success: #16A34A;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;

  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
  --pad: 32px;
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--accent); display: block; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 {
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.section-head p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 16px;
  max-width: 520px;
}

section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }
.bg-subtle { background: var(--bg-subtle); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { border-color: var(--border-strong); color: var(--text); background: #fff; }
.btn-secondary:hover { border-color: var(--text-dim); background: var(--bg-subtle); }
.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .mark { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); display: inline-block; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav .btn { padding: 9px 18px; font-size: 14px; }
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-strong);
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ''; display: block; width: 16px; height: 1.5px; background: var(--text);
  position: relative; transition: all 0.2s ease;
}
.nav-burger span::before { position: absolute; top: -5px; }
.nav-burger span::after { position: absolute; top: 5px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { top: 0; transform: rotate(45deg); }
.nav-burger.open span::after { top: 0; transform: rotate(-45deg); }

.mob-menu {
  display: none;
  flex-direction: column;
  padding: 8px var(--pad) 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.mob-menu a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.mob-menu a.active { color: var(--accent); }
.mob-menu.open { display: flex; }

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

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 64px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.stat-bar {
  border-top: 1px solid var(--border);
  padding: 0;
}
.stat-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-bar-item {
  padding: 22px 24px;
  border-left: 1px solid var(--border);
  text-align: center;
}
.stat-bar-item:first-child { border-left: none; padding-left: 0; }
.stat-bar-item b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.stat-bar-item span { font-size: 13px; color: var(--text-faint); margin-top: 2px; display: block; }
@media (max-width: 640px) {
  .stat-bar-inner { grid-template-columns: 1fr; }
  .stat-bar-item { border-left: none; border-top: 1px solid var(--border); text-align: left; padding: 16px 0; }
  .stat-bar-item:first-child { border-top: none; }
}

/* --- hero visual: before / after comparison panel --- */
.compare-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px -30px rgba(16,24,40,0.18);
}
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; }
.compare-col { padding: 24px 22px; }
.compare-col.before { background: var(--bg-subtle); border-right: 1px solid var(--border); }
.compare-col.after { background: #fff; }
.compare-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.compare-col.after .compare-label { color: var(--accent); }
.compare-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row .ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--border-strong); }
.compare-col.after .compare-row { color: var(--text); font-weight: 500; }
.compare-col.after .compare-row .ico { color: var(--success); }
.compare-footer {
  grid-column: 1 / -1;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--accent-tint);
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   SERVICES — uniform grid, no per-category color coding
   ============================================================ */
.svc-category { margin-bottom: 56px; }
.svc-category:last-child { margin-bottom: 0; }
.svc-cat-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.svc-cat-title { font-weight: 700; font-size: 18px; }
.svc-cat-desc { margin-left: auto; font-size: 13px; color: var(--text-faint); display: none; }
@media (min-width: 720px) { .svc-cat-desc { display: block; } }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 22px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.svc-card:hover { border-color: var(--border-strong); box-shadow: 0 8px 24px -16px rgba(16,24,40,0.15); }
.svc-card h3 { font-weight: 600; font-size: 15.5px; margin-top: 14px; }
.svc-card p { margin-top: 7px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.svc-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle);
  color: var(--accent);
  border: 1px solid var(--border);
}
.svc-icon svg { width: 15px; height: 15px; }

/* ============================================================
   WHY — plain two-column, bordered reason boxes
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }
.why-thesis {
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text);
}
.why-thesis .struck { color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }
.why-item { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 18px; background: #fff; }
.why-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.why-item h3 { font-weight: 600; font-size: 14.5px; margin-top: 8px; }
.why-item p { margin-top: 6px; font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ============================================================
   STACK
   ============================================================ */
.stack-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .stack-groups { grid-template-columns: 1fr; gap: 28px; } }
.stack-group-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 12px;
}
.stack-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-pill {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-dim);
  cursor: default;
  position: relative;
}
.stack-pill:hover { border-color: var(--border-strong); color: var(--text); }
.stack-pill .tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}
.stack-pill:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   PRICING — comparison table
   ============================================================ */
.price-table { border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; background: #fff; }
.price-table-scroll { overflow-x: auto; }
table.pricing { width: 100%; border-collapse: collapse; min-width: 640px; }
table.pricing th, table.pricing td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--border); }
table.pricing thead th { border-bottom: 1px solid var(--border); vertical-align: top; }
table.pricing tbody tr:last-child td { border-bottom: none; }
table.pricing .feat-col { color: var(--text-dim); font-size: 14px; width: 30%; }
.plan-col { width: 23.3%; }
.plan-col.featured { background: var(--accent-tint); }
.plan-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.plan-name { font-weight: 700; font-size: 17px; }
.plan-desc { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; min-height: 32px; }
.plan-price { font-family: var(--font-mono); font-size: 19px; font-weight: 500; margin-top: 14px; color: var(--text); }
.plan-support { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.plan-col .btn { margin-top: 16px; width: 100%; justify-content: center; }
table.pricing tbody td.plan-col { text-align: center; font-size: 15px; }
table.pricing .check { color: var(--success); font-weight: 700; }
table.pricing .dash { color: var(--border-strong); }
.pricing-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

@media (max-width: 720px) {
  table.pricing .feat-col {
    position: sticky;
    left: 0;
    background: #fff;
    box-shadow: 4px 0 8px -6px rgba(16,24,40,0.15);
  }
  table.pricing thead .feat-col { background: #fff; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  text-align: left;
}
.faq-q .num { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.faq-q .q { font-weight: 600; font-size: 15.5px; }
.faq-q .chev { transition: transform 0.2s ease; color: var(--text-faint); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-item.open .faq-q .q { color: var(--accent); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 0 20px 44px; font-size: 14px; color: var(--text-dim); line-height: 1.6; max-width: 560px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg-subtle); border-top: 1px solid var(--border); }
.footer-cross {
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 14px;
  gap: 16px;
}
.footer-cross b { font-weight: 700; }
.footer-cross a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.footer-cross a:hover .btn-arrow { transform: translateX(3px); }
.footer-main {
  padding: 32px var(--pad) 28px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-weight: 700; font-size: 15px; }
.footer-tag { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--text-faint); }
.footer-links a { color: var(--text-faint); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 620px) {
  .footer-cross { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FLOATING CONTACT
   ============================================================ */
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-m);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(29,78,216,0.5);
  transition: background 0.15s ease;
}
.floating-contact:hover { background: var(--accent-dark); }
.floating-contact svg { width: 22px; height: 22px; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
