/* =============================================================================
   RH³ Consulting — main stylesheet
   ========================================================================== */

:root {
  /* brand */
  --ink: #0A0F24;
  --ink-2: #0E1533;
  --ink-3: #141B45;
  --primary: #3D5AFE;
  --primary-600: #2F48E0;
  --primary-50: #EEF1FF;
  --cyan: #22D3EE;
  --violet: #7C4DFF;
  --accent: #FF6A3D;
  --accent-600: #E8552A;

  /* light surfaces */
  --bg: #FFFFFF;
  --tint: #F4F6FB;
  --text: #0F1630;
  --muted: #55607F;
  --border: #E3E7F2;

  /* dark surfaces */
  --d-text: #EEF1FF;
  --d-muted: #A9B4DA;
  --d-line: rgba(124, 152, 255, .16);
  --d-card: rgba(20, 27, 69, .6);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 22, 48, .04), 0 12px 32px -12px rgba(15, 22, 48, .14);
  --shadow-lg: 0 30px 60px -20px rgba(15, 22, 48, .28);
  --container: 1200px;
  --header-h: 76px;

  --f-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.dark { background: var(--ink); color: var(--d-text); }
.dark p { color: var(--d-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.dark .eyebrow { color: var(--cyan); }
.hero .eyebrow::before { display: none; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }

.grad-text {
  background: linear-gradient(92deg, var(--cyan) 0%, #7C98FF 55%, #B9A2FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--bh); padding: 0 24px; border-radius: 999px;
  font-family: var(--f-head); font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn .ico { transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: .9rem; }
.btn-lg { --bh: 56px; padding: 0 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 106, 61, .7); }
.btn-accent:hover { background: var(--accent-600); color: #fff; box-shadow: 0 14px 30px -10px rgba(255, 106, 61, .8); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(61, 90, 254, .7); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--primary-50); color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-family: var(--f-head); font-weight: 600; font-size: .95rem; }
.link-arrow .ico { transition: transform .2s ease; }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow.on-dark { color: var(--cyan); }
.link-arrow.on-dark:hover { color: #8BF0FF; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled {
  background: rgba(10, 15, 36, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--d-line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; letter-spacing: -.03em; }
.brand-name sup { font-size: .58em; color: var(--accent); margin-left: 1px; top: -.7em; position: relative; vertical-align: baseline; }
.brand-sub { font-family: var(--f-head); font-size: .62rem; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: var(--d-muted); margin-top: 5px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: rgba(238, 241, 255, .82); font-weight: 500; font-size: .95rem;
  transition: color .2s ease, background-color .2s ease;
}
.nav-list a:hover, .nav-list a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--d-line);
  background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .ico-close { display: none; }
.nav-open .nav-toggle .ico-open { display: none; }
.nav-open .nav-toggle .ico-close { display: block; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 0;
  background:
    radial-gradient(900px 600px at 78% 35%, rgba(61, 90, 254, .35), transparent 65%),
    radial-gradient(700px 500px at 10% 100%, rgba(124, 77, 255, .22), transparent 60%),
    var(--ink);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 152, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 152, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-bottom: 56px; }
.hero h1 { color: #fff; margin-bottom: 24px; font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
.hero h1 .line { display: block; }
.hero .lead { font-size: 1.2rem; line-height: 1.6; max-width: 560px; color: var(--d-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 640px; margin-left: auto; filter: drop-shadow(0 40px 60px rgba(10, 15, 36, .6)); }

.marquee {
  position: relative; border-top: 1px solid var(--d-line); padding: 22px 0 110px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; color: rgba(238, 241, 255, .6); white-space: nowrap;
}
.marquee li::after { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: linear-gradient(135deg, var(--cyan), var(--violet)); border-radius: 2px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- stats */
.stats { position: relative; z-index: 2; margin-top: -78px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden;
}
.stat { padding: 30px 28px; display: flex; flex-direction: column-reverse; gap: 4px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--border); }
.stat dt { color: var(--muted); font-size: .95rem; font-weight: 500; }
.stat dd { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.stat .unit { color: var(--primary); }

/* ---------------------------------------------------------------- sections */
.section { padding: 120px 0; position: relative; }
.section.tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 18px; }
.section-lead { font-size: 1.12rem; color: var(--muted); }
.dark .section-lead { color: var(--d-muted); }
.section-head-row { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.section-head-row .section-lead { margin-bottom: .5em; }

/* services */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #CBD3EE; }
.svc-media { background: radial-gradient(circle at 50% 60%, #18216A 0, var(--ink-2) 70%); aspect-ratio: 3 / 2; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-media img { transform: scale(1.04); }
.svc-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; position: relative; }
.svc-icon {
  position: absolute; top: -26px; left: 30px; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet)); box-shadow: 0 10px 24px -8px rgba(61, 90, 254, .7);
}
.svc-icon .ico { width: 24px; height: 24px; }
.svc-body h3 { margin-top: 22px; font-size: 1.4rem; }
.svc-body p { color: var(--muted); font-size: 1rem; }
.ticks { display: grid; gap: 10px; margin: 6px 0 26px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 500; }
.ticks .ico { color: var(--primary); margin-top: 3px; }
.svc-body .link-arrow { margin-top: auto; }

/* solutions */
.solutions {
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(61, 90, 254, .25), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(34, 211, 238, .1), transparent 60%),
    var(--ink);
}
.tab-list {
  display: flex; gap: 6px; padding: 6px; margin-bottom: 40px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--d-line); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] {
  flex: none; border: 0; cursor: pointer; padding: 11px 20px; border-radius: 999px;
  background: transparent; color: var(--d-muted); font-family: var(--f-head); font-weight: 600; font-size: .92rem;
  transition: background-color .2s ease, color .2s ease;
}
.tab-list [role="tab"]:hover { color: #fff; }
.tab-list [role="tab"][aria-selected="true"] { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; box-shadow: 0 8px 20px -8px rgba(61, 90, 254, .8); }

.tab-panel {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 26px; border: 1px solid var(--d-line);
  background: linear-gradient(160deg, rgba(20, 27, 69, .85), rgba(14, 21, 51, .6));
  animation: panelIn .45s ease both;
}
.tab-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; color: #fff; }
.panel-copy > p { font-size: 1.05rem; }
.usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 28px 0 8px; }
.usecases li { position: relative; padding-left: 20px; font-size: .93rem; color: var(--d-muted); line-height: 1.5; }
.usecases li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--cyan); }
.usecases strong { display: block; color: #fff; font-weight: 600; font-size: .98rem; margin-bottom: 2px; }
.panel-copy .link-arrow { margin-top: 18px; }
.panel-art img { width: 100%; }

/* marketing */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split-copy .section-lead { margin-bottom: 30px; }
#marketing .split-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mk-item {
  padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.mk-item:hover { border-color: #C3CCF0; box-shadow: var(--shadow); transform: translateY(-3px); }
.mk-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); margin-bottom: 18px; }
.mk-icon .ico { width: 22px; height: 22px; }
.mk-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mk-item p { color: var(--muted); font-size: .95rem; margin: 0; }
.mk-cta { background: linear-gradient(150deg, var(--ink-3), var(--ink)); border-color: transparent; color: #fff; }
.mk-cta p { color: var(--d-muted); margin-bottom: 16px; }
.mk-cta:hover { border-color: transparent; }

/* work */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.work-card {
  display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); color: var(--text); transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.work-card picture { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.work-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s ease; }
.work-card:hover img { transform: scale(1.04); }
.work-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; }
.work-meta h3 { margin: 0 0 2px; font-size: 1.15rem; }
.work-meta p { margin: 0; color: var(--muted); font-size: .92rem; }
.work-go { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--ink); transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.work-card:hover .work-go { background: var(--accent); border-color: var(--accent); color: #fff; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 32px 26px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.step::after {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan)); transform: scaleX(.25); transform-origin: left; transition: transform .5s ease;
}
.step:hover::after { transform: scaleX(1); }
.step-no { display: block; font-family: var(--f-head); font-weight: 700; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--primary), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* about */
.about { background: radial-gradient(700px 500px at 0% 50%, rgba(61, 90, 254, .25), transparent 60%), var(--ink); }
.split-about { grid-template-columns: 1fr 1fr; align-items: center; }
.about-art img { width: 100%; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 1px solid var(--d-line); }
.about h2 { color: #fff; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 28px; }
.values li { display: flex; gap: 12px; font-size: .95rem; color: var(--d-muted); line-height: 1.5; }
.values strong { color: #fff; }
.values .ico { color: var(--cyan); margin-top: 3px; }

/* expertise */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-group { padding: 28px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--border); }
.tech-group h3 { font-size: 1.02rem; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: .85rem; font-weight: 500; color: var(--text); transition: border-color .2s ease, color .2s ease;
}
.chips li:hover { border-color: var(--primary); color: var(--primary); }

/* CTA band */
.cta-band { padding: 0 0 0; position: relative; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px 64px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(34, 211, 238, .45), transparent 60%),
    linear-gradient(120deg, var(--primary-600), var(--violet));
}
.cta-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image: linear-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .15) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 8px; max-width: 640px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .82); }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin: 32px 0; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.ci-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.ci-icon .ico { width: 22px; height: 22px; }
.ci-label { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .contact-list span:not(.ci-label):not(.ci-icon) { font-family: var(--f-head); font-weight: 600; color: var(--text); font-size: 1.05rem; }
.contact-list a:hover { color: var(--primary); }
.ci-icon.ci-wa { background: #E7F8EE; color: #128C4A; }
.ci-actions { display: flex; align-items: baseline; gap: 8px; }
.contact-list .ci-actions a { text-decoration: underline; text-decoration-color: rgba(18, 140, 74, .35); text-underline-offset: 4px; }
.contact-list .ci-actions a:hover { color: #128C4A; text-decoration-color: currentColor; }
.contact-list .ci-actions span.ci-or { font-family: var(--f-body); font-weight: 400; font-size: .9rem; color: var(--muted); }

.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text); transition: all .2s ease; }
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.socials .ico { width: 20px; height: 20px; }

.form-card { padding: 44px; border-radius: 24px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--tint);
  border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 13px 16px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2355607F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(61, 90, 254, .14); }
