/* ===========================================================
   SmartBiz Technologies — shared design system
   =========================================================== */

:root {
  --bg: #0A0E0C;
  --card: #121D17;
  --card-alt: #0E1611;
  --lime: #7ED957;
  --lime-dim: #5FAE40;
  --mint: #39FF88;
  --text: #FFFFFF;
  --sub: #B8D9C4;
  --muted: #8FA89A;
  --line: #223028;
  --purple-blob: #0B2E1C;
  --blue-blob: #124A2C;
  --green-blob: #1C7A45;

  --font-display: 'Poppins', 'Arial', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1140px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-weight: 800; }

p { margin: 0 0 1em; }

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 14px;
  display: block;
}

.section {
  padding: 88px 0;
  position: relative;
}
.section--tight { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.4em; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary,
.nav-links a.btn--primary,
.footer-col a.btn--primary {
  background: var(--lime);
  color: #000000;
}
.btn--primary:hover { background: #8fe36b; color: #000000; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--sub);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--lime); text-decoration: none; }
.nav-links a.active { color: var(--lime); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero blobs (signature device) ---------- */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.blob--purple { background: var(--purple-blob); }
.blob--blue { background: var(--blue-blob); }
.blob--green { background: var(--green-blob); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
}
.hero .blobs {
  right: -10%;
  top: -30%;
  width: 60%;
  height: 140%;
  left: auto;
}
.hero .blob--purple { width: 480px; height: 480px; top: -160px; right: -140px; }
.hero .blob--blue { width: 340px; height: 340px; top: -80px; right: -20px; }
.hero .blob--green { width: 210px; height: 210px; top: 20px; right: 60px; }

.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 0.35em; }
.hero .lede { font-size: 1.2rem; color: var(--sub); margin-bottom: 0.6em; }
.hero .tagline { color: var(--lime); font-style: italic; font-size: 1.05rem; margin-bottom: 2em; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.stat-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--mint); line-height: 1; margin-bottom: 6px; }
.stat .label { font-size: 0.95rem; color: var(--muted); max-width: 170px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card--accent { background: var(--card); border-color: var(--lime); }

.icon-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.icon-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}
.sector-icon { flex-shrink: 0; width: 32px; height: 32px; color: var(--lime); stroke-width: 1.75; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Problem cards ---------- */
.problem-card { display: flex; flex-direction: column; gap: 16px; }
.problem-card .icon-num { margin-bottom: 4px; }
.problem-card h3 { font-size: 1.08rem; margin: 0; }
.problem-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Offer rows ---------- */
.offer-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
}
.offer-row:nth-child(odd) { background: var(--card-alt); }
.offer-row:nth-child(even) { background: var(--card); }
.offer-row .num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--mint); }
.offer-row h3 { font-size: 1.02rem; margin: 0; }
.offer-row p { color: var(--muted); font-size: 0.9rem; margin: 0; }
@media (max-width: 760px) {
  .offer-row { grid-template-columns: 1fr; }
  .offer-row .num { font-size: 1.2rem; }
}

/* ---------- Pills / tags ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  border: 1px solid var(--lime);
  background: var(--card);
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ---------- Table ---------- */
.compare-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; }
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 600; color: var(--text); }
.compare-table thead th { background: var(--card); color: var(--text); font-family: var(--font-display); font-weight: 700; }
.compare-table thead th:last-child { color: var(--lime); }
.compare-table tbody tr:nth-child(odd) { background: var(--card-alt); }
.compare-table td:last-child { color: var(--mint); font-weight: 600; }
.compare-table td, .compare-table th { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-scroll .compare-table { border-radius: 0; }

/* ---------- Sector cards ---------- */
.sector-card { display: flex; flex-direction: column; gap: 14px; }
.sector-card h3 { font-size: 1.02rem; margin: 0; }
.sector-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ---------- Steps ---------- */
.step-card { text-align: left; }
.step-card.is-active { background: var(--card); border-color: var(--lime); }
.step-card .icon-num { margin-bottom: 20px; }
.step-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step-card .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.step-card .tag { color: var(--mint); font-style: italic; font-size: 0.85rem; }
.step-card.is-active .tag { color: var(--mint); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 64px 48px;
  background: var(--card-alt);
  border: 1px solid var(--line);
  text-align: center;
}
.cta-banner .blobs { right: -10%; top: -50%; }
.cta-banner .blob--purple { width: 320px; height: 320px; top: -100px; right: 10%; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.3em; }
.cta-banner p { color: var(--sub); margin-bottom: 1.8em; position: relative; z-index: 1; }
.cta-banner .hero-ctas { justify-content: center; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--sub); font-size: 0.92rem; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .blobs { right: -15%; top: -60%; }
.page-hero .blob--purple { width: 360px; height: 360px; top: -140px; right: -60px; }
.page-hero .blob--blue { width: 260px; height: 260px; top: -60px; right: 20px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); max-width: 700px; }
.page-hero p { color: var(--sub); font-size: 1.08rem; max-width: 600px; margin: 0; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 8px; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--lime); outline: none; }
.form-field textarea { resize: vertical; min-height: 130px; }
.honeypot {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-info-card .row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-card .row:last-child { margin-bottom: 0; }
.contact-info-card .row .sector-icon { margin-top: 2px; width: 26px; height: 26px; }
.contact-info-card .row h4 { color: var(--text); font-size: 0.95rem; margin: 0 0 4px; font-family: var(--font-display); }
.contact-info-card .row p, .contact-info-card .row a { margin: 0; font-size: 0.92rem; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
