/* =========================================================
   NurTek 2026 — refined minimalism, white canvas, lime spark
   Stack: vanilla HTML/CSS/JS · no build · progressive enhancement
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --panel: #f6f6f2;
  --ink: #0e0e0d;
  --ink-2: #3a3a37;
  --muted: #75756d;
  --line: #e8e8e1;
  --line-2: #d8d8cf;
  --accent: #c8f94c;
  --accent-deep: #aee029;
  --dark: #0e0e0d;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);

  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-card: 0 1px 2px rgba(14, 14, 13, .04), 0 12px 30px -18px rgba(14, 14, 13, .22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Shared type bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 4px rgba(174, 224, 41, .2); }
.eyebrow-light { color: rgba(255, 255, 255, .6); }
.eyebrow-light .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(200, 249, 76, .18); }

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--bh); padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 15.5px; font-weight: 600;
  letter-spacing: -.01em; cursor: pointer;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 19px; height: 19px; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { --bh: 42px; padding: 0 20px; font-size: 14.5px; }
.btn-block { width: 100%; }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(14, 14, 13, .5); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(174, 224, 41, .7); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 24px; height: 24px; flex: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='9' fill='%230e0e0d'/%3E%3Ccircle cx='10' cy='11' r='2.6' fill='%23c8f94c'/%3E%3Ccircle cx='10' cy='21' r='2.6' fill='%23c8f94c'/%3E%3Ccircle cx='22' cy='16' r='3.2' fill='%23c8f94c'/%3E%3Cpath d='M12.4 11.6 19 15M12.4 20.4 19 17' stroke='%23c8f94c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.brand-name { font-size: 19px; letter-spacing: -.02em; }

.nav { display: flex; gap: 34px; }
.nav a { font-size: 15px; color: var(--ink-2); font-weight: 500; position: relative; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--accent-deep); transition: width .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 11px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px var(--pad) 22px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-nav a { padding: 12px 4px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 92px); padding-bottom: clamp(40px, 6vw, 64px); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14, 14, 13, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 14, 13, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 75% 5%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 75% 5%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }

.hero-title {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 700;
  margin: 22px 0 0;
}
.hero-title em { letter-spacing: -.01em; }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 30em; line-height: 1.5; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* metric strip */
.metrics {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg);
}
.metric { padding: 26px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.metric:last-child { border-right: none; }
.m-val { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.03em; }
.m-lab { font-size: 14px; color: var(--muted); }

/* ---------- Hero canvas (the interesting part) ---------- */
.hero-canvas {
  background: linear-gradient(180deg, #fcfcfa, #f4f4ef);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.canvas-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.canvas-dots { display: inline-flex; gap: 6px; }
.canvas-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.canvas-dots i:first-child { background: #ffbcb0; }
.canvas-label { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.canvas-live { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase; letter-spacing: .08em; }
.canvas-live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-deep); animation: blink 1.6s var(--ease) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(174, 224, 41, .5); } 50% { opacity: .5; box-shadow: 0 0 0 6px rgba(174, 224, 41, 0); } }

.diagram {
  position: relative; width: 100%; aspect-ratio: 800 / 480;
  background-image: radial-gradient(rgba(14, 14, 13, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 7 9; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.pulse-dot { fill: var(--ink); }
.pulse-dot.out { fill: var(--accent-deep); }

.node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 7px 10px; font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 16px -10px rgba(14, 14, 13, .3);
  animation: floaty 6s ease-in-out infinite;
}
/* side columns anchor to the diagram edges → labels never clip or overlap the core,
   and longer (UZ/EN) labels grow inward instead of off the canvas */
.diagram .node:not(.node-core):not(.node-out) { left: 3%; right: auto; transform: translateY(-50%); animation-name: floatyY; max-width: 42%; }
.diagram .node-out { left: auto; right: 3%; transform: translateY(-50%); animation-name: floatyY; max-width: 42%; }
.node:nth-child(3) { animation-delay: -.8s; }
.node:nth-child(4) { animation-delay: -1.6s; }
.node:nth-child(6) { animation-delay: -2.4s; }
.node:nth-child(7) { animation-delay: -3.2s; }
.node:nth-child(8) { animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 5px)); } }
@keyframes floatyY { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 5px)); } }

