/* =============================================================
   Synapse Computing Technologies — stylesheet
   Dark navy / charcoal base · electric-blue accents
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg-900: #080B14;
  --bg-800: #0A0F1E;
  --bg-700: #0E1424;
  --bg-600: #121A2E;
  --surface: #141D33;
  --surface-2: #18233c;
  --border: rgba(148, 173, 224, 0.14);
  --border-strong: rgba(148, 173, 224, 0.26);

  --text: #EAF0FB;
  --text-bright: #DEE7F4; /* headings — softer than pure white against the dark base */
  --text-soft: #C3CEE3;
  --text-muted: #9AA8C4;

  --accent: #2480ec;
  --accent-btn: #1d6ed2; /* button fill — white labels reach WCAG AA (4.98:1) on this */
  --accent-600: #1a66cf;
  --accent-bright: #4a97ff;
  --cyan: #24ccea;
  --silver: #c2ccd8;
  --grad: linear-gradient(120deg, #2480ec 0%, #24ccea 100%);
  --grad-text: linear-gradient(120deg, #4a97ff 0%, #24ccea 100%); /* brighter start for gradient-clipped text */
  --grad-soft: linear-gradient(120deg, rgba(36,128,236,0.16), rgba(36,204,234,0.14));

  --ring: 0 0 0 3px rgba(36, 128, 236, 0.38);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 40px 80px -30px rgba(3, 8, 20, 0.85);

  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-pad: clamp(64px, 9vw, 112px);
  --section-head-mb: clamp(36px, 5vw, 56px);
  --split-gap: clamp(36px, 6vw, 72px);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-brand: "Chakra Petch", var(--font-display);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-900);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }

:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); border-radius: 8px; }
@media (forced-colors: active) { :focus-visible { outline-color: Highlight; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent-btn); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Default inline icons (no width attr) ---------- */
svg:not([width]) {
  width: 1.25rem; height: 1.25rem;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); position: relative; }
.section-head { max-width: 720px; margin-bottom: var(--section-head-mb); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px;
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--text-bright); }
.section-intro { color: var(--text-muted); font-size: 1.08rem; margin-top: 16px; }
.lead { color: var(--text-soft); font-size: 1.12rem; margin-top: 16px; margin-bottom: 20px; }

