/* =========================================================
   Vinus Enterprises — dark tech / security theme
   ========================================================= */

:root {
  --bg: #060a13;
  --bg-alt: #0a1020;
  --surface: #0f172a;
  --surface-2: #131d33;
  --line: #1e2a44;
  --line-strong: #2a3a5c;
  --text: #e6edf7;
  --muted: #94a3bd;
  --dim: #64748b;
  --accent: #2ee6d6;
  --accent-2: #3b82f6;
  --warn: #f5a524;
  --danger: #f43f5e;
  --ok: #34d399;
  --grad: linear-gradient(100deg, #2ee6d6 0%, #3b82f6 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100%); margin-inline: auto; padding-inline: 20px; }
.container.narrow { width: min(820px, 100%); }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #001; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: .96rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  font-family: inherit; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 8px 28px -10px rgba(46, 230, 214, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(46, 230, 214, .8); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-block { width: 100%; }

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

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; }
.logo-mark rect { fill: var(--surface-2); stroke: var(--line-strong); }
.logo-mark path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .12em; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-size: .56rem; letter-spacing: .32em; color: var(--muted); font-weight: 500; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-size: .93rem; color: var(--muted); transition: color .2s; position: relative; }
.nav a:not(.btn):hover, .nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(46, 230, 214, .16), transparent 60%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(59, 130, 246, .14), transparent 60%); pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(46, 230, 214, .06);
  font-size: .82rem; font-weight: 500; color: var(--accent); margin-bottom: 22px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .9rem; }
.hero-trust strong { color: var(--text); font-family: var(--font-head); margin-right: 4px; }

