:root {
  --accent: #6d28d9;
  --ink: #1b1a45;
  --body: #26243f;
  --muted: #5d5a76;
  --bg: #fbfafc;
  --border: #ece9f3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }
img { display: block; }

@keyframes floatUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.page { min-height: 100vh; overflow-x: hidden; }

/* Fonts */
.font-display { font-family: 'Spectral', Georgia, serif; }
h1, h2, h3,
.step .num,
.modern-name,
.dash-head .t {
  font-family: 'Spectral', Georgia, serif;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 252, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 65px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 600; color: #4b4866; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-size: 15px; font-weight: 700; color: #fff; background: var(--accent);
  padding: 11px 22px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(109, 40, 217, 0.55);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(109, 40, 217, 0.7); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink); line-height: 0;
}
.nav-mobile { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile {
    display: none; flex-direction: column; gap: 4px;
    padding: 8px 32px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(251, 250, 252, 0.97);
    backdrop-filter: saturate(180%) blur(14px);
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a {
    font-size: 16px; font-weight: 600; color: #4b4866;
    padding: 10px 0; border-bottom: 1px solid var(--border);
  }
  .nav-mobile a:last-child { border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(140deg, #14143b 0%, #241653 42%, #5b1f9e 78%, #7c2fb5 100%);
}
.hero-feather {
  position: absolute; right: -180px; top: -60px; height: 760px; width: auto;
  opacity: 0.05; pointer-events: none; transform: rotate(-6deg);
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 78% 12%, rgba(168, 85, 247, 0.28), transparent 60%);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 108px 32px 116px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #d9c9ff; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 28px; white-space: nowrap;
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #c4a3ff; flex: none; }
.hero h1 {
  font-weight: 600; font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04; letter-spacing: -0.015em; margin-bottom: 24px; max-width: 760px;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: #d6cfe8;
  max-width: 600px; margin-bottom: 38px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-primary-light {
  font-size: 16px; font-weight: 700; color: #1a1140; background: #fff;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.5); transition: transform .2s;
}
.btn-primary-light:hover { transform: translateY(-2px); }
.btn-outline-light {
  font-size: 16px; font-weight: 600; color: #fff; padding: 15px 28px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28); transition: background .2s;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
.legacy-strip { margin-top: 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.legacy-strip .label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #b9aed4; margin-right: 6px;
}
.legacy-chip {
  font-size: 14px; font-weight: 700; color: #efe9fb;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 16px; border-radius: 10px;
}

/* rotating hero slides */
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.hero-slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity .6s ease;
}
.hero-dots { display: flex; gap: 10px; margin-top: 44px; }
.hero-dot {
  width: 11px; height: 11px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.3); transition: background .2s, transform .2s;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.55); }
.hero-dot.is-active { background: #fff; transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .01s; }
}

/* ---------- Section heads ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 {
  font-weight: 600; font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1; letter-spacing: -0.01em; color: var(--ink);
}

/* ---------- Services ---------- */
.services { max-width: 1200px; margin: 0 auto; padding: 104px 32px 36px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -24px rgba(91, 33, 182, 0.4); border-color: #ddd4ee;
}
.icon-chip {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #2a1b63, #6d28d9);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: #fff;
}
.card h3 { font-weight: 600; font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.62; color: var(--muted); }
.card-cta {
  background: linear-gradient(150deg, #1f1652, #5b1f9e); border-radius: 18px; padding: 30px 28px;
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .2s;
}
.card-cta:hover { transform: translateY(-4px); }
.card-cta h3 { font-weight: 600; font-size: 22px; margin-bottom: 10px; }
.card-cta p { font-size: 15px; line-height: 1.62; color: #dcd2f2; }
.card-cta a {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: #fff;
}

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 {
  font-weight: 600; font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 20px;
}
.split p.lead { font-size: 16px; line-height: 1.65; color: var(--muted); margin-bottom: 28px; }

.migrations { max-width: 1200px; margin: 0 auto; padding: 80px 32px; }
.checks { display: flex; flex-direction: column; gap: 16px; }
.check { display: flex; gap: 14px; align-items: flex-start; }
.check .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #efe7fc; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; margin-top: 1px;
}
.check p { font-size: 15px; line-height: 1.6; color: #3f3c5a; }
.check p strong { color: var(--ink); }

/* before/after */
.beforeafter { position: relative; }
.legacy-window {
  background: #dfe2e8; border: 1px solid #c3c8d2; border-radius: 10px;
  box-shadow: 0 10px 30px -16px rgba(20, 20, 50, 0.35); overflow: hidden; max-width: 380px;
}
.legacy-bar {
  background: linear-gradient(#f4f5f7, #dfe2e8); border-bottom: 1px solid #c3c8d2;
  padding: 6px 10px; display: flex; align-items: center; gap: 7px;
}
.legacy-btn { width: 11px; height: 11px; border-radius: 2px; background: #b8bdc8; border: 1px solid #a4aab6; }
.legacy-title { font-family: 'Courier New', monospace; font-size: 11px; color: #6a6f7a; margin-left: 6px; }
.legacy-body { padding: 14px; font-family: 'Courier New', monospace; font-size: 11.5px; color: #3a3f4a; background: #eef0f3; }
.legacy-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.legacy-grid .k { color: #7a7f8a; }
.legacy-grid .v { background: #fff; border: 1px solid #c3c8d2; padding: 2px 6px; }
.legacy-foot { margin-top: 12px; color: #9aa0ab; border-top: 1px dashed #c3c8d2; padding-top: 8px; }
.ba-arrow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 10px 26px -8px rgba(109, 40, 217, 0.7);
}
.modern-card {
  margin-top: -26px; margin-left: auto; width: 88%; background: #fff;
  border: 1px solid #e7e3f1; border-radius: 16px;
  box-shadow: 0 30px 60px -28px rgba(40, 20, 90, 0.5); overflow: hidden;
}
.modern-head {
  background: linear-gradient(120deg, #221555, #5b1f9e); padding: 13px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.modern-head .t { color: #fff; font-weight: 700; font-size: 14px; }
.modern-head .s { color: #d9c9ff; font-size: 12px; }
.modern-body { padding: 18px; }
.modern-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modern-name { font-size: 19px; font-weight: 600; color: var(--ink); }
.modern-sub { font-size: 12.5px; color: #8b88a3; }
.pill-active { font-size: 12px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 5px 11px; border-radius: 999px; }
.modern-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-tile { background: #f7f5fc; border-radius: 10px; padding: 12px 14px; }
.stat-tile .k { font-size: 11px; color: #8b88a3; font-weight: 600; letter-spacing: .04em; }
.stat-tile .v { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 3px; }

/* ---------- Dashboards ---------- */
.dashboards { background: #f4f1fa; border-top: 1px solid #ece6f6; border-bottom: 1px solid #ece6f6; }
.dashboards .inner { max-width: 1200px; margin: 0 auto; padding: 88px 32px; }
.dash-card { background: #fff; border: 1px solid #e7e3f1; border-radius: 18px; box-shadow: 0 30px 70px -34px rgba(40, 20, 90, 0.5); overflow: hidden; }
.dash-head { padding: 18px 22px; border-bottom: 1px solid #f0edf7; display: flex; align-items: center; justify-content: space-between; }
.dash-head .t { font-weight: 600; font-size: 17px; color: var(--ink); }
.dash-head .pill { font-size: 12px; color: #8b88a3; background: #f4f1fa; padding: 5px 11px; border-radius: 8px; }
.dash-body { padding: 22px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: #faf8fe; border: 1px solid #efeaf8; border-radius: 12px; padding: 13px 14px; }
.kpi .k { font-size: 11px; color: #8b88a3; font-weight: 600; }
.kpi .v { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.kpi .d { font-size: 11px; font-weight: 700; margin-top: 2px; }
.kpi .up { color: #15803d; }
.kpi .down { color: #b91c1c; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 128px; padding: 14px; background: #faf8fe; border: 1px solid #efeaf8; border-radius: 12px; }
.bar { flex: 1; background: linear-gradient(#a07be8, #6d28d9); border-radius: 5px 5px 0 0; }
.bar.tall { background: linear-gradient(#8b5cf6, #5b1f9e); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-size: 14px; font-weight: 600; color: #4b2a86; background: #fff; border: 1px solid #e2d7f4; padding: 8px 15px; border-radius: 999px; }

/* ---------- Process ---------- */
.process { max-width: 1200px; margin: 0 auto; padding: 96px 32px 72px; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step { border-top: 2px solid #e7e0f3; padding-top: 22px; }
.step .num { font-size: 36px; font-weight: 600; color: #cdbef0; margin-bottom: 10px; }
.step h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ---------- CTA / Contact ---------- */
.cta {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #14143b 0%, #2c1a62 50%, #5b1f9e 100%);
}
.cta-feather { position: absolute; left: -140px; bottom: -160px; height: 520px; width: auto; opacity: 0.06; pointer-events: none; transform: rotate(8deg); }
.cta-inner { position: relative; max-width: 880px; margin: 0 auto; padding: 104px 32px; text-align: center; }
.cta h2 { font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 20px; }
.cta-sub { font-size: 18px; line-height: 1.6; color: #d6cfe8; max-width: 560px; margin: 0 auto 36px; }

/* contact form */
.contact-form {
  max-width: 560px; margin: 0 auto; text-align: left;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px; padding: 30px 28px; backdrop-filter: blur(6px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #d9c9ff; margin-bottom: 7px; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.field input:focus, .field textarea:focus { outline: none; border-color: #c4a3ff; background: rgba(255, 255, 255, 0.12); }
.field textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; font-family: inherit; font-size: 16px; font-weight: 700;
  color: #1a1140; background: #fff; border: none; cursor: pointer;
  padding: 15px 30px; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.5);
  transition: transform .2s, opacity .2s; margin-top: 4px;
}
.form-submit:hover { transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-note { font-size: 13px; color: #b9aed4; margin-top: 14px; text-align: center; line-height: 1.5; }
.form-status { margin-top: 16px; font-size: 15px; font-weight: 600; text-align: center; padding: 12px; border-radius: 12px; }
.form-status.ok { color: #bbf7d0; background: rgba(21, 128, 61, 0.25); border: 1px solid rgba(187, 247, 208, 0.3); }
.form-status.err { color: #fecaca; background: rgba(185, 28, 28, 0.25); border: 1px solid rgba(254, 202, 202, 0.3); }
.cf-turnstile { margin-bottom: 16px; display: flex; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #0f0f2e; color: #b9b3d0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 52px 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 48px; width: auto; opacity: 0.92; }
.footer-brand span { font-size: 14px; color: #7d779a; max-width: 280px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; font-weight: 600; }
.footer-links a { color: #cfc9e6; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bar { border-top: 1px solid #232248; }
.footer-bar .inner { max-width: 1200px; margin: 0 auto; padding: 18px 32px; font-size: 13px; color: #6c668c; }

/* ---------- Website modernization (dated site → modern) ---------- */
.webmod { max-width: 1200px; margin: 0 auto; padding: 80px 32px; }

/* dated browser window */
.web-legacy {
  background: #fff; border: 1px solid #c3c8d2; border-radius: 8px;
  box-shadow: 0 10px 30px -16px rgba(20, 20, 50, 0.35); overflow: hidden; max-width: 400px;
}
.web-legacy-bar {
  background: linear-gradient(#ededed, #d6d6d6); border-bottom: 1px solid #b8bdc8;
  padding: 7px 10px; display: flex; align-items: center; gap: 7px;
}
.web-legacy-url {
  flex: 1; background: #fff; border: 1px solid #b3b8c2; border-radius: 3px;
  padding: 2px 8px; font-family: 'Courier New', monospace; font-size: 11px; color: #444;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.web-legacy-body { background: #fff; color: #222; font-family: 'Times New Roman', Times, serif; }
.web-legacy-banner {
  background: #000080; color: #fff; text-align: center; padding: 12px 10px;
  font-weight: 700; font-size: 16px; letter-spacing: .02em; border-bottom: 3px ridge #c0c0c0;
}
.web-legacy-tagline {
  background: #c0c0c0; color: #000080; text-align: center;
  font-size: 11px; font-style: italic; padding: 3px 6px;
}
.web-legacy-main { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 14px; }
.web-legacy-nav a { color: #0000ee; text-decoration: underline; display: block; margin-bottom: 6px; font-size: 12px; }
.web-legacy-copy { font-size: 12.5px; line-height: 1.45; color: #222; }
.web-legacy-copy u { color: #0000ee; cursor: pointer; }
.hit-counter { display: inline-flex; gap: 2px; vertical-align: middle; }
.hit-counter span { background: #000; color: #19ff19; font-family: 'Courier New', monospace; font-size: 12px; padding: 1px 3px; border-radius: 2px; }
.web-legacy-foot { border-top: 1px solid #ccc; padding: 8px 14px; font-size: 10.5px; color: #555; text-align: center; }

/* modern site card (overlaps the dated one, mirroring the DB mock) */
.web-modern {
  margin-top: -26px; margin-left: auto; width: 88%; background: #fff;
  border: 1px solid #e7e3f1; border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgba(40, 20, 90, 0.5); overflow: hidden;
}
.web-modern-chrome { background: #f3f0fa; border-bottom: 1px solid #e7e3f1; padding: 9px 12px; display: flex; align-items: center; gap: 8px; }
.web-modern-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.web-modern-pill {
  margin: 0 auto; background: #fff; border: 1px solid #e2d7f4; border-radius: 999px;
  font-size: 11px; color: #6b6880; padding: 3px 12px; display: inline-flex; align-items: center; gap: 6px;
}
.web-modern-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f0edf7; }
.web-modern-brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13px; color: #1b1a45; }
.web-modern-brand .b-dot { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, #2a1b63, #6d28d9); flex: none; }
.web-modern-links { display: flex; gap: 12px; font-size: 11.5px; color: #5d5a76; font-weight: 600; }
.web-modern-cta { font-size: 11px; font-weight: 700; color: #fff; background: #6d28d9; padding: 5px 11px; border-radius: 999px; }
.web-modern-hero { background: linear-gradient(120deg, #221555, #5b1f9e); color: #fff; padding: 20px 18px; }
.web-modern-hero h4 { font-family: 'Spectral', Georgia, serif; font-weight: 600; font-size: 18px; line-height: 1.15; margin-bottom: 10px; }
.web-modern-hero .mini-btn { display: inline-block; font-size: 11px; font-weight: 700; color: #1a1140; background: #fff; padding: 6px 14px; border-radius: 999px; }
.web-modern-badges { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
.web-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.web-badge.perf { color: #15803d; background: #dcfce7; }
.web-badge.tint { color: #4b2a86; background: #f1eafc; border: 1px solid #e2d7f4; }

/* ---------- Responsive split collapse ---------- */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  /* lead with text, then visual */
  .split .visual { order: 2; }
  .split .text { order: 1; }
  .form-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 84px 32px 88px; }
  .legacy-strip { margin-top: 48px; }
}