.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Gradient-clipped text can vanish under Windows High Contrast — restore a system colour */
@media (forced-colors: active) {
  .grad-text, .stat-num, .brand-name {
    -webkit-text-fill-color: CanvasText; color: CanvasText; background: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .btn-icon { width: 1.05em; height: 1.05em; }
.btn-primary {
  background: var(--accent-btn); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(36, 102, 207, .45), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(36,102,207,.55); }
.btn-primary:hover .btn-icon { transform: translateX(3px); }
.btn-icon { transition: transform .18s ease; }
.btn-ghost {
  background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--accent-bright); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Brand / logo mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.site-logo {
  display: block; width: 250px; max-width: 100%; height: auto; aspect-ratio: 3 / 1;
  object-fit: contain; object-position: center; flex: none;
}
.site-logo-footer { width: 250px; }
.brand-mark { display: grid; place-items: center; }
.brand-mark svg { display: block; }
.logo-mark { filter: drop-shadow(0 2px 11px rgba(36, 128, 236, .25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name { font-family: var(--font-brand); font-weight: 700; font-size: 1.22rem; color: #fff; letter-spacing: .05em; text-transform: uppercase;
  background: linear-gradient(170deg, #ffffff 0%, #ffffff 45%, var(--silver) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-sub { font-family: var(--font-display); font-size: .56rem; letter-spacing: .19em; text-transform: uppercase; color: var(--cyan); font-weight: 600; margin-top: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(7, 11, 20, .9); border-bottom-color: var(--border); box-shadow: 0 10px 30px -20px rgba(0,0,0,.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 90px; }
.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block; padding: 9px 13px; border-radius: 9px; font-weight: 500; font-size: .95rem;
  white-space: nowrap; color: var(--text-soft); transition: color .18s ease, background .18s ease;
}
.main-nav a:hover { color: var(--text-bright); background: rgba(255,255,255,.05); }
.header-cta { display: flex; align-items: center; }
.nav-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--text); padding: 6px; border-radius: 8px; }

/* Mobile drawer */
.mobile-nav {
  display: none; flex-direction: column; gap: 6px;
  padding: 12px var(--gutter) 24px;
  background: rgba(9, 13, 24, .98); border-bottom: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.open { display: flex; max-height: calc(100dvh - 64px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a { padding: 13px 12px; border-radius: 10px; font-weight: 500; font-size: 1.05rem; color: var(--text-soft); }
.mobile-nav a:hover { background: rgba(255,255,255,.05); color: var(--text-bright); }
.mobile-nav .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(88px, 15vw, 168px) clamp(56px, 8vw, 92px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(88, 130, 224, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 130, 224, .06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg-900));
  pointer-events: none;
}
.net-nodes circle { animation: nodeBlink 4s ease-in-out infinite; }
.net-nodes circle:nth-child(2n) { animation-delay: .8s; }
.net-nodes circle:nth-child(3n) { animation-delay: 1.6s; }
.net-nodes circle:nth-child(4n) { animation-delay: 2.4s; }
@keyframes nodeBlink { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.net-lines path { stroke-dasharray: 6 8; animation: dash 22s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }

.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: .82rem; letter-spacing: .04em;
  color: var(--text-soft); background: rgba(255,255,255,.04);
  border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(36,204,234,.35); animation: pulse 3s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(36,204,234,.3); } 70% { box-shadow: 0 0 0 6px rgba(36,204,234,0); } 100% { box-shadow: 0 0 0 0 rgba(36,204,234,0); } }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); color: var(--text-bright); margin-bottom: 24px; letter-spacing: -.025em; }
.hero-sub { font-size: clamp(1.08rem, 2vw, 1.32rem); color: var(--text-soft); max-width: 640px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .96rem; }
.hero-trust svg { color: var(--cyan); width: 1.15rem; height: 1.15rem; }

/* ---------- Stats strip ---------- */
.stats-strip { background: linear-gradient(180deg, var(--bg-800), var(--bg-900)); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 40px; }
.stat { text-align: center; padding: 8px; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.5rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-muted); font-size: .92rem; margin-top: 4px; display: block; }

/* ---------- About ---------- */
.about { background: var(--bg-900); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--split-gap); align-items: center; }
.about-points { display: grid; gap: 16px; margin-top: 24px; }
.about-point { display: flex; gap: 15px; align-items: flex-start; }
.about-point svg { width: 1.5rem; height: 1.5rem; color: var(--cyan); margin-top: 3px; }
.about-point strong { display: block; color: var(--text-bright); font-family: var(--font-display); font-weight: 600; }
.about-point span { color: var(--text-muted); font-size: .96rem; }

/* About visual */
.about-visual { display: grid; place-items: center; width: 100%; min-width: 0; }
.about-image { display: block; width: min(100%, 520px); max-width: 100%; height: auto; object-fit: contain; }

/* ---------- Services cards ---------- */
.services { background: linear-gradient(180deg, var(--bg-900), var(--bg-800)); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .25s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 13px;
  background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--cyan); margin-bottom: 18px;
}
.card-icon svg { width: 1.6rem; height: 1.6rem; }
.card h3 { font-size: 1.16rem; color: var(--text-bright); margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .96rem; }
/* Darker gradient than --grad: white text needs AA contrast on both ends */
.card-cta { background: linear-gradient(120deg, var(--accent-600) 0%, #0e7d9a 100%); border: 0; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255,255,255,.92); }
.card-cta::before { display: none; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-display); font-weight: 600; color: #fff; }
.card-link svg { width: 1.05rem; height: 1.05rem; transition: transform .18s ease; }
.card-cta:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-cta:hover .card-link svg { transform: translateX(4px); }

/* ---------- Feature sections ---------- */
.feature-alt { background: var(--bg-800); }
.feature { background: var(--bg-900); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--split-gap); align-items: center; }
.feature .feature-visual { order: 2; }
.tick-list { display: grid; gap: 12px; margin: 24px 0 28px; }
.tick-list.two-col { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.tick-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-soft); font-size: .98rem; }
.tick-list svg { width: 1.2rem; height: 1.2rem; color: var(--cyan); margin-top: 3px; }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.mini-card { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.mini-card svg { width: 1.5rem; height: 1.5rem; color: var(--cyan); margin-bottom: 10px; }
.mini-card strong { display: block; color: var(--text-bright); font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.mini-card span { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

/* Panels (feature visuals) */
.panel {
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); padding: 24px; position: relative; overflow: hidden;
}
.panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(36,204,234,.1), transparent 55%); pointer-events: none; }
.panel-head { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.panel-head .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.panel-head .dot:nth-child(1){ background:#ff5f57; } .panel-head .dot:nth-child(2){ background:#febc2e; } .panel-head .dot:nth-child(3){ background:#28c840; }
.panel-title { margin-left: auto; font-family: var(--font-display); font-weight: 600; color: var(--text-soft); font-size: .92rem; }
.panel-list { display: grid; gap: 12px; }
.panel-list li { display: flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: 1rem; }
.panel-list svg { width: 1.2rem; height: 1.2rem; color: var(--cyan); }

.badge-live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: #4be08a; }
.panel-ticket .ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 11px; background: var(--bg-700); border: 1px solid var(--border); margin-bottom: 10px; }
.panel-ticket .ticket span { color: var(--text); font-size: .95rem; }
.panel-ticket .ticket em { font-style: normal; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.ticket.ok em { color: #4be08a; background: rgba(75,224,138,.12); }
.ticket.prog em { color: var(--cyan); background: rgba(36,204,234,.12); }

.panel-infra .infra-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; margin-bottom: 16px; }
.panel-infra .infra-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); }
.panel-infra .infra-icon svg { width: 1.3rem; height: 1.3rem; }
.panel-infra .bar { height: 9px; border-radius: 999px; background: var(--bg-700); overflow: hidden; }
.panel-infra .bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--grad); animation: grow 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { width: 0; } }
.panel-infra em { font-style: normal; color: var(--text-muted); font-size: .85rem; }