/* Camera feed mockup */
.feed {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(46, 230, 214, .05), 0 0 80px -30px rgba(46, 230, 214, .35);
}
.feed-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 10px; font: 500 .72rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); letter-spacing: .06em; }
.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 700; }
.rec span { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.feed-screen { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 5 / 3; background: #081120; }
.scene { width: 100%; height: 100%; }
.car { animation: carIn 9s ease-in-out infinite; }
@keyframes carIn { 0%, 8% { transform: translateX(-30px); } 30%, 100% { transform: translateX(0); } }
.person { animation: walk 9s ease-in-out infinite; }
@keyframes walk { 0% { transform: translateX(40px); } 50% { transform: translateX(0); } 100% { transform: translateX(40px); } }

.bbox { position: absolute; border: 2px solid var(--accent); border-radius: 4px; box-shadow: 0 0 18px rgba(46, 230, 214, .35) inset; }
.bbox span {
  position: absolute; left: -2px; top: -22px; white-space: nowrap; background: var(--accent); color: #04121a;
  font: 700 .62rem/1 ui-monospace, Menlo, monospace; padding: 5px 6px; border-radius: 3px 3px 3px 0; letter-spacing: .03em;
}
.bbox-car { left: 9%; top: 56%; width: 31%; height: 28%; animation: carBox 9s ease-in-out infinite; }
@keyframes carBox { 0%, 8% { transform: translateX(-24%); opacity: 0; } 30%, 100% { transform: translateX(0); opacity: 1; } }
.bbox-person { left: 47.5%; top: 50%; width: 9%; height: 30%; animation: personBox 9s ease-in-out infinite; }
.bbox.warn { border-color: var(--warn); box-shadow: 0 0 18px rgba(245, 165, 36, .35) inset; }
.bbox.warn span { background: var(--warn); left: auto; right: -2px; border-radius: 3px 3px 0 3px; }
@keyframes personBox { 0% { transform: translateX(110%); } 50% { transform: translateX(0); } 100% { transform: translateX(110%); } }

.zone { position: absolute; left: 44%; top: 46%; width: 20%; height: 40%; border: 1.5px dashed rgba(245, 165, 36, .55); background: rgba(245, 165, 36, .06); border-radius: 4px; }
.scanline { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(transparent, rgba(46, 230, 214, .12), transparent); animation: scan 4s linear infinite; }
@keyframes scan { to { top: 100%; } }

.feed-log { margin-top: 10px; display: grid; gap: 6px; font: .78rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); }
.feed-log li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; gap: 10px; align-items: baseline; animation: logIn .5s ease; }
.feed-log b { font-size: .68rem; padding: 2px 6px; border-radius: 4px; flex: none; }
.feed-log .ok { color: var(--ok); background: rgba(52, 211, 153, .1); }
.feed-log .warn { color: var(--warn); background: rgba(245, 165, 36, .1); }
.feed-log .info { color: var(--accent-2); background: rgba(59, 130, 246, .12); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 28px 16px; text-align: center; border-left: 1px solid var(--line); }
.stats-grid > div:first-child { border-left: 0; }
.stats strong { display: block; font: 700 2.2rem/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.kicker { font: 600 .78rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.kicker.center { text-align: center; }

/* Cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .95rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(46, 230, 214, .15), rgba(59, 130, 246, .12)); border: 1px solid var(--line-strong);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ticks li { position: relative; padding-left: 24px; font-size: .9rem; margin-top: 8px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(46, 230, 214, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232ee6d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* AI section */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.compare-col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.compare-col h3 { margin-bottom: 16px; }
.compare-col li { padding: 10px 0 10px 30px; position: relative; border-top: 1px dashed var(--line); font-size: .95rem; }
.compare-col li:first-child { border-top: 0; }
.compare-col li::before { position: absolute; left: 0; top: 10px; font-weight: 700; width: 20px; text-align: center; }
.compare-col.old { background: var(--surface); color: var(--muted); }
.compare-col.old li::before { content: "✕"; color: var(--dim); }
.compare-col.new { background: linear-gradient(160deg, rgba(46, 230, 214, .1), rgba(59, 130, 246, .06) 60%, var(--surface)); border-color: rgba(46, 230, 214, .35); }
.compare-col.new li::before { content: "✓"; color: var(--accent); }

.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; transition: border-color .25s; }
.ai-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; background: radial-gradient(circle, rgba(46, 230, 214, .12), transparent 70%); opacity: 0; transition: opacity .3s; }
.ai-card:hover { border-color: rgba(46, 230, 214, .4); }
.ai-card:hover::after { opacity: 1; }
.ai-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); background: rgba(59, 130, 246, .12); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- Planner ---------- */
.planner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.planner-form, .planner-result, .contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.planner-form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.planner-form fieldset:last-child { margin-bottom: 0; }
legend { font: 600 1rem var(--font-head); margin-bottom: 14px; padding: 0; }
.field-label { font-size: .85rem; color: var(--muted); margin: 18px 0 10px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; color: var(--muted); transition: all .2s; user-select: none; }
.chip:hover span { border-color: var(--accent); color: var(--text); }
.chip input:checked + span { background: rgba(46, 230, 214, .12); border-color: var(--accent); color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field-row { margin-top: 16px; }
.field-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row .field { margin-bottom: 0; }
.field > span { font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; }
.field output { color: var(--accent); font-weight: 600; font-family: var(--font-head); }

input[type="text"], input[type="tel"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: var(--radius-sm); padding: 11px 13px; font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 230, 214, .15); }
input.invalid { border-color: var(--danger); }
textarea { resize: vertical; min-height: 100px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2394a3bd' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: var(--line-strong); outline: none; margin: 10px 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 5px rgba(46, 230, 214, .2); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }

.planner-result { position: sticky; top: calc(var(--header-h) + 16px); border-color: rgba(46, 230, 214, .3); background: linear-gradient(170deg, rgba(46, 230, 214, .07), var(--surface) 40%); }
.result-head h3 { font-size: 1.4rem; margin-bottom: 4px; }
.result-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.bom { margin: 20px 0; border-top: 1px solid var(--line); }
.bom li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.bom .qty { font-family: var(--font-head); font-weight: 700; color: var(--accent); min-width: 2.2em; }
.bom .price { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.bom .note { display: block; color: var(--dim); font-size: .78rem; }
.bom-empty { color: var(--muted); font-size: .92rem; padding: 14px 0; }

.result-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 16px 18px; background: var(--bg-alt); border: 1px solid var(--line-strong); border-radius: 12px; margin-bottom: 18px; }
.result-total span { color: var(--muted); font-size: .88rem; }
.result-total strong { font: 700 1.5rem var(--font-head); color: var(--text); }
.result-total small { width: 100%; color: var(--dim); font-size: .8rem; }

.why { margin-bottom: 20px; }
.why li { font-size: .86rem; color: var(--muted); padding-left: 20px; position: relative; margin-bottom: 6px; }
.why li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.disclaimer { font-size: .76rem; color: var(--dim); margin: 12px 0 0; line-height: 1.5; }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); border-left: 3px solid var(--accent); }
.ind p { color: var(--muted); font-size: .94rem; margin: 0; }
.ind:nth-child(even) { border-left-color: var(--accent-2); }