.field.invalid input, .field.invalid textarea { border-color: #E5484D; background: #FFF6F6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 500; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #12805C; }
.form-status.err { color: #D13438; }
.form-note { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.form-note a { color: var(--muted); text-decoration: underline; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending .ico { display: none; }
.is-sending { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.grecaptcha-badge { visibility: hidden; }

/* footer */
.site-footer { padding: 88px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { margin: 20px 0 24px; max-width: 340px; font-size: .95rem; }
.footer-brand .socials a { border-color: var(--d-line); color: var(--d-text); }
.footer-col h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--d-muted); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--d-line); }
.footer-bottom p { margin: 0; font-size: .88rem; }
.footer-bottom a { color: var(--d-muted); }
.footer-bottom a:hover { color: #fff; }

/* open-source enterprise GIS */
.open-gis { background: var(--tint); }
.split-gis { grid-template-columns: 1fr 1fr; align-items: start; }
.split > *, .gis-side > *, .compare-row > * { min-width: 0; }
.split-gis .section-lead strong { color: var(--text); }
.gis-art { margin-top: 28px; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 55%, #18216A 0, var(--ink-2) 72%); border: 1px solid var(--border); }
.gis-art img { width: 100%; }
.gis-side { display: grid; gap: 24px; }
.compare { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-row { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 16px; padding: 14px 20px; font-size: .92rem; align-items: center; }
.compare-row + .compare-row { border-top: 1px solid var(--border); }
.compare-row [role="rowheader"] { font-family: var(--f-head); font-weight: 600; color: var(--text); }
.compare-row [role="cell"] { color: var(--muted); }
.compare-row .win { color: #12805C; font-weight: 600; position: relative; padding-left: 22px; }
.compare-row .win::before { content: ""; position: absolute; left: 0; top: .2em; width: 14px; height: 14px; border-radius: 50%; background: #22C55E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.compare-head { background: var(--ink); padding-top: 12px; padding-bottom: 12px; }
.compare-head span { font-family: var(--f-head); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--d-muted); }
.compare-head span:last-child { color: #A7F3C9; }
.gis-points { display: grid; gap: 14px; }
.gis-points li { display: flex; gap: 12px; font-size: .97rem; color: var(--muted); line-height: 1.55; }
.gis-points strong { color: var(--text); }
.gis-points .ico { color: #16A34A; margin-top: 3px; }
.gis-stack-label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.gis-industries { padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.gis-industries .gis-stack-label { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); margin-bottom: 16px; }

/* product: LocalGrocerys.com */
.product-card {
  position: relative; overflow: hidden; border-radius: 28px; color: var(--d-text);
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(34, 197, 94, .22), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(61, 90, 254, .28), transparent 60%),
    var(--ink);
  box-shadow: var(--shadow-lg);
}
.product-top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; padding: 56px 56px 24px; }
.product-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #A7F3C9; font-size: .82rem; font-weight: 600; }
.product-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.product-name { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; margin: 18px 0 4px; color: #fff; font-weight: 700; }
.product-name span { color: #22C55E; }
.product-tag { font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; color: #A7F3C9 !important; margin-bottom: 14px; }
.product-intro > p:not(.product-tag) { color: var(--d-muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.product-art img { width: 100%; }
.product-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--d-line); }
.product-col { padding: 32px 56px 40px; }
.product-col + .product-col { border-left: 1px solid var(--d-line); }
.product-col h4 { font-family: var(--f-head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.product-col .ticks { margin: 0; }
.product-col .ticks li { color: var(--d-muted); font-weight: 500; }
.product-col .ticks .ico { color: #22C55E; }

/* company facts (About) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 32px 0 0; border: 1px solid var(--d-line); border-radius: var(--radius-sm); overflow: hidden; }
.facts > div { padding: 14px 18px; border-bottom: 1px solid var(--d-line); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--d-line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: .92rem; color: var(--d-text); line-height: 1.45; }
.facts a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }

/* contact NAP */
.contact-address { font-style: normal; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: #C3CCF0; box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.04rem; line-height: 1.4; }
.faq-icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--primary-50); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--primary); border-radius: 2px; transition: transform .25s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------------------------------------------------------------- reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav-list a { padding: 8px 10px; font-size: .9rem; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .section { padding: 88px 0; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: rgba(10, 15, 36, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--d-line); padding: 16px 24px 28px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: rgba(10, 15, 36, .97); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-cta-mobile { display: block; margin-top: 12px; }
  .nav-cta-mobile .btn { width: 100%; height: 52px; color: #fff; background: var(--accent); }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; padding-bottom: 32px; }
  .hero-art img { max-width: 520px; margin: 0 auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }

  .cards-3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tab-panel { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
  .panel-art { order: -1; max-width: 480px; margin: 0 auto; }
  .split, .split-about, .contact-grid, .section-head-row { grid-template-columns: 1fr; gap: 40px; }
  #marketing .split-copy { position: static; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .section-head { position: static; }
  .product-top { grid-template-columns: 1fr; padding: 40px 32px 8px; }
  .product-art { max-width: 520px; }
  .product-col { padding: 28px 32px 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero .lead { font-size: 1.08rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .marquee { padding-bottom: 96px; }
  .stat { padding: 22px 18px; }
  .usecases, .values, .mk-grid, .work-grid, .steps, .tech-grid, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .product-cols { grid-template-columns: 1fr; }
  .product-col + .product-col { border-left: 0; border-top: 1px solid var(--d-line); }
  .product-top { padding: 32px 20px 0; }
  .product-col { padding: 24px 20px 28px; }
  .product-actions .btn { flex: 1 1 100%; }
  .compare-row { grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 14px 16px; }
  .compare-row [role="rowheader"] { grid-column: 1 / -1; }
  .compare-head span:first-child { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd) { border-right: 0; }
  .facts > div:nth-last-child(2) { border-bottom: 1px solid var(--d-line); }
  .faq-item summary { padding: 18px 16px; }
  .faq-a { padding: 0 16px 18px; }
  .gis-industries .btn { width: 100%; white-space: normal; height: auto; min-height: 50px; padding: 12px 20px; text-align: center; }
  .tab-list { border-radius: 16px; }
  .tab-panel { padding: 24px 20px; border-radius: 20px; }
  .form-card { padding: 28px 20px; }
  .cta-inner { padding: 36px 24px; border-radius: 22px; }
  .cta-inner .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
