/* ===== Theme tokens ===== */
/* Dark (default) */
:root {
  --bg: #0a0f1f;
  --bg-2: #0d1428;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f6fc;
  --text-soft: #cfd7ea;
  --muted: #9aa6c2;
  --primary: #3b6cf6;
  --primary-2: #2f5be0;
  --accent: #4fd1e0;
  --accent-bg: rgba(79, 209, 224, 0.1);
  --accent-border: rgba(79, 209, 224, 0.25);
  --link: #a9c1ff;
  --grad-start: #ffffff;
  --grad-mid: #a9c1ff;
  --hero-glow: #121c3d;
  --header-bg: rgba(10, 15, 31, 0.82);
  --menu-bg: rgba(10, 15, 31, 0.97);
  --input-bg: rgba(10, 15, 31, 0.7);
  --node-bg: rgba(13, 20, 40, 0.9);
  --footer-bg: #070b17;
  --footer-link: #a9b5d0;
  --card-shadow: none;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  /* hero network (r,g,b) */
  --net-line: 150, 175, 230;
  --net-dot: 200, 215, 255;
  --net-warm: 240, 130, 90;
  --radius: 16px;
  --maxw: 1200px;
  color-scheme: dark;
}

/* Light */
:root[data-theme="light"] {
  --bg: #f7f9fd;
  --bg-2: #eef2fa;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --hover-bg: rgba(15, 23, 42, 0.04);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0b1430;
  --text-soft: #334155;
  --muted: #5b6680;
  --primary: #2f5be0;
  --primary-2: #2449c4;
  --accent: #0b8fa3;
  --accent-bg: rgba(11, 143, 163, 0.08);
  --accent-border: rgba(11, 143, 163, 0.25);
  --link: #2f5be0;
  --grad-start: #0b1430;
  --grad-mid: #2f5be0;
  --hero-glow: #dbe5ff;
  --header-bg: rgba(255, 255, 255, 0.85);
  --menu-bg: rgba(255, 255, 255, 0.98);
  --input-bg: #f7f9fd;
  --node-bg: #ffffff;
  --footer-bg: #0b1430;
  --footer-link: #a9b5d0;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -14px rgba(15, 23, 42, 0.15);
  --shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.3);
  --net-line: 47, 91, 224;
  --net-dot: 47, 91, 224;
  --net-warm: 11, 143, 163;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.grad {
  background: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; flex-shrink: 0;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 30px -10px rgba(59, 108, 246, .7); }
