/* ===========================================================
   Equibyte Technologies — shared stylesheet
   Dark, professional, qase.io-inspired. Brand blue + violet.
   =========================================================== */

:root {
  --bg: #080b16;
  --bg-2: #0b1020;
  --surface: #10162b;
  --surface-2: #141d38;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eaeefb;
  --muted: #9aa6c4;
  --muted-2: #6f7c9c;
  --brand: #3b82f6;        /* logo blue */
  --brand-2: #6d5cf7;      /* violet */
  --brand-3: #22d3ee;      /* cyan highlight */
  --good: #34d399;
  --bad: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* page-wide ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(620px 420px at 78% -8%, rgba(109, 92, 247, 0.18), transparent 60%),
    radial-gradient(720px 520px at 12% 0%, rgba(59, 130, 246, 0.16), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; }

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

.section { padding: 96px 0; position: relative; z-index: 1; }
.section-sm { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-3);
  margin-bottom: 16px;
  font-weight: 600;
}

.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.gradient-text {
  background: linear-gradient(100deg, #ffffff 10%, #bcd0ff 45%, var(--brand) 75%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(109, 92, 247, 0.45); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 22, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand img { height: 28px; width: auto; flex-shrink: 0; display: block; }
.brand .b-name { display: inline-flex; align-items: baseline; gap: 6px; }
.brand .b-sub { color: var(--muted-2); font-weight: 400; font-size: 13px; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; position: relative; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 22px; }
.hero .lead { font-size: 20px; max-width: 600px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: var(--muted-2); font-size: 13px; }

/* ---------- Dashboard mockup ---------- */
.dash {
  margin-top: 64px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20,29,56,0.9), rgba(11,16,32,0.95));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.dash-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3552; }
.dash-bar .dot.r { background: #ff5f57; } .dash-bar .dot.y { background: #febc2e; } .dash-bar .dot.g { background: #28c840; }
.dash-bar .dash-title { margin-left: 12px; font-size: 13px; color: var(--muted); font-family: var(--font-head); }
.dash-bar .live { margin-left: auto; font-size: 12px; color: var(--good); display: flex; align-items: center; gap: 6px; }
.dash-bar .live::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.dash-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; background: var(--border); }
.dash-pane { background: var(--bg-2); padding: 22px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.kpi .k-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.kpi .k-val { font-family: var(--font-head); font-size: 24px; font-weight: 600; margin-top: 6px; }
.kpi .k-delta { font-size: 12px; margin-top: 4px; }
.k-delta.up { color: var(--good); } .k-delta.down { color: var(--bad); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 10px; }
.bars .bar { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand), rgba(59,130,246,0.25)); }
.seg-title { font-size: 13px; color: var(--muted); margin-bottom: 14px; font-family: var(--font-head); }
.seg { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.seg:last-child { border-bottom: 0; }
.seg .tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.tag.green { background: rgba(52,211,153,0.14); color: var(--good); }
.tag.amber { background: rgba(254,188,46,0.14); color: #fbbf24; }
.tag.red { background: rgba(248,113,113,0.14); color: var(--bad); }

/* ---------- Logos / trust strip ---------- */
.trust { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust p { text-align: center; color: var(--muted-2); font-size: 13px; letter-spacing: .04em; margin-bottom: 22px; text-transform: uppercase; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chip {
  font-family: var(--font-head); font-size: 14px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px;
  background: rgba(255,255,255,0.02);
}

/* ---------- Section heading ---------- */
.shead { max-width: 720px; margin-bottom: 48px; }
.shead.center { margin-left: auto; margin-right: auto; }
.shead h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }

/* ---------- Bento / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); margin-bottom: 18px;
  font-size: 22px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { color: var(--muted); font-size: 14px; margin: 14px 0 0; padding-left: 18px; }
.card ul li { margin-bottom: 6px; }
.card-link { display: inline-block; margin-top: 16px; color: var(--brand-3); font-size: 14px; font-family: var(--font-head); }

.feature-tag { position: absolute; top: 18px; right: 18px; font-size: 11px; color: var(--brand-3); border: 1px solid rgba(34,211,238,0.3); border-radius: 999px; padding: 3px 10px; background: rgba(34,211,238,0.08); }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .col { border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); }
.compare .col.without { background: rgba(248,113,113,0.04); }
.compare .col.with { background: rgba(52,211,153,0.05); border-color: rgba(52,211,153,0.2); }
.compare h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.compare .col.without h4 { color: var(--bad); } .compare .col.with h4 { color: var(--good); }
.compare .row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.compare .row:first-of-type { border-top: 0; }
.compare .mk { flex: 0 0 auto; font-weight: 700; }
.compare .without .mk { color: var(--bad); } .compare .with .mk { color: var(--good); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 12px; }
.stat .big { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); font-weight: 600;
  background: linear-gradient(100deg, #fff, var(--brand)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .cap { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.step .num { font-family: var(--font-head); color: var(--brand-3); font-size: 14px; margin-bottom: 12px; }
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--bg-2); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-head); font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-3); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border-strong); border-radius: 24px; padding: 56px;
  background: radial-gradient(600px 300px at 80% 10%, rgba(109,92,247,0.25), transparent),
              linear-gradient(180deg, var(--surface-2), var(--bg-2));
  text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 28px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-family: var(--font-head); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 15px; transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field textarea { min-height: 120px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.contact-info .info-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info .info-item .ii { font-size: 20px; }
.contact-info h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info p { color: var(--muted); font-size: 14px; }
.toast { display: none; margin-top: 16px; padding: 14px; border-radius: 10px; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: var(--good); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-grid h5 { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 16px; }
.foot-grid a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.foot-grid a:hover { color: var(--text); }
.foot-about p { color: var(--muted); font-size: 14px; max-width: 300px; margin-top: 14px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 72px 0 36px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 16px; }
.breadcrumb { color: var(--muted-2); font-size: 13px; margin-bottom: 18px; font-family: var(--font-head); }

/* split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.split:last-child { margin-bottom: 0; }
.split.rev .split-text { order: 2; }
.split-text h3 { font-size: 26px; margin-bottom: 14px; }
.split-text p { color: var(--muted); margin-bottom: 14px; }
.split-text ul { color: var(--muted); padding-left: 20px; }
.split-text ul li { margin-bottom: 8px; }
.split-visual { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* code-ish flow visual */
.flow { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.flow .line { display: flex; gap: 10px; padding: 8px 0; color: var(--muted); }
.flow .line .pill { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; color: var(--text); }
.flow .arrow { color: var(--brand-3); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
  .split, .split.rev .split-text { grid-template-columns: 1fr; order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { gap: 12px; height: 64px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; margin-left: auto; line-height: 1; }
  .brand { font-size: 16px; }
  .brand img { height: 26px; }
  .brand .b-sub { display: none; }              /* hide "Technologies" subtext to keep one tidy line */
  .nav-cta { margin-left: 0; gap: 8px; }
  .nav-cta .btn-ghost { display: none; }         /* secondary CTA lives in the menu on mobile */
  .nav-cta .btn-primary { padding: 9px 16px; font-size: 14px; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-2); padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 16px; z-index: 60;
  }
  .grid-2, .grid-4, .compare, .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 36px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .page-hero { padding: 48px 0 28px; }
  .dash-bar .dash-title { font-size: 12px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
}
