/* ============================================================
   Binary — Design System
   Clean, light SaaS aesthetic
   ============================================================ */

:root {
  /* Color */
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --bg-muted: #eef1f6;
  --surface: #ffffff;
  --border: #e6e8ee;
  --border-strong: #d5d9e2;

  --text: #0f1729;
  --text-muted: #5b6478;
  --text-soft: #838da0;

  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef0fe;
  --accent: #06b6d4;

  --success: #10b981;
  --warning: #f59e0b;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius & shadow */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.04), 0 1px 3px rgba(15, 23, 41, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 41, 0.06), 0 2px 4px rgba(15, 23, 41, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 41, 0.14);

  /* Layout */
  --maxw: 1140px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; position: relative; min-height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; color: var(--text-muted); }

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }

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

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

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; }
.text-center { text-align: center; }
.center-x { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-muted); }

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; }

.bg-subtle { background: var(--bg-subtle); }
.bg-muted { background: var(--bg-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow); }

.btn-outline { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-white { background:#fff; color: var(--primary); }
.btn-white:hover { background:#f2f2ff; color: var(--primary-dark); }

.btn-row { display:flex; gap: 0.9rem; flex-wrap: wrap; }
.btn-row.center { justify-content:center; }

/* ---------- Navbar ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--text); background: var(--bg-muted); }
.nav-links a.active { color: var(--primary); }
.nav-cta { display:flex; align-items:center; gap: 0.6rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(79,70,229,0.10), transparent 60%),
    radial-gradient(50% 45% at 5% 10%, rgba(6,182,212,0.08), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { margin-bottom: 2rem; }
.badge-pill {
  display:inline-flex; align-items:center; gap:0.5rem;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 0.82rem; font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.hero-visual {
  background: linear-gradient(160deg, #fff, var(--bg-subtle));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.mock-bar { display:flex; gap:6px; margin-bottom: 16px; }
.mock-bar i { width:11px; height:11px; border-radius:50%; background: var(--border-strong); display:block; }
.mock-row { display:flex; align-items:center; gap: 12px; padding: 12px 14px; border:1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background:#fff; }
.mock-ico { width:34px; height:34px; border-radius:9px; background: var(--primary-soft); flex:none; }
.mock-line { height: 9px; border-radius: 6px; background: var(--bg-muted); }
.mock-stat { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-top: 4px; }
.mock-stat div { background:#fff; border:1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.mock-stat b { font-size: 1.4rem; color: var(--text); display:block; }
.mock-stat span { font-size: 0.72rem; color: var(--text-muted); }

/* ---------- Logos strip ---------- */
.logos { padding: 40px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.logos p { text-align:center; font-size:0.82rem; letter-spacing:0.08em; text-transform:uppercase; color: var(--text-soft); margin-bottom: 22px; }
.logo-row { display:flex; flex-wrap:wrap; justify-content:center; gap: 44px; align-items:center; opacity:0.7; }
.logo-row span { font-weight:800; font-size:1.15rem; color: var(--text-muted); letter-spacing:-0.02em; }

/* ---------- Feature / cards grid ---------- */
.grid { display: grid; gap: 24px; }
.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: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.97rem; }

.feature-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: 18px;
}
.feature-ico svg { width: 24px; height: 24px; }

/* ---------- Stats band ---------- */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align:center; }
.stats .num { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: var(--text); letter-spacing:-0.03em; }
.stats .num span { color: var(--primary); }
.stats .lbl { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Split feature ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border:1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(160deg,#fff,var(--bg-subtle));
  box-shadow: var(--shadow); padding: 26px; min-height: 280px;
}
.check-list { list-style:none; margin: 1.4rem 0 0; padding: 0; }
.check-list li { display:flex; gap: 0.7rem; align-items:flex-start; margin-bottom: 0.9rem; color: var(--text-muted); }
.check-list .tick {
  flex:none; width:22px; height:22px; border-radius:50%;
  background: var(--primary-soft); color: var(--primary);
  display:flex; align-items:center; justify-content:center; font-size: 0.8rem; margin-top: 2px;
}

/* ---------- Pricing ---------- */
.price-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items:stretch; }
.price-card {
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; display:flex; flex-direction:column;
}
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); position:relative; }
.price-card.featured::after {
  content:"Most popular"; position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background: var(--primary); color:#fff; font-size:0.72rem; font-weight:600;
  padding: 0.3rem 0.8rem; border-radius: 999px; letter-spacing:0.03em;
}
.price-card h3 { margin-bottom: 0.3rem; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--text); letter-spacing:-0.03em; margin: 0.4rem 0; }
.price span { font-size: 1rem; font-weight:500; color: var(--text-muted); }
.price-card .btn { width:100%; margin-top: auto; }
.price-features { list-style:none; padding:0; margin: 1.4rem 0; }
.price-features li { padding: 0.5rem 0; color: var(--text-muted); font-size: 0.95rem; border-bottom:1px solid var(--border); display:flex; gap:0.5rem; }
.price-features li:last-child { border-bottom:none; }