.btn-primary:hover { background: var(--primary-2); box-shadow: 0 14px 34px -10px rgba(59, 108, 246, .9); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); background: var(--hover-bg); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
/* Logo 6b: "BizApps" wordmark, gradient diamond over the i, spaced STUDIO */
.logo {
  display: inline-flex; align-items: baseline; gap: .32em; flex-shrink: 0;
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  white-space: nowrap; color: var(--text);
}
.logo .i { position: relative; display: inline-block; }
.logo .i::after {
  content: ""; position: absolute; left: 50%; top: .02em; width: .27em; height: .27em;
  transform: translateX(-50%) rotate(45deg); border-radius: .04em;
  background: linear-gradient(135deg, #3b6cf6, #4fd1e0);
  transition: transform .5s ease;
}
.logo:hover .i::after { transform: translateX(-50%) rotate(225deg); }
.logo small { font-size: .3em; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-links a:not(.btn) {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-soft); position: relative; transition: color .2s; white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  transition: transform .3s ease, border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* dark mode shows the sun (switch to light); light mode shows the moon */
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; border-radius: 2px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; display: flex; align-items: center;
  overflow: hidden; padding: 168px 0 136px;
  background: radial-gradient(1200px 600px at 80% 20%, var(--hero-glow) 0%, transparent 60%), var(--bg);
}
#network { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; width: 700px; height: 700px; right: -200px; top: 10%;
  background: radial-gradient(circle, rgba(59,108,246,.22), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-inner { min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); font-weight: 800; margin-bottom: 24px; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

/* Platform chips under the hero copy */
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack li { font-size: .8rem; font-weight: 600; color: var(--text-soft); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); }
.stack .stack-label { border: 0; background: none; padding-left: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }

/* Example agent conversation */
.agent {
  margin: 0; min-width: 0; padding: 22px; border-radius: 20px; display: grid; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
:root[data-theme="light"] .agent { background: rgba(255,255,255,.88); }
.agent-head { display: flex; align-items: center; gap: 10px; font-size: .88rem; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.live { width: 9px; height: 9px; border-radius: 50%; background: #1fa968; box-shadow: 0 0 0 4px rgba(31,169,104,.18); }
.agent-tag { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; animation: introUp .6s ease both; }
.msg span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; opacity: .7; }
.msg.customer { justify-self: end; background: var(--hover-bg); border: 1px solid var(--border); border-bottom-right-radius: 4px; }
.msg.bot { justify-self: start; background: linear-gradient(135deg, var(--primary), #2a8fd0); color: #fff; border-bottom-left-radius: 4px; }
.agent .msg:nth-of-type(1) { animation-delay: .3s; }
.agent .msg:nth-of-type(2) { animation-delay: .7s; }
.agent .msg:nth-of-type(3) { animation-delay: 1.1s; }
.agent-actions { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--border-strong); display: grid; gap: 6px; animation: introUp .6s 1.5s ease both; }
.agent-actions li { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-soft); }
.agent-actions li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; background: rgba(31,169,104,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%231fa968' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--text); animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 44px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 120px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 18px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; }
.about-copy .muted { margin-bottom: 18px; font-size: 1.05rem; }
.about-copy .btn { margin-top: 12px; }
.about-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%;
  border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--card-shadow);
  background: radial-gradient(circle at 50% 50%, rgba(59,108,246,.18), transparent 60%), var(--surface);
  overflow: hidden;
}
.orbit { position: absolute; inset: 0; }
.orbit::before, .orbit::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px dashed var(--border-strong);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.orbit::before { width: 72%; height: 72%; animation: spin 60s linear infinite; }
.orbit::after { width: 44%; height: 44%; animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 10px rgba(59,108,246,.12), 0 0 60px rgba(79,209,224,.45);
}
.node {
  position: absolute; padding: 8px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: var(--node-bg); border: 1px solid var(--border-strong); white-space: nowrap;
  box-shadow: var(--card-shadow);
  animation: float 6s ease-in-out infinite;
}
.n1 { left: 50%; top: 10%; transform: translateX(-50%); }
.n2 { right: 6%; top: 28%; animation-delay: -1s; }
.n3 { right: 10%; bottom: 22%; animation-delay: -2s; }
.n4 { left: 50%; bottom: 9%; transform: translateX(-50%); animation-delay: -3s; }
.n5 { left: 10%; bottom: 24%; animation-delay: -4s; }
.n6 { left: 5%; top: 28%; animation-delay: -5s; }
@keyframes float { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }

.principles { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 16px; }
.principles li { padding-left: 18px; border-left: 2px solid var(--accent-border); }
.principles h3 { font-size: 1.05rem; margin-bottom: 4px; }
.principles p { color: var(--muted); font-size: .95rem; }

/* Solutions */
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  width: fit-content; margin: 0 auto 40px;
}
.tab {
  font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--muted);
  background: none; border: 0; padding: 10px 14px; border-radius: 10px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(59,108,246,.8); }
.panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.panel.active { display: grid; animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel-intro { grid-column: 1 / -1; text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 8px; }
.sol {
  display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.sol:hover { transform: translateY(-6px); border-color: rgba(59,108,246,.5); box-shadow: var(--shadow); }
.tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-border);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 20px;
}
.sol h3 { font-size: 1.3rem; margin-bottom: 12px; }
.sol p { color: var(--muted); font-size: 0.95rem; flex: 1; margin-bottom: 22px; }
.more { font-weight: 600; font-size: 0.9rem; color: var(--link); transition: color .2s, letter-spacing .2s; }
.more:hover { color: var(--text); letter-spacing: .02em; }

