/* ============================================================
   BSD Consulting — enterprise SaaS theme
   Single shared stylesheet for all pages.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* brand */
  --indigo: #1155ff;
  --violet: #00c2ff;
  --brand-grad: linear-gradient(135deg, #1155ff 0%, #00c2ff 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(17,85,255,.12), rgba(0,194,255,.12));

  /* ink & surfaces */
  --ink: #0b1d3a;
  --ink-2: #10294d;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;

  /* semantic */
  --bg: var(--white);
  --bg-alt: #f2f4f7;
  --text: var(--slate-700);
  --heading: var(--slate-900);
  --muted: var(--slate-500);
  --border: var(--slate-200);
  --accent: var(--indigo);

  /* shape & motion */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg: 0 24px 48px -12px rgba(15,23,42,.18);
  --shadow-glow: 0 20px 60px -20px rgba(17,85,255,.55);
  --ring: 0 0 0 4px rgba(17,85,255,.18);

  --container: 1160px;
  --nav-h: 84px;
  --ease: cubic-bezier(.4, 0, .2, 1);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.bg-alt { background: var(--bg-alt); }
.bg-ink { background: var(--ink); color: var(--slate-300); }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: var(--slate-400); }
.bg-ink .tick-list li { color: #cbd5e1; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-grad); border-radius: 2px; }
.bg-ink .eyebrow { color: #7db8ff; }

.section-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-top: 14px; }
.bg-ink .section-head p { color: var(--slate-400); }

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -18px rgba(17,85,255,.7); }
.btn-ghost { background: var(--white); color: var(--heading); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--slate-300); box-shadow: var(--shadow-md); }
.btn-light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--indigo);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; color: var(--heading); font-size: 1.12rem; letter-spacing: -.02em; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; overflow: hidden;
}
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-top: 1px; }
.brand-logo { height: 52px; width: auto; display: block; }
.footer .brand { display: inline-block; margin-bottom: 18px; }
.footer .brand-logo { height: 64px; }
@media (max-width: 600px) { .brand-logo { height: 42px; } .footer .brand-logo { height: 52px; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-weight: 500; font-size: .97rem; color: var(--slate-600);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: var(--heading); background: var(--slate-100); }
.nav-links a.active { color: var(--indigo); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(72px, 11vw, 132px) 0 clamp(72px, 10vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 15% 0%, rgba(17,85,255,.34), transparent 60%),
    radial-gradient(50% 60% at 100% 20%, rgba(0,194,255,.30), transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: .82rem; font-weight: 500; color: #e2e8f0; margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #cbd5e1; max-width: 60ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; color: #94a3b8; font-size: .92rem; }
.hero-meta b { color: #fff; }

/* ---------- Logo / trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust p { text-align: center; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; }
.trust-row span { font-weight: 700; color: var(--slate-400); font-size: 1.05rem; letter-spacing: -.01em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 12px; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .tick-list { margin-top: 16px; }

.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-grad-soft); color: var(--indigo); margin-bottom: 20px;
}
.icon svg { width: 26px; height: 26px; }

.card-link {
  display: block; color: inherit;
}
.card-link .more { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; color: var(--indigo); font-weight: 600; font-size: .95rem; }
.card-link .more svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.card-link:hover .more svg { transform: translateX(4px); }

/* tick list */
.tick-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-600); font-size: .97rem; padding: 5px 0; }
.tick-list li svg { width: 20px; height: 20px; flex: none; color: var(--indigo); margin-top: 1px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media {
  border-radius: var(--radius-lg); background: var(--brand-grad); padding: 2px; box-shadow: var(--shadow-lg);
}
.split-media .inner {
  background: var(--ink); border-radius: calc(var(--radius-lg) - 2px); padding: 28px; color: #cbd5e1; min-height: 300px;
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
}
.split h2 { margin-bottom: 16px; }
.split p { color: var(--muted); }
.split .tick-list { margin-top: 22px; }

/* mock terminal / code panel used inside split media */
.panel-row { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.panel-row .k { color: #7db8ff; font-weight: 600; }
.panel-dots { display: flex; gap: 6px; margin-bottom: 6px; }
.panel-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.2); }
.panel-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.10); }
.panel-bar.grad { background: var(--brand-grad); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 800; color: var(--indigo); box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 72px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(0,194,255,.4), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; max-width: 55ch; margin: 14px auto 30px; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 7vw, 88px); }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 70% at 20% 0%, rgba(17,85,255,.30), transparent 60%), radial-gradient(45% 60% at 100% 10%, rgba(0,194,255,.26), transparent 55%); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 18ch; }
.page-head p { color: #cbd5e1; font-size: 1.15rem; max-width: 60ch; margin-top: 18px; }
.crumbs { color: #94a3b8; font-size: .9rem; margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }

/* ---------- Service detail rows ---------- */
.svc { scroll-margin-top: calc(var(--nav-h) + 20px); }
.svc + .svc { margin-top: clamp(48px, 7vw, 88px); }

/* ---------- Values / about ---------- */
.value { display: flex; gap: 16px; align-items: flex-start; }
.value .icon { margin-bottom: 0; width: 46px; height: 46px; border-radius: 12px; }
.value h3 { font-size: 1.08rem; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: .97rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--heading); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--heading);
  padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon { margin-bottom: 0; width: 44px; height: 44px; flex: none; }
.contact-item .l { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact-item .v { color: var(--heading); font-weight: 600; }
.form-success { display: none; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(52,211,153,.12); border: 1px solid rgba(16,185,129,.35); color: #047857; font-weight: 500; margin-bottom: 18px; }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--slate-400); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand small { color: var(--slate-500); }
.footer-about { font-size: .95rem; color: var(--slate-400); max-width: 34ch; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--slate-400); font-size: .95rem; transition: color .15s var(--ease); }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: var(--slate-400); transition: all .15s var(--ease); }
.socials a:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--slate-500); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open + .mobile-menu, .mobile-menu.show { display: block; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: 16px 24px 24px;
}
.mobile-menu a { display: block; padding: 14px 4px; font-weight: 500; color: var(--slate-700); border-bottom: 1px solid var(--slate-100); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { width: 100%; margin-top: 16px; }
body.nav-open { overflow: hidden; }

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