.nd { width: 15px; height: 15px; border-radius: 5px; flex: none; background: var(--ink); -webkit-mask-size: cover; mask-size: cover; }
.nd-tg { background: #229ed9; }
.nd-crm { background: #2d6cf6; }
.nd-db { background: #5a5a55; }
.nd-ai { background: var(--ink); }
.nd-store { background: #8a8a82; }
.nd-dash { background: #1f9d6b; }

.node-core {
  flex-direction: column; gap: 2px; align-items: center;
  padding: 13px 18px; border: 1.5px solid var(--ink);
  border-radius: 15px; background: var(--ink); color: #fff;
  box-shadow: 0 18px 40px -16px rgba(14, 14, 13, .55);
  z-index: 3; max-width: none;
}
.node-core .nd-core { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); margin-bottom: 4px; box-shadow: 0 0 0 6px rgba(200, 249, 76, .16); }
.core-t { font-size: 14px; font-weight: 700; }
.core-s { font-family: var(--font-mono); font-size: 10.5px; color: rgba(255, 255, 255, .55); letter-spacing: .06em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 68px); }
.sec-title { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin-top: 18px; }
.sec-lead { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 38em; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  position: relative; padding: 34px 32px 30px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.card:hover::before { width: 100%; }
.card-num { position: absolute; top: 28px; right: 30px; font-family: var(--font-mono); font-size: 13px; color: var(--line-2); }
.card-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--panel); display: grid; place-items: center; margin-bottom: 22px; transition: background .4s var(--ease); }
.card:hover .card-ico { background: var(--accent); }
.card-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 700; margin-bottom: 11px; }
.card p { color: var(--ink-2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tags li { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }

/* ---------- Flow band (dark interesting section) ---------- */
.flow-band { background: var(--ink); color: #fff; border-radius: clamp(24px, 4vw, 44px); margin-inline: clamp(0px, 2vw, 24px); position: relative; overflow: hidden; }
.flow-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(90% 80% at 90% 10%, #000, transparent 75%);
  mask-image: radial-gradient(90% 80% at 90% 10%, #000, transparent 75%);
}
.flow-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.sec-title-light { color: #fff; }
.flow-lead { margin-top: 22px; color: rgba(255, 255, 255, .68); font-size: 18px; max-width: 34em; }
.flow-points { margin-top: 36px; display: grid; gap: 2px; }
.fp { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); align-items: baseline; }
.fp:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fp-k { font-family: var(--font-mono); font-size: 13px; color: var(--accent); flex: none; }
.fp p { color: rgba(255, 255, 255, .82); font-size: 16.5px; }

.flow-stat { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); }
.stat-big { font-size: clamp(72px, 12vw, 128px); line-height: .9; font-weight: 700; letter-spacing: -.05em; color: var(--accent); }
.stat-big small { font-size: .4em; font-weight: 600; }
.flow-stat > p { margin-top: 14px; color: rgba(255, 255, 255, .7); font-size: 16px; }
.stat-row { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stat-row b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat-row span { font-size: 13.5px; color: rgba(255, 255, 255, .55); }

/* ---------- Industries chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-size: 17px; font-weight: 500; padding: 14px 24px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
  transition: all .3s var(--ease); cursor: default;
}
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); background: var(--panel); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 26px 30px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: none; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--ink); transition: width .6s var(--ease); }
.step:hover::before { width: 100%; }
.step-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.step h3 { font-size: 19px; letter-spacing: -.02em; margin: 16px 0 10px; line-height: 1.2; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(72px, 10vw, 130px); border-top: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.cta-title { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin-top: 18px; }
.cta-sub { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 28em; }
.cta-trust { margin-top: 28px; display: grid; gap: 12px; }
.cta-trust li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: var(--ink-2); }
.cta-trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); flex: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4 10-10' fill='none' stroke='%230e0e0d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 14px; background-repeat: no-repeat; background-position: center; }

.lead-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 38px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 14px 16px; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #a7a79f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 249, 76, .35); }
.field input.invalid, .field textarea.invalid { border-color: #e0644f; box-shadow: 0 0 0 4px rgba(224, 100, 79, .12); }
.form-note { margin-top: 14px; font-size: 14.5px; min-height: 1.2em; text-align: center; }
.form-note.ok { color: #1f9d6b; }
.form-note.err { color: #e0644f; }

/* ---- Centered CTA (inner pages) ---- */
.cta-center { text-align: center; border-top: 1px solid var(--line); padding-block: clamp(72px, 10vw, 128px); }
.cta-center .eyebrow { justify-content: center; }
.cta-center .cta-title, .cta-center .cta-sub { margin-inline: auto; }
.cta-center .cta-sub { max-width: 34em; }
.cta-center .cta-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(54px, 7vw, 88px); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.foot-brand p { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 30em; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--font-mono); font-weight: 500; margin-bottom: 16px; }
.foot-col a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 15.5px; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }

/* =========================================================
   Inner pages (services / cases / about / contact)
   ========================================================= */
.nav a.active { color: var(--ink); }

/* ---- Language switch ---- */
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang-switch button { font-family: var(--font-mono); font-size: 12px; padding: 8px 11px; line-height: 1; background: transparent; border: 0; cursor: pointer; color: var(--muted); letter-spacing: .03em; transition: background .25s var(--ease), color .25s var(--ease); }
.lang-switch button.active { background: var(--ink); color: #fff; }
.lang-switch button:not(.active):hover { color: var(--ink); }

/* ---- Knowledge base index ---- */
.kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kb-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; background: var(--bg); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.kb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.kb-card .kb-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--panel); display: grid; place-items: center; margin-bottom: 20px; transition: background .4s var(--ease); }
.kb-card:hover .kb-ico { background: var(--accent); }
.kb-card .kb-ico svg { width: 25px; height: 25px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kb-card h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; }
.kb-card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.kb-card .kb-foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.kb-card .kb-foot .go { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-family: var(--font-sans); font-size: 14px; }
.kb-card .kb-foot .go svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.kb-card:hover .kb-foot .go svg { transform: translateX(3px); }

/* ---- Article ---- */
.article-head { border-bottom: 1px solid var(--line); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(32px, 4vw, 52px); }
.article-meta { display: flex; gap: 16px; align-items: center; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.article-meta .badge { background: var(--panel); border-radius: 999px; padding: 5px 12px; }
.article-wrap { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px); }
.article-lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.article-body { margin-top: 8px; }
.article-body h2 { font-size: clamp(23px, 3vw, 31px); letter-spacing: -.025em; line-height: 1.12; margin: clamp(38px, 5vw, 56px) 0 16px; }
.article-body p { font-size: 17.5px; line-height: 1.66; color: var(--ink-2); margin-bottom: 16px; }
.article-body ul { margin: 0 0 18px; display: grid; gap: 11px; }
.article-body li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.article-body li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 9px; height: 9px; border-radius: 3px; background: var(--accent-deep); }
.takeaways { margin-top: clamp(40px, 5vw, 60px); background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px); }
.takeaways h3 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 20px; }
.takeaways ul { display: grid; gap: 14px; }
.takeaways li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4 10-10' fill='none' stroke='%230e0e0d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 13px; background-repeat: no-repeat; background-position: center; }
.article-nav { max-width: 760px; margin: 0 auto; padding-bottom: clamp(40px, 6vw, 72px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- Industries ---- */
.ind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ind-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.ind-card h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 10px; }
.ind-pains { color: var(--ink-2); font-size: 15.5px; margin-bottom: 20px; }
.ind-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.ind-list { display: grid; gap: 9px; margin-bottom: 20px; }
.ind-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.ind-list li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: 2px; border-radius: 5px; background: var(--panel); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4 10-10' fill='none' stroke='%230e0e0d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }
.ind-effect { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; border-top: 1px solid var(--line); padding-top: 18px; width: 100%; }
.ind-effect::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-deep); }
.nav a.active::after { width: 100%; }