/* Use cases: before / with AI */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); display: grid; gap: 14px; align-content: start; }
.case .tag { margin-bottom: 0; justify-self: start; }
.case h3 { font-size: 1.3rem; }
.case dl { margin: 0; display: grid; gap: 10px; }
.case dl div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 12px 14px; border-radius: 12px; }
.case dt { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.case dd { margin: 0; font-size: .95rem; }
.case .before { background: var(--hover-bg); }
.case .before dt, .case .before dd { color: var(--muted); }
.case .after { background: var(--accent-bg); border: 1px solid var(--accent-border); }
.case .after dt { color: var(--accent); }

/* How we work: vertical stepper with deliverables */
.journey { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.journey-head { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.journey-head .muted { margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.stepper { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding-bottom: 36px; position: relative; }
.stepper:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: linear-gradient(var(--primary), var(--accent)); opacity: .4; }
.step-no { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; background: var(--bg-2); border: 2px solid var(--primary); }
.step-body h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.step-body p { color: var(--muted); }
.deliver { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft) !important; font-size: .92rem; box-shadow: var(--card-shadow); }
.deliver b { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-copy .muted { font-size: 1.05rem; margin-bottom: 30px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text-soft); }
.contact-list a:hover { color: var(--link); }
.contact-form {
  padding: 36px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 18px; box-shadow: var(--shadow);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; font-size: 0.95rem; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,108,246,.2);
}
.contact-form .invalid { border-color: #e05555; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--link); text-decoration: underline; }
.contact-form button:disabled { opacity: .7; cursor: wait; transform: none; }
.form-status { font-size: 0.9rem; min-height: 1.2em; text-align: center; }
.form-status.ok { color: #1fa968; }
.form-status.err { color: #e05555; }

/* Footer — dark navy in both themes for a grounded finish */
.site-footer { border-top: 1px solid var(--border); background: var(--footer-bg); color: #f3f6fc; padding-top: 72px; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #4fd1e0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { color: #9aa6c2; font-size: 0.92rem; margin-top: 14px; max-width: 300px; }
.site-footer h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #4fd1e0; margin-bottom: 18px; }
.site-footer .footer-grid a:not(.logo) { display: block; color: var(--footer-link); font-size: 0.92rem; margin-bottom: 10px; transition: color .2s; }
.site-footer .footer-grid a:not(.logo):hover { color: #fff; }
.site-footer a.accent { color: #a9c1ff !important; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.08);
  color: #9aa6c2; font-size: 0.85rem;
}
.footer-bottom a:hover { color: #fff; }
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .footer-grid a.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; }
.site-footer a.social .li-icon { width: 18px; height: 18px; fill: #4fd1e0; }
.contact-list svg.li-icon { fill: var(--accent); stroke: none; width: 20px; height: 20px; margin: 0 2px; }
.contact-list a:hover { text-decoration: underline; }
.offices { color: var(--footer-link); font-size: .92rem; line-height: 1.9; margin-bottom: 10px; }

/* Legal pages */
.legal-page { padding: calc(130px + env(safe-area-inset-top, 0px)) 0 96px; }
.site-header .nav > .btn { margin-left: auto; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.prose h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text-soft); line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 6px; }
.prose a { color: var(--link); text-decoration: underline; }
.prose strong { color: var(--text); }

/* ===== E-Invoice Hub product page ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.anchor { position: absolute; top: -120px; }
.contact-form { position: relative; }
.ei-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text); background: rgba(31,169,104,.12); border: 1px solid rgba(31,169,104,.45); }
.ei-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd38a; box-shadow: 0 0 0 4px rgba(47,211,138,.2); }
.ei-hero .eyebrow { margin-bottom: 14px; }
.ei-product { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; }
.ei-product b { font-size: 1.6rem; font-weight: 800; letter-spacing: .22em; background: linear-gradient(90deg, var(--grad-mid), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ei-product span { font-size: .95rem; font-weight: 600; color: var(--text-soft); }
.ei-tagline { font-size: .9rem; font-weight: 600; color: var(--accent); margin: -4px 0 14px; }
.ei-steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ei-inv { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.ei-inv th { text-align: left; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px; }
.ei-inv th:nth-child(2), .ei-inv td:nth-child(2) { text-align: right; }
.ei-inv td { padding: 10px 8px; border-top: 1px solid var(--border); vertical-align: middle; color: var(--text-soft); }
.ei-inv td b { display: block; color: var(--text); font-weight: 600; }
.ei-inv td span:not(.st) { font-size: .76rem; color: var(--muted); }
.ei-inv tr.flag td { border-top-color: rgba(224,85,85,.35); }
.ei-inv tr.fix td { border-top: 0; padding-top: 0; font-size: .78rem; color: #e05555; }
.st { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.st.ok { color: #1fa968; background: rgba(31,169,104,.14); }
.st.done { color: var(--link); background: rgba(59,108,246,.14); }
.st.err { color: #e05555; background: rgba(224,85,85,.14); }
.st.wait { color: #c98a16; background: rgba(214,152,30,.16); }
.ei-checked { margin-top: 2px; padding-top: 12px; border-top: 1px dashed var(--border-strong); font-size: .84rem; color: var(--text-soft); }
.ei-checked span { color: #1fa968; font-weight: 800; margin-right: 6px; }

.ei-challenge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ei-challenge .muted { font-size: 1.08rem; }
.ei-pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ei-pain { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.ei-pain strong { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--accent); margin-bottom: 8px; }
.ei-pain h3 { font-size: 1.05rem; margin-bottom: 6px; }
.ei-pain p { color: var(--muted); font-size: .95rem; }

.ei-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--card-shadow); }
.ei-dates { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ei-dates th, .ei-dates td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--border); }
.ei-dates thead th { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ei-dates tbody th { font-weight: 600; color: var(--text); }
.ei-dates td { color: var(--text-soft); }
.ei-dates tbody tr:last-child th, .ei-dates tbody tr:last-child td { border-bottom: 0; }
.ei-dates tr.soon { background: var(--accent-bg); }
.ei-dates tr.soon td b { color: var(--accent); }
.ei-note { margin-top: 14px; font-size: .85rem; color: var(--muted); text-align: center; }

.ei-flow { display: flex; align-items: center; justify-content: center; gap: 0; margin: -16px auto 40px; max-width: 760px; }
.ei-flow span { flex-shrink: 0; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); }
.ei-flow span.hub { color: #fff; background: linear-gradient(135deg, var(--primary), #2a8fd0); border-color: transparent; box-shadow: 0 10px 28px -10px rgba(59,108,246,.8); }
.ei-flow i { flex: 1; min-width: 24px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: .5; }
.ei-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ei-steps li { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.ei-steps .step-no { width: 44px; height: 44px; font-size: 1rem; margin-bottom: 16px; }
.ei-steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.ei-steps p { color: var(--muted); font-size: .94rem; }

.ei-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ei-features .sol p { margin-bottom: 0; }
.ei-features .ei-ai { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(59,108,246,.16), var(--accent-bg)); border-color: var(--accent-border); }
.ei-features .ei-ai .tag { color: #fff; background: var(--primary); border-color: transparent; }

.ei-readiness { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px; border-radius: 24px; color: #f3f6fc;
  background: radial-gradient(500px 260px at 100% 100%, rgba(79,209,224,.22), transparent 60%), radial-gradient(500px 260px at 0% 0%, rgba(59,108,246,.32), transparent 60%), #0d1428;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.ei-readiness .eyebrow { color: #4fd1e0; }
.ei-readiness h2 { color: #fff; margin-bottom: 12px; }
.ei-readiness p:not(.eyebrow) { color: #cfd7ea; max-width: 640px; }

.ei-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ei-why article { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.ei-why h3 { font-size: 1.12rem; margin-bottom: 8px; }
.ei-why p { color: var(--muted); }

.ei-faq-wrap { max-width: 820px; }
.ei-faq { display: grid; gap: 12px; }
.ei-faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.ei-faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ei-faq summary::-webkit-details-marker { display: none; }
.ei-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
.ei-faq details[open] summary::after { transform: rotate(45deg); }
.ei-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 14px; }
.ei-faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Home page product highlight */
.product { padding: 40px 0 0; }
.product-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding: 44px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(59,108,246,.12), var(--accent-bg)), var(--surface); border: 1px solid var(--accent-border); box-shadow: var(--card-shadow); }
.product-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 12px; }
.product-card p.muted { margin-bottom: 24px; }
.product-card .hero-actions { margin-bottom: 0; }
.product-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.product-dates li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.product-dates li b { color: var(--text); white-space: nowrap; }

@media (max-width: 1024px) {
  .ei-challenge { grid-template-columns: 1fr; gap: 36px; }
  .ei-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ei-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ei-readiness { flex-direction: column; align-items: flex-start; padding: 40px; }
  .product-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ei-pains, .ei-steps, .ei-steps.three, .ei-features, .ei-why { grid-template-columns: 1fr; }
  .ei-flow { flex-direction: column; gap: 6px; margin-top: -8px; }
  .ei-flow i { width: 2px; height: 16px; flex: none; min-width: 0; }
  .ei-readiness { padding: 32px 24px; }
  .product-card { padding: 28px 22px; }
  .ei-inv td, .ei-inv th { padding-left: 4px; padding-right: 4px; }
}

/* Reveal on scroll */
.reveal { transform: translateY(16px); transition: transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Hero entrance — pure CSS so it never depends on scroll detection */
.intro { animation: introUp .8s ease both; }
.intro:nth-child(2) { animation-delay: .08s; }
.intro:nth-child(3) { animation-delay: .16s; }
.intro:nth-child(4) { animation-delay: .24s; }
.intro:nth-child(5) { animation-delay: .32s; }
@keyframes introUp { from { transform: translateY(18px); } to { transform: none; } }

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about, .contact, .journey { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .agent { max-width: 560px; }
  .journey-head { position: static; }
  .panel { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1220px) {
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
}
@media (max-width: 640px) {
  .tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) { .nav-links { gap: 24px; } }
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px; background: var(--menu-bg); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); margin-left: 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 16px; }
}
@media (max-width: 820px) {
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 84px 0; }
  .panel { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .case { padding: 22px; }
  .case dl div { grid-template-columns: 1fr; gap: 4px; }
  .stepper { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .step-no { width: 44px; height: 44px; font-size: 1rem; }
  .stepper:not(:last-child)::before { left: 21px; top: 44px; }
  .step-body h3 { margin-top: 8px; }
  .tabs { width: 100%; }
  .tab { flex: 1 1 auto; padding: 9px 12px; font-size: 0.82rem; }
  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .node { font-size: 0.7rem; padding: 6px 10px; }
  .stat { padding: 28px 8px; }
  .stat span { font-size: 0.78rem; display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