/* Shield visual */
.security .feature-visual { display: grid; place-items: center; }
.shield-visual { display: grid; place-items: center; gap: 22px; }
.shield-visual svg { filter: drop-shadow(0 20px 40px rgba(36,128,236,.2)); }
.sh-body { fill: var(--surface); stroke: var(--border-strong); stroke-width: 2; }
.sh-inner { fill: none; stroke: rgba(74,151,255,.4); stroke-width: 1.5; }
.sh-check { fill: none; stroke: var(--cyan); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.4s ease .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sec-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sec-badges li { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-soft); padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.sec-badges svg { width: 1.05rem; height: 1.05rem; color: var(--cyan); }

/* ---------- Why choose us ---------- */
.why { background: linear-gradient(180deg, var(--bg-800), var(--bg-900)); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.why-card { padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .2s ease, border-color .2s ease; }
.why-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.why-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--cyan); margin-bottom: 18px; }
.why-icon svg { width: 1.6rem; height: 1.6rem; }
.why-card h3 { font-size: 1.2rem; color: var(--text-bright); margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-900); position: relative; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 50% at 15% 0%, rgba(36,128,236,.12), transparent 60%);
  pointer-events: none;
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--split-gap); align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 24px 0 28px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-list li > div { min-width: 0; }
.contact-list a { overflow-wrap: anywhere; }
.ci-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--cyan); flex: none; }
.ci-icon svg { width: 1.35rem; height: 1.35rem; }
.ci-label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact-list a, .contact-list div > span:not(.ci-label) { color: var(--text); font-weight: 500; }
.contact-list a:hover { color: var(--cyan); }
.contact-assure { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .9rem; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.contact-assure svg { width: 1.15rem; height: 1.15rem; color: var(--cyan); flex: none; }

/* Form */
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 22px; padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--text-soft); margin-bottom: 7px; }
.field label span { color: var(--cyan); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg-700);
  border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C9AB6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-bright); box-shadow: var(--ring); background: var(--bg-600); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
/* Reserve the message line so the form doesn't jump when a validation error appears */
.err { color: #ff8585; font-size: .8rem; margin-top: 4px; min-height: 1.32rem; }
.form-note { margin-top: 14px; font-size: .95rem; text-align: center; }
.form-note.success { color: #4be08a; }
.form-note.error { color: #ff8585; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-800); border-top: 1px solid var(--border); padding-top: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brandline { font-family: var(--font-display); font-weight: 600; color: var(--cyan); font-size: .92rem; letter-spacing: .01em; margin-bottom: 8px; }
.footer-tag { color: var(--text-muted); font-size: .95rem; max-width: 320px; }
.footer-col h2 { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: .95rem; transition: color .16s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: .95rem; min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; min-width: 0; }
.footer-contact svg { width: 1.05rem; height: 1.05rem; color: var(--cyan); }
.footer-contact .btn { margin-top: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 24px; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-muted); font-size: .88rem; }
.footer-legal a:hover { color: var(--cyan); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Nav collapses to a drawer before the header can crowd (full nav needs ~1103px to fit) */
@media (max-width: 1120px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 940px) {
  .about-grid, .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature .feature-visual, .feature-alt .feature-visual { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-visual { order: 0; margin-top: 8px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 76px; }
  .header-inner { height: 72px; }
  .brand-sub { font-size: .58rem; }
  .site-header .site-logo { width: 190px; }
  /* gap stays 0: stacking rhythm comes from .field margin-bottom, not the grid gap */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .tick-list.two-col, .mini-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