/* ---- Page hero ---- */
.page-hero { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .hero-grid-bg { -webkit-mask-image: radial-gradient(110% 110% at 80% -10%, #000, transparent 70%); mask-image: radial-gradient(110% 110% at 80% -10%, #000, transparent 70%); }
.page-hero-inner { position: relative; z-index: 1; max-width: 880px; }
.crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 22px; }
.crumb a { color: var(--muted); transition: color .2s; }
.crumb a:hover { color: var(--ink); }
.crumb span { color: var(--line-2); margin: 0 8px; }
.page-title { font-size: clamp(38px, 6vw, 76px); line-height: 1.02; letter-spacing: -.038em; font-weight: 700; }
.page-lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 40em; }

/* ---- Feature rows (services) ---- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: none; }
.feature-row.flip .fr-media { order: -1; }
.fr-k { font-family: var(--font-mono); font-size: 13px; color: var(--accent-deep); letter-spacing: .08em; }
.fr-copy h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.03em; line-height: 1.08; font-weight: 700; margin: 14px 0 16px; }
.fr-copy > p { color: var(--ink-2); font-size: 17px; max-width: 34em; }
.feature-list { margin-top: 24px; display: grid; gap: 13px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.feature-list li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 6px; background: var(--panel); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4 10-10' fill='none' stroke='%230e0e0d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 15px; background-repeat: no-repeat; background-position: center; }

/* media panel for feature rows */
.fr-media { background: linear-gradient(180deg, #fcfcfa, #f4f4ef); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-card); }
.fr-stat { font-size: clamp(54px, 8vw, 92px); line-height: .9; font-weight: 700; letter-spacing: -.04em; }
.fr-stat .acc { color: var(--accent-deep); }
.fr-stat small { font-size: .42em; font-weight: 600; color: var(--muted); }
.fr-statlab { margin-top: 12px; color: var(--muted); font-size: 15px; }
.fr-mini { margin-top: 26px; display: grid; gap: 1px; border-top: 1px solid var(--line); }
.fr-mini div { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fr-mini b { font-weight: 600; }
.fr-mini span { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; }

/* ---- Cases ---- */
.note-line { font-size: 14.5px; color: var(--muted); margin-top: 18px; display: flex; gap: 9px; align-items: flex-start; max-width: 52em; }
.note-line::before { content: "i"; flex: none; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--muted); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.case-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.case-card h3 { font-size: 21px; letter-spacing: -.02em; margin: 14px 0 10px; line-height: 1.2; }
.case-card > p { color: var(--ink-2); font-size: 15.5px; }
.case-metrics { margin-top: 22px; display: flex; gap: 26px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.case-metrics div b { display: block; font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.case-metrics div b .acc { color: var(--accent-deep); }
.case-metrics div span { font-size: 13px; color: var(--muted); }

/* ---- About ---- */
.about-statement { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.28; letter-spacing: -.02em; font-weight: 500; max-width: 22em; }
.about-statement em { color: var(--ink); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; background: var(--bg); }
.value .v-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--panel); display: grid; place-items: center; margin-bottom: 18px; }
.value .v-ico svg { width: 23px; height: 23px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 9px; }
.value p { color: var(--ink-2); font-size: 15.5px; }

.geo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.geo-list { margin-top: 26px; display: grid; gap: 1px; }
.geo-list div { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.geo-list div:last-child { border-bottom: 1px solid var(--line); }
.geo-list .g-c { font-weight: 700; font-size: 17px; min-width: 130px; }
.geo-list .g-d { color: var(--muted); font-size: 15px; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-methods { display: grid; gap: 14px; margin-top: 30px; }
.cm { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.cm:hover { border-color: var(--ink); transform: translateY(-2px); }
.cm-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; }
.cm-ico svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cm-t { font-size: 13px; color: var(--muted); }
.cm-v { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-canvas { order: 2; }
  .flow-inner { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .fr-media { order: 0; }
  .value-grid { grid-template-columns: 1fr; }
  .geo { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .kb-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-actions .btn-sm { display: none; }
  .burger { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .kb-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   MOBILE: hero diagram → readable vertical flow (no overlap)
   ============================================================ */
@media (max-width: 640px) {
  .diagram {
    position: relative;
    aspect-ratio: auto;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 26px 16px;
  }
  .wires { display: none; }
  /* vertical "spine" connecting the stacked chips */
  .diagram::after {
    content: ""; position: absolute; top: 30px; bottom: 30px; left: 50%;
    border-left: 2px dashed var(--line-2); transform: translateX(-50%); z-index: 0;
  }
  .diagram .node,
  .diagram .node-out,
  .diagram .node:not(.node-core):not(.node-out) {
    position: static; left: auto; right: auto; top: auto;
    transform: none; animation: none; max-width: 88%;
    z-index: 1; font-size: 13px; padding: 9px 14px;
  }
  .diagram .node-core { padding: 13px 18px; }
  .diagram .node-core .nd-core { width: 22px; height: 22px; }
}

/* ============================================================
   MOBILE: general polish for small phones
   ============================================================ */
@media (max-width: 520px) {
  .lang-switch button { padding: 8px 9px; font-size: 11px; }
  .hero-title { font-size: clamp(33px, 9.5vw, 48px); }
  .page-title { font-size: clamp(31px, 9vw, 46px); }
  .sec-title { font-size: clamp(27px, 8vw, 40px); }
  .cta-title { font-size: clamp(29px, 8.5vw, 44px); }
  .section { padding-block: clamp(56px, 14vw, 88px); }
  .metric { padding: 20px 18px; }
  .card, .case-card, .ind-card, .kb-card, .value { padding: 26px 22px; }
  .btn { --bh: 50px; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .hero-cta, .cta-actions { width: 100%; }
}

/* ============================================================
   AI chat widget (RAG · in development)
   ============================================================ */
.nt-chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 16px 38px -12px rgba(14, 14, 13, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.nt-chat-launcher:hover { transform: translateY(-3px) scale(1.05); }
.nt-chat-launcher svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nt-chat-launcher .ic-close { display: none; }
.nt-chat-launcher.open .ic-open { display: none; }
.nt-chat-launcher.open .ic-close { display: block; }
.nt-chat-launcher::after { /* pulse ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent-deep); opacity: 0; animation: ntPulse 2.6s var(--ease) infinite;
}
.nt-chat-launcher.open::after { display: none; }
@keyframes ntPulse { 0% { opacity: .5; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.5); } }

.nt-chat-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 200;
  width: 384px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 130px);
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 34px 80px -34px rgba(14, 14, 13, .55);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; opacity: 0; transform: translateY(14px) scale(.96);
  pointer-events: none; transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.nt-chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.nt-chat-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.nt-chat-ava { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--ink); display: grid; place-items: center; }
.nt-chat-ava svg { width: 24px; height: 24px; }
.nt-chat-htext { line-height: 1.15; min-width: 0; }
.nt-chat-title { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; display: flex; align-items: center; gap: 7px; }
.nt-pill { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; background: var(--accent); color: var(--ink); padding: 3px 7px; border-radius: 999px; font-weight: 500; }
.nt-chat-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.nt-chat-close { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, border-color .2s; flex: none; }
.nt-chat-close:hover { background: var(--panel); }
.nt-chat-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.nt-chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 13px; }
.nt-msg { display: flex; gap: 9px; max-width: 92%; align-items: flex-end; }
.nt-msg.bot { align-self: flex-start; }
.nt-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.nt-b-ava { width: 27px; height: 27px; border-radius: 8px; flex: none; background: var(--ink); display: grid; place-items: center; }
.nt-b-ava svg { width: 17px; height: 17px; }
.nt-bubble { padding: 11px 14px; border-radius: 15px; font-size: 14.5px; line-height: 1.52; }
.nt-msg.bot .nt-bubble { background: var(--panel); color: var(--ink); border-bottom-left-radius: 5px; }
.nt-msg.user .nt-bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.nt-msg.intro { max-width: 100%; }

.nt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nt-act { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 13px; cursor: pointer; background: #fff; color: var(--ink); transition: all .25s var(--ease); text-decoration: none; }
.nt-act:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.nt-act.primary { background: var(--accent); border-color: var(--accent); }
.nt-act.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--ink); }

.nt-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.nt-chip { font-size: 13px; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 13px; cursor: pointer; background: #fff; color: var(--ink-2); transition: all .25s var(--ease); }
.nt-chip:hover { border-color: var(--ink); color: var(--ink); background: var(--panel); }

.nt-typing { display: inline-flex; gap: 4px; padding: 14px; }
.nt-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); animation: ntBlink 1.2s infinite; }
.nt-typing i:nth-child(2) { animation-delay: .2s; }
.nt-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes ntBlink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.nt-chat-foot { border-top: 1px solid var(--line); padding: 12px 12px 10px; }
.nt-input-row { display: flex; gap: 8px; align-items: flex-end; }
.nt-input { flex: 1; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; font-family: inherit; font-size: 14.5px; color: var(--ink); resize: none; max-height: 96px; line-height: 1.4; }
.nt-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 249, 76, .3); }
.nt-send { width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--accent); cursor: pointer; display: grid; place-items: center; flex: none; transition: background .25s, transform .25s; }
.nt-send:hover { background: var(--accent-deep); transform: translateY(-1px); }
.nt-send svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nt-foot-note { text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 9px; letter-spacing: .02em; }

@media (max-width: 480px) {
  .nt-chat-launcher { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .nt-chat-panel { right: 10px; left: 10px; bottom: 80px; width: auto; max-width: none; height: auto; top: 76px; max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nt-chat-launcher::after { animation: none; }
}

/* ============================================================
   ROI / savings calculator
   ============================================================ */
.roi-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.roi-controls { padding: clamp(26px, 3.5vw, 44px); }
.roi-field { margin-bottom: 26px; }
.roi-field:last-child { margin-bottom: 0; }
.roi-flabel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.roi-flabel span { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.roi-flabel b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.roi-range { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: var(--line); outline: none; cursor: pointer; }
.roi-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--accent); cursor: pointer; box-shadow: 0 3px 10px -2px rgba(14, 14, 13, .4); transition: transform .2s var(--ease); }
.roi-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.roi-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--accent); cursor: pointer; }
.roi-cost-row { display: flex; gap: 10px; align-items: stretch; }
.roi-cost { flex: 1; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink); min-width: 0; }
.roi-cost:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 249, 76, .3); }
.roi-cur { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.roi-cur button { font-family: var(--font-mono); font-size: 12px; padding: 0 11px; background: transparent; border: 0; cursor: pointer; color: var(--muted); transition: background .2s, color .2s; }
.roi-cur button.active { background: var(--ink); color: #fff; }

.roi-result { background: var(--ink); color: #fff; padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.roi-result::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(80% 70% at 90% 0%, #000, transparent 75%); mask-image: radial-gradient(80% 70% at 90% 0%, #000, transparent 75%); }
.roi-result > * { position: relative; z-index: 1; }
.roi-r-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.roi-r-main { margin: 10px 0 4px; }
.roi-r-year { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; color: var(--accent); overflow-wrap: anywhere; }
.roi-r-yearlab { color: rgba(255, 255, 255, .7); font-size: 15px; margin-top: 8px; }
.roi-r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.roi-r-grid b { display: block; font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.roi-r-grid span { font-size: 13px; color: rgba(255, 255, 255, .55); }
.roi-r-pay { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.roi-r-pay::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.roi-r-cta { margin-top: auto; padding-top: 24px; }
.roi-r-cta .btn { width: 100%; }
.roi-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; text-align: center; }

@media (max-width: 860px) {
  .roi-card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .roi-controls, .roi-result { padding: 24px 20px; }
  .roi-flabel b { font-size: 16px; }
  .roi-r-year { font-size: clamp(28px, 9vw, 40px); }
  .roi-r-grid b { font-size: 23px; }
  /* currency selector full-width under the cost input on small phones */
  .roi-cost-row { flex-wrap: wrap; }
  .roi-cost { flex: 1 1 100%; }
  .roi-cur { width: 100%; }
  .roi-cur button { flex: 1; padding: 11px 0; text-align: center; }
}

/* ============================================================
   FAQ accordion (native <details>, no JS)
   ============================================================ */
.faq-list { max-width: 840px; 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: 22px; padding: 22px 4px; font-size: clamp(17px, 2vw, 20px); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 20px; height: 20px; position: relative; transition: transform .3s var(--ease); background:
    linear-gradient(var(--muted), var(--muted)) center/100% 2px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center/2px 100% no-repeat; }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-a { padding: 0 4px 24px; }
.faq-a p { color: var(--ink-2); font-size: 16.5px; max-width: 64ch; line-height: 1.6; }
