/* ==========================================================================
   VertexIQ Solutions — design system & site styles
   Original build, no framework dependency.
   ========================================================================== */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ink: #f3f3f1;
  --ink-soft: #b6b7c2;
  --ink-faint: #82838f;

  --bg: #08080a;
  --bg-soft: #111114;
  --bg-soft-2: #18181d;
  --border: #26262d;

  --panel: linear-gradient(155deg, #16161d 0%, #1f1f29 100%);

  --accent: #6f68f0;
  --accent-dark: #5a52e0;
  --accent-soft: rgba(111, 104, 240, .16);
  --accent-ink: #ffffff;

  --footer-bg: #030304;
  --footer-ink: #91919c;
  --footer-ink-strong: #ffffff;
  --footer-border: #202027;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;

  --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-m: 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-l: 0 30px 60px -20px rgba(0, 0, 0, .6);

  --header-bg: rgba(8, 8, 10, .78);

  --container: 1180px;
  --header-h: 76px;
}

:root[data-theme="light"] {
  --header-bg: rgba(255, 255, 255, .82);
  --ink: #0b0f19;
  --ink-soft: #4b5468;
  --ink-faint: #8a93a6;

  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-soft-2: #eef0f7;
  --border: #e4e7ef;

  --accent: #4f46e5;
  --accent-dark: #3f37c9;
  --accent-soft: rgba(79, 70, 229, .10);

  --shadow-s: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-m: 0 8px 24px -8px rgba(15, 23, 42, .16);
  --shadow-l: 0 30px 60px -20px rgba(15, 23, 42, .25);
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---- layout helpers ---- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-soft { background: var(--bg-soft); }
.section-title { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-title p { font-size: 1.05rem; margin-top: 10px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; box-shadow: var(--shadow-m); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-m); }
.btn-light { background: #fff; color: #0b0f19; }
.btn-light:hover { background: #eceaff; }
.btn .icon { width: 18px; height: 18px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-s); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.brand img { height: 34px; width: auto; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  padding-block: 6px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right .btn-primary { display: none; }
}

@media (max-width: 420px) {
  .brand { font-size: .92rem; gap: 8px; }
  .brand img { height: 28px; }
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 6px; }
.nav-mobile a { display: block; padding: 14px 4px; font-size: 1.3rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--border); }
.nav-mobile .btn { margin-top: 24px; align-self: flex-start; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 72px;
  position: relative;
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 420px at 85% -8%, rgba(111, 104, 240, .28), transparent 65%),
    radial-gradient(480px 380px at 4% 14%, rgba(111, 104, 240, .16), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-eyebrow span { font-size: .85rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.08; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; max-width: 46ch; margin-top: 18px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.3rem; color: var(--ink); font-weight: 800; }
.hero-stats .stat span { font-size: .85rem; color: var(--ink-faint); }

.hero-visual { position: relative; height: 420px; }
.hv-card {
  position: absolute;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  padding: 20px;
}
.hv-main {
  inset: 30px 10% 30px 0;
  background: var(--panel);
  border: 1px solid var(--border);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hv-main .hv-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; margin-bottom: auto; }
.hv-main .hv-icon .icon { color: #fff; }
.hv-main .hv-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin: 18px 0; }
.hv-main .hv-bars span { flex: 1; border-radius: 5px; background: linear-gradient(180deg, var(--accent), #8b85f0); }
.hv-float {
  width: 200px;
  top: -8px;
  right: -6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hv-float .hv-icon-sm { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hv-float b { display: block; font-size: .9rem; color: var(--ink); }
.hv-float span { font-size: .78rem; color: var(--ink-faint); }
.hv-float2 { width: 168px; bottom: 6px; left: -12px; }
.hv-dots {
  position: absolute;
  right: 6%;
  bottom: 6%;
  width: 90px;
  height: 90px;
  background-image: radial-gradient(var(--border) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  z-index: -1;
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; margin-top: 10px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.about-visual {
  border-radius: var(--radius-l);
  background: var(--panel);
  border: 1px solid var(--border);
  min-height: 360px;
  padding: 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: clip;
}
.about-visual::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.55), transparent 70%);
}
.about-visual .av-row { display: flex; gap: 14px; }
.about-visual .av-card { flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-s); padding: 16px; }
.about-visual .av-card .icon { color: var(--accent); margin-bottom: 10px; }
.about-visual .av-card b { display: block; font-size: 1rem; }
.about-visual .av-card span { font-size: .8rem; color: rgba(255,255,255,.6); }
.about-body p.lead { font-size: 1.1rem; color: var(--ink); font-weight: 500; }
.stat-row { display: flex; gap: 40px; margin: 28px 0; flex-wrap: wrap; }
.stat-row .stat b { display: block; font-size: 1.15rem; color: var(--ink); }
.stat-row .stat span { font-size: .82rem; color: var(--ink-faint); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Services — tilted card carousel
   ========================================================================== */
.icon-badge {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.card-link .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.card-link:hover { color: var(--accent); }
.card-link:hover .icon { transform: translateX(3px); }

.tilt-carousel {
  overflow-x: auto;
  overflow-y: visible;
  padding-block: 48px 24px;
  padding-left: max(24px, calc((100vw - var(--container)) / 2));
  padding-right: 24px;
  scrollbar-width: none;
}
.tilt-carousel::-webkit-scrollbar { display: none; }
.tilt-carousel.is-pinned { overflow: hidden; }
#services.services-pinned {
  min-height: 100vh;
  padding-block: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#services.services-pinned .section-title { margin-bottom: 28px; }
#services.services-pinned .tilt-carousel { padding-block: 20px 10px; }
.tilt-track { display: flex; gap: 38px; width: max-content; }
.tilt-card {
  flex: 0 0 272px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px 26px;
  background:
    radial-gradient(130% 70% at 20% -20%, rgba(111, 104, 240, .35), transparent 60%),
    var(--bg-soft-2);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease;
  transform: rotate(var(--tilt, 0deg));
}
.tilt-card:nth-child(1) { --tilt: -7deg; }
.tilt-card:nth-child(2) { --tilt: 5deg; }
.tilt-card:nth-child(3) { --tilt: -5deg; }
.tilt-card:nth-child(4) { --tilt: 6deg; }
.tilt-card:nth-child(5) { --tilt: -4deg; }
.tilt-card:nth-child(6) { --tilt: 4deg; }
.tilt-card[data-reveal] { transform: rotate(var(--tilt, 0deg)) translateY(18px); }
.tilt-card[data-reveal].is-visible { transform: rotate(var(--tilt, 0deg)) translateY(0); }
.tilt-card[data-reveal].is-visible:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -16px rgba(111, 104, 240, .45);
  z-index: 2;
}
.tilt-num { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 18px; }
.tilt-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tilt-card p { font-size: .93rem; margin-bottom: 20px; }

@media (max-width: 640px) {
  .tilt-card { flex-basis: 240px; }
}

/* ==========================================================================
   Why us / feature grid
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature-item { display: flex; gap: 18px; }
.feature-item .icon-badge { flex-shrink: 0; margin-bottom: 0; }
.feature-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-item p { font-size: .93rem; margin: 0; }
.why-visual { position: relative; border-radius: var(--radius-l); overflow: clip; background: var(--bg-soft-2); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.why-visual .wv-ring { position: absolute; border: 1px solid var(--border); border-radius: 50%; }
.why-visual .wv-ring.r1 { width: 260px; height: 260px; }
.why-visual .wv-ring.r2 { width: 190px; height: 190px; }
.why-visual .wv-core { position: relative; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(155deg, var(--accent), #8b85f0); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-l); }
.why-visual .wv-core .icon { color: #fff; width: 44px; height: 44px; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px; border-radius: var(--radius-l); border: 1px solid var(--border);
  background: var(--bg-soft-2); transition: border-color .2s ease, transform .2s ease;
}
.portfolio-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.portfolio-card h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.portfolio-card p { font-size: .92rem; color: var(--muted); margin: 0 0 16px; flex-grow: 1; }
.portfolio-card .card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.portfolio-card:hover .card-link { color: var(--accent); }
.portfolio-card .card-link .icon { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.contact-info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 36px 30px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,.65); }
.contact-list { margin-top: 26px; display: flex; flex-direction: column; gap: 20px; }
.contact-list .row { display: flex; align-items: center; gap: 14px; }
.contact-list .icon-badge { background: rgba(255,255,255,.1); color: #fff; }
.contact-list b { display: block; font-size: .78rem; color: rgba(255,255,255,.55); font-weight: 500; }
.contact-list span { font-size: .95rem; color: #fff; }

.form-card { border: 1px solid var(--border); border-radius: var(--radius-l); padding: 36px; background: var(--bg-soft-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-soft-2); }
.field textarea { resize: vertical; min-height: 130px; }
.form-status { font-size: .9rem; margin-bottom: 14px; }
.form-status.loading { color: var(--ink-faint); }
.form-status.error { color: #f87171; }
.form-status.success { color: #34d399; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: #fff; margin-bottom: 16px; }
.footer-brand img { height: 32px; }
.footer-about p { font-size: .92rem; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--footer-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--footer-ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social .icon { width: 17px; height: 17px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .9rem; color: var(--footer-ink); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: .9rem; margin-bottom: 12px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }
.footer-bottom { border-top: 1px solid var(--footer-border); padding: 22px 0; text-align: center; font-size: .85rem; }
.footer-bottom strong { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scroll top
   ========================================================================== */
.scroll-top {
  position: fixed;
  left: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .15s ease;
  z-index: 90;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-dark); }

/* ==========================================================================
   Theme toggle — sits in the header, next to the primary CTA
   ========================================================================== */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--accent); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 56px; background: var(--bg-soft); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.page-hero p { font-size: 1.05rem; max-width: 60ch; margin-top: 10px; }

/* ==========================================================================
   Service detail page
   ========================================================================== */
.service-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }
.service-hero-art {
  border-radius: var(--radius-l);
  min-height: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 36px;
  position: relative;
  overflow: clip;
}
.service-hero-art::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(340px 220px at 80% 20%, rgba(111,104,240,.5), transparent 70%);
}
.service-hero-art .icon-badge { width: 80px; height: 80px; border-radius: 22px; background: rgba(255,255,255,.1); color: #fff; z-index: 1; margin: 0; }
.service-hero-art .icon-badge .icon { width: 36px; height: 36px; }
.deliver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.deliver-item { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--bg-soft-2); }
.deliver-item .icon-badge { flex-shrink: 0; margin-bottom: 0; width: 44px; height: 44px; border-radius: 12px; }
.deliver-item h4 { font-size: 1rem; margin-bottom: 5px; }
.deliver-item p { font-size: .9rem; margin: 0; }

.process-list { margin-top: 22px; }
.process-step { display: flex; gap: 20px; position: relative; padding-bottom: 34px; }
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: '';
  position: absolute;
  left: 21px; top: 46px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.process-step:last-child::before { display: none; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}
.process-step h4 { font-size: 1rem; margin-bottom: 4px; }
.process-step p { font-size: .9rem; margin: 0; }

.side-card { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 26px; margin-bottom: 22px; background: var(--bg-soft-2); }
.side-card h4 { font-size: 1rem; margin-bottom: 16px; }
.side-info li { font-size: .9rem; padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--border); }
.side-info li:last-child { border: none; margin: 0; padding: 0; }
.side-info b { display: block; color: var(--ink); font-size: .82rem; margin-bottom: 3px; }
.related-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .9rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.related-list a:last-child { border: none; }
.related-list a .icon { color: var(--accent); width: 18px; height: 18px; }
.related-list a:hover { color: var(--accent); }
.side-cta { background: linear-gradient(155deg, var(--accent), var(--accent-dark)); color: #fff; }
.side-cta h4, .side-cta p { color: #fff; }
.side-cta p { opacity: .85; font-size: .9rem; }
.side-contact .row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.side-contact .row:last-child { margin: 0; }
.side-contact .icon { color: var(--accent); }
.side-contact b { display: block; font-size: .78rem; color: var(--ink-faint); font-weight: 500; }
.side-contact span { font-size: .92rem; color: var(--ink); font-weight: 600; }

@media (max-width: 940px) {
  .service-layout { grid-template-columns: 1fr; }
  .deliver-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-content { max-width: 780px; margin-inline: auto; }
.legal-updated { font-size: .9rem; color: var(--ink-faint); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal-section { margin-bottom: 40px; }
.legal-section h3 { font-size: 1.3rem; margin-bottom: 14px; }
.legal-section h4 { font-size: 1rem; margin: 18px 0 8px; }
.legal-section ul, .legal-section ol { padding-left: 22px; margin: 0 0 14px; }
.legal-section li { margin-bottom: 6px; font-size: .96rem; }
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  margin: 18px 0;
  display: flex;
  gap: 14px;
  background: var(--bg-soft-2);
}
.callout .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.callout h5 { margin: 0 0 4px; font-size: .95rem; color: var(--ink); }
.callout p { margin: 0; font-size: .9rem; }
.callout-accent { background: var(--accent-soft); border-color: transparent; }
.callout-warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); }
.callout-warn .icon { color: #f59e0b; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.measure-item { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px; background: var(--bg-soft-2); }
.measure-item .icon { color: var(--accent); margin-bottom: 10px; }
.measure-item h5 { font-size: .95rem; margin-bottom: 4px; }
.measure-item p { font-size: .88rem; margin: 0; }

.right-item { display: flex; gap: 14px; margin-bottom: 18px; }
.right-item .icon-badge { flex-shrink: 0; margin: 0; width: 40px; height: 40px; }
.right-item h5 { font-size: .95rem; margin-bottom: 3px; }
.right-item p { font-size: .88rem; margin: 0; }

.legal-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.legal-table th { color: var(--ink); font-weight: 700; }

.legal-contact-box {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px;
  margin-top: 40px;
  background: var(--bg-soft-2);
}
.legal-contact-box .icon-badge { flex-shrink: 0; margin: 0; }
.legal-contact-box h4 { font-size: 1.05rem; margin-bottom: 4px; }
.legal-contact-box p { margin: 0 0 10px; font-size: .92rem; }

@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
  .legal-contact-box { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   404
   ========================================================================== */
.error-page { padding-top: calc(var(--header-h) + 90px); padding-bottom: 100px; text-align: center; }
.error-number {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(155deg, var(--ink), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.03em;
}
.error-page h1 { margin-top: 8px; }
.error-page p.lead { max-width: 50ch; margin-inline: auto; font-size: 1.05rem; }
.error-actions { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.error-links { margin-top: 80px; text-align: left; }
.error-links h3 { text-align: center; margin-bottom: 30px; }
.error-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.error-link-card { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 26px; background: var(--bg-soft-2); }
.error-link-card .icon-badge { margin-bottom: 16px; }
.error-link-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.error-link-card p { font-size: .9rem; }

@media (max-width: 800px) {
  .error-links-grid { grid-template-columns: 1fr; }
}
