/* ============================================================
   Nous Innovation — design system
   ============================================================ */

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --bg-deep: #0b0f1f;
  --border: #e6e8f0;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --violet: #7c3aed;
  --accent: #06b6d4;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(79,70,229,.10), rgba(6,182,212,.10));
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 45px -20px rgba(15, 23, 42, .25);
  --shadow-sm: 0 8px 20px -10px rgba(15, 23, 42, .18);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(79,70,229,.08);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(79,70,229,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(79,70,229,.6); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-dark {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
}
.btn-dark:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 16px -6px rgba(79,70,229,.5);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: all .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  color: #fff;
  padding: 110px 0 130px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px circle at 15% 15%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(600px circle at 85% 30%, rgba(6,182,212,.28), transparent 55%),
    radial-gradient(900px circle at 50% 100%, rgba(79,70,229,.4), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent 75%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; }
.hero .eyebrow { background: rgba(255,255,255,.1); color: #c7d2fe; }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: .4em;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: rgba(255,255,255,.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2em;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 760px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 32px;
}
.hero-stats .num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}
.hero-stats .label { font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- section basics ---------- */
section { padding: 100px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin: 0 0 48px; text-align: left; }
.section-head p { font-size: 1.05rem; }
.bg-soft { background: var(--bg-soft); }
.bg-deep { background: var(--bg-deep); color: #fff; }
.bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep p { color: rgba(255,255,255,.68); }

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(79,70,229,.25);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.card p { font-size: .95rem; margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- feature list / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.check-list .ico {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  margin-top: 2px;
}
.check-list h4 { margin-bottom: .2em; font-size: 1rem; }
.check-list p { margin: 0; font-size: .92rem; }

.panel {
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px circle at 80% 0%, rgba(6,182,212,.3), transparent 60%),
              radial-gradient(500px circle at 0% 100%, rgba(124,58,237,.35), transparent 60%);
}
.panel > * { position: relative; z-index: 1; }
.panel .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 20px; }
.panel .stat .num { font-size: 2.1rem; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; }
.panel .stat .label { color: rgba(255,255,255,.65); font-size: .85rem; }

/* ---------- timeline / values ---------- */
.value-card { text-align: center; padding: 28px 20px; }
.value-card .card-icon { margin: 0 auto 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 64px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="2" cy="2" r="1.6" fill="white" opacity="0.25"/></svg>');
  background-size: 26px 26px;
  opacity: .5;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-text { max-width: 520px; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .card-icon { margin-bottom: 0; width: 46px; height: 46px; font-size: 1.1rem; }
.info-row h4 { margin-bottom: .2em; font-size: .95rem; }
.info-row p { margin: 0; font-size: .92rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,.7);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color .2s ease; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 300px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 12px;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.social-row a:hover { background: var(--gradient); border-color: transparent; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: var(--bg-deep);
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at 20% 20%, rgba(124,58,237,.35), transparent 60%),
              radial-gradient(600px circle at 80% 40%, rgba(6,182,212,.3), transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); max-width: 640px; }
.page-hero p { color: rgba(255,255,255,.7); max-width: 560px; font-size: 1.05rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { position: fixed; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 24px 28px; gap: 18px; border-bottom: 1px solid var(--border); transform: translateY(-130%); opacity: 0; transition: all .25s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary.desktop-only { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .hero { padding: 70px 0 90px; }
  .cta-band { padding: 40px; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   Quote form
   ============================================================ */

.qf-shell {
  max-width: 760px;
  margin: -70px auto 0;
  position: relative;
  z-index: 3;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 44px;
}

.qf-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.qf-step-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.qf-step-dot .circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex: none;
  transition: all .25s ease;
}
.qf-step-dot .label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.qf-step-dot.done .circle { background: var(--gradient); border-color: transparent; color: #fff; }
.qf-step-dot.active .circle { border-color: var(--primary); color: var(--primary); background: #fff; }
.qf-step-dot.active .label, .qf-step-dot.done .label { color: var(--ink); }
.qf-step-line { flex: none; width: 40px; height: 2px; background: var(--border); }
.qf-step-line.done { background: var(--gradient); }

.qf-panel { display: none; }
.qf-panel.active { display: block; animation: qfFade .35s ease; }
@keyframes qfFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.qf-panel h2 { font-size: 1.4rem; margin-bottom: .2em; }
.qf-panel > p.qf-sub { margin-bottom: 28px; }

.qf-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.qf-cat {
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}
.qf-cat:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.qf-cat.selected { border-color: var(--primary); background: var(--gradient-soft); }
.qf-cat .ic { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; }
.qf-cat .lbl { font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.3; }

.qf-field { margin-bottom: 20px; }
.qf-field label.qf-label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.qf-field .qf-hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.qf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.qf-input, .qf-select, .qf-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.qf-input:focus, .qf-select:focus, .qf-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.qf-textarea { resize: vertical; min-height: 100px; }

.qf-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qf-check {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.qf-check:hover { border-color: var(--primary); }
.qf-check input { accent-color: var(--primary); width: 16px; height: 16px; }
.qf-check.checked { border-color: var(--primary); background: var(--gradient-soft); }

.qf-recap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.qf-recap .ic { color: var(--primary); }

.qf-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 14px; }
.qf-actions .btn { min-width: 120px; }
.qf-hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

.qf-error { color: #dc2626; font-size: .88rem; margin-top: 14px; display: none; }
.qf-error.show { display: block; }

.qf-success { display: none; text-align: center; padding: 20px 0; }
.qf-success.active { display: block; }
.qf-success .ic {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}
.qf-success h2 { margin-bottom: .3em; }
.qf-success p { max-width: 420px; margin: 0 auto 28px; }

@media (max-width: 760px) {
  .qf-shell { margin-top: -50px; padding: 28px 22px; border-radius: var(--radius); }
  .qf-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .qf-row-2, .qf-check-grid { grid-template-columns: 1fr; }
  .qf-step-dot .label { display: none; }
  .qf-steps { gap: 6px; }
}