/* ---------- Testimonial ---------- */
.quote {
  max-width: 780px; margin: 0 auto; text-align:center;
}
.quote blockquote { font-size: clamp(1.3rem,2.6vw,1.7rem); font-weight: 600; color: var(--text); line-height:1.4; letter-spacing:-0.02em; margin: 0 0 1.6rem; }
.quote .who { display:flex; align-items:center; justify-content:center; gap: 0.8rem; }
.avatar { width:46px; height:46px; border-radius:50%; background: linear-gradient(135deg,var(--primary),var(--accent)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.quote .who b { display:block; color: var(--text); }
.quote .who small { color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), #6d5ef0);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align:center;
  color:#fff;
  position:relative; overflow:hidden;
}
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 80% at 80% 0%, rgba(255,255,255,0.15), transparent 60%); }
.cta-band h2 { color:#fff; position:relative; }
.cta-band p { color: rgba(255,255,255,0.9); position:relative; max-width:560px; margin: 0 auto 2rem; font-size:1.1rem; }
.cta-band .btn-row { position:relative; }

/* ---------- Team ---------- */
.team-card { text-align:center; }
.team-avatar {
  width: 96px; height:96px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-soft), #dbeafe);
  color: var(--primary-dark); display:flex; align-items:center; justify-content:center;
  font-size: 1.8rem; font-weight: 700;
}
.team-card b { display:block; color: var(--text); }
.team-card small { color: var(--text-muted); }

/* ---------- Values ---------- */
.value-num { font-size: 0.85rem; font-weight:700; color: var(--primary); margin-bottom: 0.6rem; }

/* ---------- Forms ---------- */
.form-wrap { display:grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items:start; }
.form-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display:block; font-weight:600; font-size:0.9rem; margin-bottom: 0.4rem; color: var(--text); }
.field input, .field textarea, .field select {
  width:100%; font-family:inherit; font-size:0.98rem; color: var(--text);
  padding: 0.75rem 0.9rem; border:1px solid var(--border-strong); border-radius: var(--radius-sm);
  background:#fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline:none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--text-soft); }
.contact-detail { display:flex; gap: 1rem; align-items:flex-start; margin-bottom: 1.6rem; }
.contact-detail .ci { flex:none; width:44px; height:44px; border-radius:12px; background: var(--primary-soft); color: var(--primary); display:flex; align-items:center; justify-content:center; }
.contact-detail b { display:block; color: var(--text); }
.contact-detail span { color: var(--text-muted); font-size: 0.95rem; }
.alert-success {
  background: #ecfdf5; border:1px solid #a7f3d0; color:#065f46;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight:500;
}
.text-danger { color:#dc2626; font-size:0.85rem; }

/* ---------- Page header ---------- */
.page-head { padding: 72px 0 40px; text-align:center; background: linear-gradient(180deg, var(--bg-subtle), #fff); border-bottom:1px solid var(--border); }
.page-head h1 { margin-bottom: 0.6rem; }
.page-head p { font-size: 1.15rem; max-width: 620px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #cbd2e0; padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .brand { color:#fff; margin-bottom: 1rem; }
.site-footer .brand:hover { color:#fff; }
.footer-about { color:#9aa4b8; font-size:0.95rem; max-width: 300px; }
.footer-col h4 { color:#fff; font-size:0.9rem; letter-spacing:0.04em; text-transform:uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color:#9aa4b8; font-size:0.95rem; }
.footer-col a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding-top: 24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap: 1rem; font-size:0.88rem; color:#9aa4b8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .form-wrap { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .grid-4, .price-grid, .stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-links, .nav-cta .btn-outline { display:none; }
  .nav-toggle { display:block; }
  .nav-links.open {
    display:flex; flex-direction:column; align-items:stretch;
    position:absolute; top:70px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--border);
    padding: 12px 24px 20px; gap: 2px; box-shadow: var(--shadow);
  }
  .grid-2, .grid-3, .grid-4, .price-grid, .stats, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

/* ---------- Brand logo (header) ---------- */
.brand-logo { height: 40px; width: auto; display: block; flex: none; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); }
.brand-name strong { font-weight: 800; color: var(--primary); }
@media (max-width: 640px) {
  .brand-logo { height: 34px; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------- Illustrations ---------- */
.hero-img { width: 100%; height: auto; display: block; }
.media-img { width: 100%; height: auto; display: block; }
.sector-illustration { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.sector-illustration img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(160deg,#fff,var(--bg-subtle)); box-shadow: var(--shadow); }
.sector-illustration.reverse .si-media { order: 2; }
@media (max-width: 900px) { .sector-illustration { grid-template-columns: 1fr; gap: 24px; } .sector-illustration.reverse .si-media { order: 0; } }

/* ---------- Stats dashboard ---------- */
.stat-big { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; margin: 0.2rem 0; }

/* ---------- Demo wizard ---------- */
.wizard-progress { display: flex; gap: 8px; margin-bottom: 24px; }
.wstep-dot { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-muted); transition: background .2s ease; }
.wstep-dot.done { background: var(--primary); }
.wizard-title { margin-bottom: 1.2rem; }
.wizard.js-on .wizard-step { display: none; }
.wizard.js-on .wizard-step.active { display: block; }
.wizard:not(.js-on) .wizard-progress { display: none; }
.wizard:not(.js-on) .wizard-step + .wizard-step { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.wizard-nav { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.wizard-nav .w-submit { flex: 1; }
.wizard.js-on .wizard-nav .w-next { flex: 1; }
.wizard:not(.js-on) .wizard-nav .w-back,
.wizard:not(.js-on) .wizard-nav .w-next { display: none; }

/* ---------- Consent banner ---------- */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--text); color: #cbd2e0; box-shadow: 0 -4px 20px rgba(0,0,0,.18); }
.consent-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 14px 24px; flex-wrap: wrap; }
.consent-inner p { margin: 0; font-size: 0.9rem; color: #cbd2e0; }
.consent-inner a { color: #fff; text-decoration: underline; }
.consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
@media (max-width: 640px) { .consent-inner { justify-content: center; text-align: center; } }


/* ---------- Module composition chips ---------- */
.mod-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 0.6rem; }
.mod-chip { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; font-size: 0.85rem; padding: 0.35rem 0.7rem; border-radius: 999px; }
.mod-chip.mod-core { background: var(--primary); color: #fff; }
.mod-plus { color: var(--text-soft); font-weight: 700; }
