/* ===== Nilvian Technologies — site styles ===== */
:root {
  --ink: #0A0E1F;
  --ink-2: #121734;
  --text: #0F172A;
  --muted: #5B6478;
  --line: #E6E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FB;
  --primary: #5B4FF0;
  --primary-dark: #4338CA;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --green: #10B981;
  --grad: linear-gradient(120deg, #6366F1 0%, #8B5CF6 45%, #22D3EE 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 4px 12px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 40px 80px -30px rgba(10, 14, 31, .55);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; color: var(--text); }
p { margin: 0; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
}
.btn .ico { transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6366F1, #7C3AED);
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .7), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(99, 102, 241, .8), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.btn--white:hover { transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(99, 102, 241, .5); outline-offset: 2px; }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; display: flex; flex-direction: column; line-height: 1; }
.brand__sub { font-family: var(--font-body); font-weight: 500; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .6; margin-top: 4px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { color: rgba(255,255,255,.75); font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 24px; }
.nav.is-open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

.nav.is-scrolled { background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px); border-color: var(--line); }
.nav.is-scrolled .brand { color: var(--text); }
.nav.is-scrolled .nav__links a { color: var(--muted); }
.nav.is-scrolled .nav__links a:hover { color: var(--text); background: var(--bg-soft); }
.nav.is-scrolled .nav__toggle { border-color: var(--line); }
.nav.is-scrolled .nav__toggle span { background: var(--text); }

.mobile-menu { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, #1E1B4B 0%, transparent 60%), var(--ink);
  color: #fff; padding: 150px 0 0;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.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% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb--1 { width: 520px; height: 520px; background: #4F46E5; top: -160px; left: -120px; }
.orb--2 { width: 420px; height: 420px; background: #7C3AED; top: 80px; right: -100px; animation-delay: -6s; }
.orb--3 { width: 360px; height: 360px; background: #0891B2; bottom: -120px; left: 40%; opacity: .35; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border-radius: 999px; font-size: 13.5px; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: background .2s;
}
.pill:hover { background: rgba(255,255,255,.1); }
.pill__tag { background: var(--grad); color: #fff; font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.hero__title { color: #fff; font-size: clamp(40px, 4.6vw, 62px); font-weight: 700; letter-spacing: -.035em; margin: 22px 0 20px; }
.hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.7); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: rgba(255,255,255,.65); }
.hero__ticks li { display: flex; align-items: center; gap: 7px; }
.hero__ticks .ico { color: var(--cyan); width: 16px; height: 16px; }

/* Product mock */
.hero__visual { position: relative; perspective: 1600px; }
.mock {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.2), 0 0 80px -20px rgba(139, 92, 246, .6);
  backdrop-filter: blur(16px);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero__visual:hover .mock { transform: rotateY(-3deg) rotateX(2deg); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(10,14,31,.4); }
.mock__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mock__bar .dot:nth-child(1) { background: #FF5F57; } .mock__bar .dot:nth-child(2) { background: #FEBC2E; } .mock__bar .dot:nth-child(3) { background: #28C840; }
.mock__url { margin-left: 12px; font-size: 11.5px; color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); padding: 4px 12px; border-radius: 6px; flex: 1; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__body { display: flex; min-height: 300px; background: rgba(10,14,31,.55); }
.mock__side { width: 56px; border-right: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.mock__logo { margin-bottom: 8px; }
.mock__side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.08); }
.mock__side i.active { background: var(--grad); box-shadow: 0 0 16px rgba(139,92,246,.6); }
.mock__main { flex: 1; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.mock__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock__head small { color: rgba(255,255,255,.5); font-size: 12px; }
.mock__head strong { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em; }
.mock__head em { font-style: normal; font-family: var(--font-body); font-size: 12px; color: #34D399; background: rgba(16,185,129,.14); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.mock__tabs { display: flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: 8px; padding: 3px; font-size: 11px; }
.mock__tabs span { padding: 3px 8px; border-radius: 6px; color: rgba(255,255,255,.5); }
.mock__tabs .on { background: rgba(255,255,255,.12); color: #fff; }
.mock__chart { width: 100%; height: 130px; }
.mock__line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpis div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 10px 12px; }
.mock__kpis small { display: block; font-size: 11px; color: rgba(255,255,255,.5); }
.mock__kpis b { font-family: var(--font-display); font-size: 17px; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(255,255,255,.95); color: var(--text);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.45);
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; }
.float-card__icon--green { background: linear-gradient(135deg, #10B981, #22D3EE); }
.float-card--a { left: -36px; bottom: 54px; }
.float-card--b { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Stack strip */
.stack-strip { position: relative; margin-top: 96px; padding: 28px 0 34px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
.stack-strip p { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: rgba(255,255,255,.55); letter-spacing: -.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section__head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin: 14px 0 16px; }
.section__head p { font-size: 18px; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow--light { color: #A5B4FC; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D7DAF0; }
.product h3 { font-size: 22px; margin-top: 10px; }
.product p { color: var(--muted); font-size: 15px; }
.product .product__tag { color: var(--primary); font-weight: 600; font-size: 14px; margin-top: -4px; }
.product .link-arrow { margin-top: auto; padding-top: 10px; }
.product__top { display: flex; justify-content: space-between; align-items: center; }
.product__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 20px -8px var(--c1);
}
.product__icon .ico { width: 24px; height: 24px; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); }
.badge--live { color: #047857; background: #ECFDF5; border-color: #A7F3D0; display: inline-flex; align-items: center; gap: 6px; }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }

.product--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; padding: 40px; background: linear-gradient(135deg, #FAFAFF 0%, #F3F1FF 100%); }
.product--feature > *:not(.product__art) { grid-column: 1; }
.product--feature h3 { font-size: 30px; }
.product--feature .product__art { grid-column: 2; grid-row: 1 / span 7; }
.product__art { position: relative; min-height: 260px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background-image: radial-gradient(#E3E5F2 1px, transparent 1px); background-size: 18px 18px; }
.product__art .wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.product__art .wires path { fill: none; stroke: #A5B4FC; stroke-width: 1.6; stroke-dasharray: 5 5; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.node { position: absolute; z-index: 1; padding: 10px 14px; font-size: 13px; font-weight: 600; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.node::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); }
.n1 { top: 14%; left: 8%; }
.n2 { top: 42%; right: 8%; }
.n3 { bottom: 12%; left: 30%; }

.checks { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checks .ico { color: var(--primary); margin-top: 3px; width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--primary); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.service::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service:hover::after { opacity: 1; }
.service h3 { font-size: 19px; margin: 20px 0 10px; }
.service p { color: var(--muted); font-size: 15px; }
.service__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: var(--primary); background: #EEF0FF; border: 1px solid #E0E3FF;
}
.service__icon .ico { width: 24px; height: 24px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento__item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.bento__item h3 { font-size: 19px; margin: 18px 0 8px; }
.bento__item p { color: var(--muted); font-size: 15px; }
.bento__item .service__icon { background: #fff; }
.bento__item--wide { grid-column: span 2; grid-row: span 2; }
.bento__item--dark {
  position: relative; overflow: hidden; color: #fff; border: none; padding: 40px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(124,58,237,.45), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(8,145,178,.35), transparent 60%), var(--ink);
}
.bento__item--dark h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin: 16px 0 36px; max-width: 460px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; }
.stats > div { background: rgba(10,14,31,.75); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -.03em; background: linear-gradient(120deg, #fff, #C4B5FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats b small { font-size: .6em; }
.stats span { font-size: 14px; color: rgba(255,255,255,.6); }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 40px; right: 40px; height: 2px; background: linear-gradient(90deg, #C7D2FE, #DDD6FE, #A5F3FC); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; padding-top: 0; margin-top: 0; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 22px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--grad);
  box-shadow: 0 10px 24px -8px rgba(99,102,241,.7); transform: translateY(0);
}
.process .step { padding-top: 28px; }
.process .step__num { position: relative; margin-top: -56px; }
.process { padding-top: 28px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.step__time { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--primary); background: #EEF0FF; padding: 4px 10px; border-radius: 999px; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.industry:hover { border-color: #C7D2FE; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.industry .ico { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--primary); background: #EEF0FF; }
.industry b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.industry span { color: var(--muted); font-size: 14px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px 60px; border-radius: 28px; color: #fff;
  background: linear-gradient(120deg, #4338CA 0%, #6D28D9 50%, #0E7490 100%);
  box-shadow: 0 30px 60px -30px rgba(67, 56, 202, .7);
}
.cta-band__glow { position: absolute; inset: 0; background: radial-gradient(500px 200px at 85% 0%, rgba(255,255,255,.25), transparent 70%); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); max-width: 560px; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 10px; max-width: 520px; }
.cta-band > * { position: relative; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__info h2 { font-size: clamp(32px, 4vw, 46px); margin: 14px 0 16px; }
.contact__info > p { color: var(--muted); font-size: 18px; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list small { display: block; font-size: 13px; color: var(--muted); }
.contact__list a, .contact__list span { font-weight: 600; }
.contact__list a:hover { color: var(--primary); }
.contact__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--primary); background: #EEF0FF; flex-shrink: 0; }

.form {
  display: grid; gap: 18px; padding: 36px; border-radius: 24px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 12px 14px; border-radius: 12px; border: 1px solid #D9DCE7; background: #FBFBFD;
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235B6478' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #A0A7B8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #818CF8; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.14); }
.field.has-error input, .field.has-error textarea { border-color: #F87171; box-shadow: 0 0 0 4px rgba(248,113,113,.12); }
.field .err { font-size: 13px; color: #DC2626; font-weight: 500; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }
.form__status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.form__status.ok { display: flex; gap: 10px; align-items: center; background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form__status.err { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.65); margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; padding-top: 72px; padding-bottom: 48px; flex-wrap: wrap; }
.footer__brand { max-width: 320px; }
.footer__brand p { margin-top: 16px; font-size: 15px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 40px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; font-family: var(--font-body); letter-spacing: 0; }
.footer__cols a { display: block; font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.footer__bottom a:hover { color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 72px; }
  .hero__copy { max-width: 680px; }
  .hero__visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .products, .services, .bento { grid-template-columns: repeat(2, 1fr); }
  .product--feature { grid-template-columns: 1fr; }
  .product--feature .product__art { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .bento__item--wide { grid-column: 1 / -1; grid-row: auto; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .process::before { display: none; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .mobile-menu {
    display: grid; gap: 4px; padding: 0 24px; max-height: 0; overflow: hidden;
    background: #fff; transition: max-height .35s ease, padding .35s ease;
  }
  .mobile-menu a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; border: none; }
  .nav.is-open { background: #fff; border-color: var(--line); }
  .nav.is-open .brand { color: var(--text); }
  .nav.is-open .nav__toggle { border-color: var(--line); }
  .nav.is-open .nav__toggle span { background: var(--text); }
  .nav.is-open .mobile-menu { max-height: 480px; padding: 8px 24px 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 120px; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 44px; }
  .products, .services, .bento, .process, .industries { grid-template-columns: 1fr; }
  .product, .service, .bento__item { padding: 24px; }
  .product--feature { padding: 26px; }
  .bento__item--dark { padding: 28px 22px; }
  .stats b { font-size: 30px; }
  .stats > div { padding: 18px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .float-card--a { left: -6px; bottom: -28px; }
  .float-card--b { right: -6px; top: -30px; }
  .mock { transform: none; }
  .mock__side { display: none; }
  .mock__main { padding: 16px; }
  .stack-strip { margin-top: 80px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .cta-band .btn { width: 100%; white-space: normal; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .mock__line { stroke-dashoffset: 0; }
}