/* ---------- Brands ---------- */
.brands { padding: 56px 0; }
.brand-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; margin: 20px 0; }
.brand-row li { font: 700 clamp(1.2rem, 2.4vw, 1.6rem) var(--font-head); color: var(--dim); letter-spacing: .02em; transition: color .2s; }
.brand-row li:hover { color: var(--text); }
.brand-note { text-align: center; color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--muted); }
.about-copy .btn { margin-top: 8px; }

.timeline { position: relative; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 41px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--line-strong), var(--accent)); }
.timeline li { display: grid; grid-template-columns: 68px 1fr; gap: 20px; padding: 14px 0; position: relative; }
.timeline li > span { font: 600 .78rem/1 var(--font-head); color: var(--muted); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 0; text-align: center; height: fit-content; position: relative; z-index: 1; }
.timeline li.now > span { color: #04121a; background: var(--grad); border-color: transparent; }
.timeline h3 { margin-bottom: 4px; font-size: 1.05rem; }
.timeline p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps b { font: 700 1.5rem var(--font-head); color: transparent; -webkit-text-stroke: 1px var(--accent); display: block; margin-bottom: 12px; }
.steps h3 { font-size: 1rem; }
.steps p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info > p { color: var(--muted); }
.info-list { margin-top: 28px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { width: 40px; height: 40px; padding: 9px; flex: none; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-list small { display: block; color: var(--dim); font-size: .78rem; }
.info-list a:hover { color: var(--accent); }
.form-error { color: var(--danger); font-size: .88rem; margin: 0 0 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--muted); font-size: .9rem; margin-top: 16px; max-width: 320px; }
.footer-grid h4 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid > div > a:not(.logo), .footer-grid > div > span { display: block; color: var(--text); font-size: .92rem; margin-bottom: 8px; opacity: .85; }
.footer-grid > div > a:not(.logo):hover { color: var(--accent); opacity: 1; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); box-shadow: 0 12px 30px -8px rgba(46, 230, 214, .6); display: grid; place-items: center; transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; fill: none; stroke: #04121a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; transition: opacity .2s, transform .2s; }
.chat-fab .i-close { opacity: 0; transform: rotate(-90deg); }
.chat-fab[aria-expanded="true"] .i-open { opacity: 0; transform: rotate(90deg); }
.chat-fab[aria-expanded="true"] .i-close { opacity: 1; transform: none; }
.chat-fab::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: ring 2.4s infinite; }
.chat-fab[aria-expanded="true"]::before { display: none; }
@keyframes ring { to { transform: scale(1.35); opacity: 0; } }

.chat {
  position: fixed; right: 20px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); overflow: hidden; animation: chatIn .25s ease;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; }
.chat-head .pulse-dot { width: 7px; height: 7px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #04121a; font: 700 1rem var(--font-head); display: grid; place-items: center; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; animation: logIn .25s ease; white-space: pre-line; }
.msg.bot { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: rgba(46, 230, 214, .14); border: 1px solid rgba(46, 230, 214, .3); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }

.chat-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.chat-chips button { background: transparent; border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: .8rem; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border-radius: 999px; padding: 10px 16px; }
.chat-input button { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--grad); cursor: pointer; display: grid; place-items: center; }
.chat-input button svg { width: 18px; height: 18px; fill: #04121a; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 18px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6, 10, 19, .98); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-110%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a.active::after { display: none; }
  .nav-cta { margin-top: 16px; }

  .hero-inner, .about, .contact, .planner { grid-template-columns: 1fr; }
  .hero-inner { gap: 44px; }
  .planner-result { position: static; }
  .ai-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about { gap: 40px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .cards-4, .ai-grid, .ind-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div:nth-child(3) { border-left: 0; }
  .stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .field-row.two { grid-template-columns: 1fr; }
  .planner-form, .planner-result, .contact-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .bbox span { font-size: .5rem; padding: 4px; top: -18px; }
  .feed-log li:nth-child(n+3) { display: none; }
  .chat { right: 12px; left: 12px; width: auto; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

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