/* =========================================================
   Hamal Technologies — design system
   ========================================================= */
:root {
  --bg: #06070A;
  --bg-2: #0A0C11;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #EDEFF3;
  --text-2: #B9BFCC;
  --muted: #7C8394;
  --accent: #A9C4FF;
  --accent-strong: #7FA4FF;
  --mint: #8FE9CF;
  --warm: #FFC58A;
  --danger: #FF8F8F;
  --grad: linear-gradient(100deg, #E3EAFF 0%, #A9C4FF 45%, #8FE9CF 100%);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(169, 196, 255, .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .3s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #DCE5FA 100%); color: #0A0D16;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 8px 30px -8px rgba(169, 196, 255, .55);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 12px 44px -6px rgba(169, 196, 255, .75); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.25); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(6, 7, 10, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo__mark { width: 30px; height: 30px; }
.logo__word { font-weight: 700; letter-spacing: .14em; font-size: 15px; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--text); background: var(--surface-2); }
.nav__cta-mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Glows / backgrounds ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.glow--a { width: 720px; height: 720px; top: -280px; right: -160px; background: radial-gradient(circle, rgba(127,164,255,.28), transparent 65%); }
.glow--b { width: 560px; height: 560px; top: 260px; left: -260px; background: radial-gradient(circle, rgba(143,233,207,.12), transparent 65%); }
.glow--c { width: 900px; height: 600px; left: 50%; top: 0; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(127,164,255,.18), transparent 65%); }
.gridlines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 10%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 8vw, 96px)) 0 48px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; color: var(--text-2); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(143,233,207,.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(143,233,207,0); } }
.hero__title { margin-top: 24px; font-size: clamp(38px, 5vw, 68px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.hero__lead { margin-top: 24px; max-width: 560px; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--text-2); }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--mint); }

