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

/* ============================================================
   TOKENS — Framer-style: near-pure black, one blue glow accent,
   huge tight bold headlines, bordered dark panels, no cards-with-shadow.
   ============================================================ */
:root {
  --bg: #000000;
  --panel: #0A0A0A;
  --panel-2: #121212;
  --panel-hover: #161616;

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);

  --text: #F5F5F5;
  --text-dim: #9A9A9A;
  --text-faint: #7A7A7A;

  --blue: #3B82F6;
  --blue-glow: rgba(59, 130, 246, 0.35);
  --blue-tint: rgba(59, 130, 246, 0.10);

  --success: #34D399;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --font: 'Golos Text', sans-serif;

  --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);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
}
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(--blue); outline-offset: 2px; }

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

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 {
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.5;
  max-width: 520px;
}

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-secondary:hover { background: var(--panel-2); }
.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(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  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.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), #1D4ED8);
  display: inline-block;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-links a.active { color: var(--text); background: var(--panel-2); }
.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: 100px;
  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: #000;
}
.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(--blue); }
.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-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 780px;
}
.hero h1 .dim { color: var(--text-faint); }
.hero-stat { font-size: 14px; color: var(--text-faint); text-align: right; white-space: nowrap; }
.hero-stat b { color: var(--text-dim); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; margin: 28px 0 48px; flex-wrap: wrap; }

/* --- hero visual: bordered glow panel --- */
.hero-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background:
    radial-gradient(ellipse 700px 400px at 20% 0%, var(--blue-glow), transparent 60%),
    var(--panel);
  padding: 56px var(--pad) 0;
  overflow: hidden;
  position: relative;
}
.hero-panel-inner { max-width: var(--max); margin: 0 auto; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; margin-bottom: -1px; }
.flow-cell { background: var(--panel); padding: 20px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; }
.flow-cell .fc-label { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.flow-cell .fc-body { font-size: 14px; color: var(--text-dim); margin-top: 10px; }
.flow-cell.node { align-items: center; justify-content: center; }
.flow-cell.node .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px var(--blue-tint);
}
.flow-cell.node span { margin-top: 10px; font-size: 13px; color: var(--text-dim); }
@media (max-width: 800px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   BENTO SERVICES
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bento-cell {
  grid-column: span 2;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--panel);
  padding: 26px;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-cell:hover { border-color: var(--border-strong); background: var(--panel-2); }
.bento-cell.small { grid-column: span 1; min-height: 148px; }
.bento-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: auto;
}
.bento-icon svg { width: 16px; height: 16px; }
.bento-cell h3 { font-weight: 600; font-size: 16px; margin-top: 16px; letter-spacing: -0.01em; }
.bento-cell p { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.45; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell { grid-column: span 2; }
  .bento-cell.small { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-cell, .bento-cell.small { grid-column: span 1; }
}

.svc-category { margin-top: 48px; }
.svc-category:first-child { margin-top: 0; }
.svc-cat-label { font-size: 13px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 16px; }

/* ============================================================
   WHY — big stat panel + reason grid
   ============================================================ */
.why-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--panel);
  padding: 44px;
  margin-bottom: 16px;
}
.why-thesis {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 820px;
}
.why-thesis .struck { color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--text-faint); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--panel);
  padding: 22px;
}
.why-item .why-num { font-size: 13px; color: var(--blue); font-weight: 600; }
.why-item h3 { font-weight: 600; font-size: 15px; margin-top: 10px; }
.why-item p { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; 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: 13px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.stack-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-pill {
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  cursor: default;
  position: relative;
}
.stack-pill:hover { border-color: var(--border-strong); color: var(--text); background: var(--panel-2); }
.stack-pill .tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 10px;
  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 — Framer style: no cards, thin column dividers
   ============================================================ */
.price-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
@media (max-width: 800px) { .price-cols { grid-template-columns: 1fr; border-top: none; } }
.price-col {
  padding: 28px 26px;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.price-col:first-child { border-left: none; }
@media (max-width: 800px) {
  .price-col { border-left: none; border-top: 1px solid var(--border); }
  .price-col:first-child { border-top: none; }
}
.price-tag { font-size: 12.5px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.price-name { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.price-desc { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; min-height: 34px; }
.price-amount { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin-top: 20px; }
.price-support { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.price-feats { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.price-feat { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-dim); }
.price-feat svg { flex-shrink: 0; margin-top: 2px; width: 14px; height: 14px; color: var(--success); }
.price-feat.off { color: var(--text-faint); }
.price-feat.off svg { color: var(--text-faint); opacity: 0.5; }
.price-col .btn { margin-top: 24px; width: 100%; justify-content: center; }
.pricing-note { margin-top: 20px; font-size: 13px; color: var(--text-faint); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 740px; }
.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: 22px 0;
  text-align: left;
}
.faq-q .num { font-size: 13px; color: var(--text-faint); }
.faq-q .q { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.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(--blue); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 0 22px 44px; font-size: 14.5px; color: var(--text-dim); line-height: 1.6; max-width: 580px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--panel); border-top: 1px solid var(--border); }
.footer-cross {
  padding: 24px 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;
  color: var(--text-dim);
  gap: 16px;
}
.footer-cross b { color: var(--text); font-weight: 600; }
.footer-cross a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); 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: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.6);
  transition: opacity 0.15s ease;
}
.floating-contact:hover { opacity: 0.85; }
.floating-contact svg { width: 22px; height: 22px; }

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

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