.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.network { width: 100%; height: 100%; overflow: visible; }
.orbit { fill: none; stroke: var(--line-2); }
.orbit--dashed { stroke-dasharray: 2 6; stroke: rgba(169,196,255,.25); transform-origin: 280px 280px; animation: spin 60s linear infinite; }
.orbit--faint { stroke: var(--line); }
@keyframes spin { to { transform: rotate(360deg); } }
.edges path { fill: none; stroke: url(#edge); stroke-width: 1.2; }
.edges .edge--cross { stroke: rgba(255,255,255,.08); stroke-dasharray: 3 5; }
.pkt { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(169,196,255,.9)); }
.pkt--mint { fill: var(--mint); filter: drop-shadow(0 0 6px rgba(143,233,207,.9)); }
.pkt--warm { fill: var(--warm); filter: drop-shadow(0 0 5px rgba(255,197,138,.8)); }
.core__ring { fill: none; stroke: rgba(169,196,255,.35); stroke-dasharray: 1 5; transform-origin: 280px 280px; animation: spin 18s linear infinite reverse; }
.node circle { fill: #0C0F17; stroke: rgba(255,255,255,.16); transition: stroke .3s; }
.node path { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node { animation: nodeGlow 6s var(--d) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nodeGlow { 0%, 70%, 100% { opacity: 1; } 80% { opacity: .65; } }
.nlabel {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 11px; color: var(--text-2); letter-spacing: .02em;
  padding: 3px 8px; border-radius: 999px; background: rgba(6,7,10,.75); border: 1px solid var(--line); white-space: nowrap; pointer-events: none;
}
.nlabel { margin-top: 38px; }

.agentlog {
  position: absolute; left: 50%; bottom: -9%; transform: translateX(-50%); width: min(264px, 92%);
  background: rgba(12, 14, 20, .78); border: 1px solid var(--line-2); border-radius: 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  padding: 12px 14px; font-size: 12.5px;
}
.agentlog__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); }
.agentlog__status { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; }
.agentlog__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.agentlog__list { display: grid; gap: 6px; min-height: 96px; }
.agentlog__list li { display: grid; grid-template-columns: auto 1fr; gap: 8px; color: var(--text-2); line-height: 1.4; animation: logIn .5s var(--ease); }
.agentlog__list li b { font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: var(--accent); padding-top: 1px; }
.agentlog__list li.is-old { opacity: .45; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }

.stack { margin-top: clamp(56px, 8vw, 96px); text-align: center; }
.stack__label { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 48px; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: 17px; font-weight: 600; color: #5F6677; letter-spacing: -0.01em; white-space: nowrap; transition: color .2s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section + .section:not(.section--tight)::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(var(--container), calc(100% - var(--gutter) * 2)); height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow span { color: var(--muted); }
.eyebrow span::after { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--line-2); margin-left: 12px; vertical-align: middle; }
.h2 { margin-top: 18px; font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.06; }
.lead { margin-top: 20px; font-size: clamp(16px, 1.3vw, 18px); color: var(--text-2); max-width: 640px; }

.value__text { font-size: clamp(22px, 3vw, 38px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; max-width: 1000px; }

/* ---------- Cards ---------- */
.card, .case {
  position: relative; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line); padding: 28px; overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .4s var(--ease);
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(169,196,255,.09), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(169,196,255,.55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.card h3 { font-size: 20px; margin: 22px 0 10px; }
.card p { color: var(--text-2); font-size: 15px; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(169,196,255,.14), rgba(169,196,255,.04)); border: 1px solid rgba(169,196,255,.22); }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card--feature { grid-column: span 2; grid-row: span 1; display: flex; flex-direction: column; background: radial-gradient(120% 140% at 100% 0%, rgba(127,164,255,.14), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); }
.card--feature h3 { font-size: 26px; }
.card--feature p { max-width: 560px; font-size: 16px; }
.card__flow { margin-top: auto; padding-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card__flow i { width: 28px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--accent)); position: relative; }
.card__flow i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left-color: var(--accent); }
.chip { font-family: var(--mono); font-size: 12px; padding: 7px 12px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--text-2); }
.chip--accent { color: var(--bg); background: var(--grad); border-color: transparent; font-weight: 500; }
.card--wide { grid-column: span 2; display: flex; flex-direction: column; background: radial-gradient(120% 140% at 0% 100%, rgba(143,233,207,.08), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.tags li { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }

.inline-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 20px 20px 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.inline-cta p { color: var(--text-2); }

/* ---------- Tabs / Solutions ---------- */
.tabs { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 8px; }
.tabs__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { flex: 0 0 auto; border: 1px solid transparent; background: transparent; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: background .25s, color .25s, border-color .25s; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.tabs__panels { padding: clamp(16px, 3vw, 32px); }
.tabs__panel.is-active { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.ba__col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.ba__col--before { background: rgba(255,255,255,.015); }
.ba__col--after { background: radial-gradient(120% 120% at 100% 0%, rgba(143,233,207,.10), transparent 60%), rgba(255,255,255,.03); border-color: rgba(143,233,207,.22); }
.ba__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.ba__col--after .ba__label { color: var(--mint); }
.ba ul { display: grid; gap: 12px; }
.ba li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--text-2); }
.ba__col--before li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 1.5px; background: var(--muted); }
.ba__col--after li { color: var(--text); }
.ba__col--after li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: rgba(143,233,207,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.7l4.5-5' fill='none' stroke='%238FE9CF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ba__arrow { display: grid; place-items: center; color: var(--accent); }
.ba__arrow svg { width: 36px; height: 36px; }

.industries { margin-top: 48px; }
.industries__label { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.industries__list { display: flex; flex-wrap: wrap; gap: 10px; }
.industries__list li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); background: var(--surface); transition: border-color .2s, color .2s; }
.industries__list li:hover { border-color: rgba(169,196,255,.4); color: var(--text); }

/* ---------- Niches ---------- */
.niche__product { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 17px; font-weight: 600; }
.niche__product span { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--bg); background: var(--grad); padding: 5px 10px; border-radius: 8px; }
.niche__foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 24px; align-items: center; }
.niche__chat { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.niche__chat p { margin: 0; max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.niche__me { align-self: flex-end; background: linear-gradient(135deg, rgba(169,196,255,.22), rgba(127,164,255,.14)); border: 1px solid rgba(169,196,255,.28); border-bottom-right-radius: 4px; color: var(--text); }
.niche__bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; color: var(--text-2); }
.niche__reco p { color: var(--text-2); font-size: 15.5px; margin-bottom: 16px; }
.niche__reco span { display: block; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--mint); margin-bottom: 6px; }
.niche__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.niche__note { margin-top: 24px; font-size: 14px; color: var(--muted); }
.niche__note a { color: var(--accent); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--mint) 60%, transparent); opacity: .35; }
.step { position: relative; padding: 0 4px; }
.step__num { position: relative; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 0 0 6px var(--bg); }
.step__num::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle at 30% 20%, rgba(169,196,255,.25), transparent 70%); }
.step__meta { margin-top: 24px; color: var(--mint); }
.step h3 { font-size: 20px; margin: 10px 0 12px; }
.step p { color: var(--text-2); font-size: 15px; }
.step .step__out { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.step__out span { color: var(--muted); }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case { display: flex; flex-direction: column; padding: 32px; }
.case__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.case__industry { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.badge { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--warm); background: rgba(255,197,138,.08); border: 1px solid rgba(255,197,138,.25); }
.case h3 { font-size: 23px; margin: 20px 0 20px; }
.case__body { margin: 0; display: grid; gap: 16px; }
.case__body dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; }
.case__body dd { margin: 0; color: var(--text-2); font-size: 15px; }
.case__metrics { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case__metrics div { padding: 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.case__metrics strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__metrics span { font-size: 13px; color: var(--muted); }
.case__note { margin-top: 12px; font-size: 12px; color: var(--muted); font-style: italic; }

/* ---------- Why ---------- */
.why { display: grid; gap: 48px; }
.why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why__item { background: var(--bg); padding: 32px; transition: background .3s; }
.why__item:hover { background: var(--bg-2); }
.why__ico { font-size: 10px; color: var(--mint); }
.why__item h3 { font-size: 19px; margin: 16px 0 10px; }
.why__item p { color: var(--text-2); font-size: 15px; }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-weight: 600; font-size: 13px; color: var(--muted); }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { color: var(--text-2); }
.compare .is-us { background: rgba(169,196,255,.06); color: var(--text); }
.compare thead .is-us { color: var(--accent); font-size: 14px; letter-spacing: .12em; }
.y, .n { display: inline-flex; align-items: center; gap: 8px; }
.y::before, .n::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.y::before { background: var(--mint); }
.n::before { background: #4B5160; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq__head .btn { margin-top: 28px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; transition: color .2s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .3s var(--ease), background .3s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__item[open] summary i { background: var(--surface-2); transform: rotate(180deg); }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 48px 24px 0; color: var(--text-2); }
.faq__item[open] .faq__a { animation: fadeUp .4s var(--ease); }

/* ---------- CTA + Form ---------- */
.cta { overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.cta__list { margin-top: 32px; display: grid; gap: 14px; }
.cta__list li { display: flex; gap: 16px; align-items: baseline; color: var(--text); font-size: 16px; }
.cta__list b { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--accent); }
.cta__contact { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.cta__contact p { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.cta__contact a { color: var(--text); font-weight: 500; width: fit-content; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.cta__contact a:hover { border-color: var(--accent); }

.form-wrap { position: relative; border-radius: 24px; padding: 1px; background: linear-gradient(160deg, rgba(169,196,255,.45), rgba(255,255,255,.06) 40%, rgba(143,233,207,.25)); box-shadow: 0 40px 100px -30px rgba(127,164,255,.35); }
.form, .form-success { border-radius: 23px; background: linear-gradient(180deg, #0E111A, #090B10); padding: clamp(22px, 3.5vw, 36px); }
.form { display: grid; gap: 18px; }
.form__head h3 { font-size: 22px; }
.form__head p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 13.5px; font-weight: 500; color: var(--text-2); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 12px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: rgba(255,255,255,.035); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 13px 14px; transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #545B6A; }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(169,196,255,.05); box-shadow: 0 0 0 4px rgba(169,196,255,.12); }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255,143,143,.1); }
.field__err { font-size: 12.5px; color: var(--danger); min-height: 0; }
.field__err:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); cursor: pointer; transition: all .2s; user-select: none; }
.choice span:hover { border-color: rgba(255,255,255,.25); color: var(--text); }
.choice input:checked + span { background: rgba(169,196,255,.14); border-color: var(--accent); color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-strong); }
.consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.form__fine { text-align: center; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(10,13,22,.25); border-top-color: #0A0D16; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.form-success { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 64px; }
.form-success[hidden], .form[hidden] { display: none; }
.form-success__icon { width: 64px; height: 64px; color: var(--mint); }
.form-success__icon svg { width: 100%; height: 100%; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--text-2); max-width: 360px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: 72px 0 24px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.footer__tagline { color: var(--text-2); }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.footer__col h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.footer__col a { color: var(--text-2); width: fit-content; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__addr { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--text); }
.footer__giant { font-weight: 800; letter-spacing: .12em; font-size: clamp(80px, 20vw, 280px); line-height: .8; text-align: center; margin-top: 48px; margin-bottom: -0.18em; background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- Modal ---------- */
.modal { border: 1px solid var(--line-2); border-radius: 20px; padding: 0; background: #0E111A; color: var(--text); max-width: min(560px, calc(100% - 32px)); box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.modal::backdrop { background: rgba(3,4,6,.7); backdrop-filter: blur(6px); }
.modal__inner { padding: 36px 32px 32px; display: grid; gap: 14px; position: relative; }
.modal__inner h3 { font-size: 22px; padding-right: 40px; }
.modal__inner p { color: var(--text-2); font-size: 15px; }
.modal__inner a { color: var(--accent); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-size: 22px; line-height: 1; }
.modal__close:hover { background: var(--surface-2); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a:not(.btn) { padding: 8px 9px; font-size: 13.5px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .steps::before { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .header__cta { display: none; }
  /* AI-agent orb sits in the header, left of the burger */
  #nodus-site-agent { --nsa-top: 12px; --nsa-size: 40px; --nsa-right: calc(var(--gutter) + 54px); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; gap: 0; padding: 16px var(--gutter) 32px;
    background: rgba(6,7,10,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 16px 4px; font-size: 20px; font-weight: 500; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a:not(.btn):hover, .nav a.is-active { background: transparent; }
  .nav a.is-active { color: var(--accent); }
  .nav__cta-mobile { display: inline-flex; margin-top: 24px; --h: 52px; font-size: 16px; }
  .header.menu-open { background: rgba(6,7,10,.97); }
  body.no-scroll { overflow: hidden; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 520px; margin-top: 16px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--feature { grid-column: span 2; }
  .card--wide, .bento > .card:nth-child(6) { grid-column: span 2; }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .cta__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .ba { grid-template-columns: 1fr; gap: 12px; }
  .ba__arrow { transform: rotate(90deg); }
  .ba__arrow svg { width: 28px; height: 28px; }
  .ba__col { padding: 22px; }
  .cases { grid-template-columns: 1fr; }
  .case { padding: 24px; }
  .niche__foot { grid-template-columns: 1fr; }
  .niche__btns .btn { width: 100%; }
  .inline-cta { padding: 20px; }
  .inline-cta .btn { width: 100%; }
}

@media (max-width: 600px) {
  .hero__ctas .btn { width: 100%; }
  .hero__title { font-size: clamp(34px, 9.4vw, 44px); }
  .bento { grid-template-columns: 1fr; }
  .card--feature, .card--wide, .bento > .card:nth-child(6) { grid-column: auto; }
  .card { padding: 24px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding-bottom: 32px; position: relative; }
  .step::before { content: ""; position: absolute; left: 26px; top: 52px; bottom: 0; width: 1px; background: linear-gradient(var(--line-2), transparent); }
  .step:last-child::before { display: none; }
  .step:last-child { padding-bottom: 0; }
  .step__num { width: 52px; height: 52px; font-size: 13px; grid-row: span 4; box-shadow: none; }
  .step__meta { margin-top: 4px; }
  .why__grid { grid-template-columns: 1fr; }
  .why__item { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .faq__a { padding-right: 0; }
  .faq__item summary { font-size: 16px; padding: 20px 0; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
  .nlabel { font-size: 9.5px; padding: 2px 6px; margin-top: 30px; }
  .agentlog { top: calc(100% + 4px); bottom: auto; width: 100%; }
  .agentlog__list { min-height: 0; }
  .agentlog__list li:nth-child(n+3) { display: none; }
  .hero__visual { margin-bottom: 110px; }
  .case__metrics strong { font-size: 22px; }
  .compare table { min-width: 560px; font-size: 13.5px; }
  .compare th, .compare td { padding: 14px; }
  .compare tbody th { position: sticky; left: 0; background: #0B0D12; z-index: 1; width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .packets { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
