/* ===== Perceptron AI & IT Solutions ===== */
:root {
  --bg: #070a14;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e8ecf8;
  --muted: #9aa3bd;
  --dim: #6b7390;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --pink: #f472b6;
  --grad: linear-gradient(110deg, #22d3ee 0%, #818cf8 45%, #a855f7 75%, #f472b6 100%);
  --radius: 18px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
::selection { background: rgba(168, 85, 247, 0.4); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-body);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #060812; box-shadow: 0 8px 30px -8px rgba(129, 140, 248, .6); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 40px -8px rgba(168, 85, 247, .7); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 10, 20, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 21px; }
.brand-mark { width: 32px; height: 32px; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.brand > span { line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { color: #060812; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 30%, rgba(34, 211, 238, .12), transparent 70%),
    radial-gradient(700px 500px at 85% 60%, rgba(168, 85, 247, .14), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); backdrop-filter: blur(8px);
  font-size: 13.5px; color: var(--muted); letter-spacing: .02em; margin-bottom: 28px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 700; max-width: 12ch; margin-bottom: 26px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 600px; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: rgba(7,10,20,.5); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-head); font-size: 20px; color: var(--muted); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--violet); font-size: 12px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-alt { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 20%, var(--bg-2) 80%, var(--bg)); }
.section-head { max-width: 720px; margin-bottom: 64px; }
.kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.section h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; margin-bottom: 22px; }
.section-lead { color: var(--muted); font-size: 18.5px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); overflow: hidden; transition: border-color .3s, transform .3s, background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(129,140,248,.14), transparent 60%);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-feature { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; }
.card-feature > :not(.terminal) { grid-column: 1; }
.card-feature .terminal { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; color: var(--cyan); background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(168,85,247,.16)); border: 1px solid var(--border); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--text); }
.card-list li { padding-left: 22px; position: relative; }
.card-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--grad); }
.card-new { border-style: dashed; border-color: rgba(168,85,247,.45); }
.badge { position: absolute; top: 20px; right: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; color: #060812; background: var(--grad); }
.inline-link { color: var(--cyan); font-weight: 500; }
.inline-link:hover { text-decoration: underline; }

.terminal { border-radius: 14px; background: #04060d; border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; min-height: 300px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.terminal pre { margin: 0; padding: 16px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; color: #b8c2e0; white-space: pre-wrap; flex: 1; overflow: hidden; }
.terminal .t-k { color: var(--violet); }
.terminal .t-g { color: #34d399; }
.terminal .t-c { color: var(--cyan); }
.terminal .t-d { color: var(--dim); }
.terminal .cursor { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Pipeline ---------- */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; counter-reset: step; }
.pipeline::before {
  content: ""; position: absolute; top: 33px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), var(--pink), transparent);
  background-size: 200% 100%; animation: flow 4s linear infinite; opacity: .55;
}
@keyframes flow { to { background-position: -200% 0; } }
.step { position: relative; padding: 0 6px; }
.step-num {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; margin-bottom: 26px;
  font-family: var(--font-mono); font-weight: 500; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-strong); position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-2), 0 0 30px -4px rgba(34,211,238,.35);
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Lab ---------- */
.lab { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.lab-text p { color: var(--muted); }
.lab-text em { color: var(--text); font-style: normal; font-weight: 500; }
.lab-try { margin-top: 26px; padding: 16px 20px; border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 12px 12px 0; }
.lab-try strong { color: var(--text); }
.lab-demo { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 80px -30px rgba(129,140,248,.35); }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--border); }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); font: 500 13.5px var(--font-body); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg-btn.active { background: var(--surface-2); color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-a { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-b { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.demo-stats { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); }
.demo-stats b { color: var(--text); font-weight: 500; }
#labCanvas { width: 100%; height: auto; aspect-ratio: 7 / 5; border-radius: 14px; background: #04060d; border: 1px solid var(--border); cursor: crosshair; touch-action: manipulation; }
.demo-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.demo-eq { margin: 12px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); }

/* ---------- Apps ---------- */
#apps { overflow: hidden; }
.apps { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.apps-text p { color: var(--muted); font-size: 18px; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 16px; }
.feature-list li { padding: 16px 18px 16px 52px; position: relative; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 15.5px; }
.feature-list li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; border-radius: 6px; background: var(--grad); opacity: .9; }
.feature-list b { display: block; color: var(--text); font-family: var(--font-head); font-size: 17px; margin-bottom: 2px; }

.phone-wrap { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone {
  position: relative; z-index: 2; width: 290px; height: 590px; border-radius: 44px; padding: 12px;
  background: linear-gradient(145deg, #1c2236, #0a0d18); border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -20px rgba(168,85,247,.45), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
.phone-notch { position: absolute; top: 22px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 20px; background: #000; z-index: 3; }
.phone-screen { height: 100%; border-radius: 34px; background: #060912; overflow: hidden; padding: 56px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-title { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.app-chip { font-size: 10px; font-family: var(--font-mono); padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(34,211,238,.5); color: var(--cyan); }
.scan { position: relative; height: 150px; border-radius: 16px; overflow: hidden; background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px), linear-gradient(135deg, #141b30, #0c1122); }
.scan-box { position: absolute; inset: 22px 34px; border: 2px solid var(--cyan); border-radius: 8px; box-shadow: 0 0 24px rgba(34,211,238,.4) inset; }
.scan-label { position: absolute; top: -12px; left: 8px; font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--cyan); color: #04060d; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 14px var(--cyan); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 10%; } 50% { top: 88%; } }
.chat { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.45; }
.msg { margin: 0; padding: 9px 12px; border-radius: 14px; max-width: 88%; }
.msg-user { align-self: flex-end; background: var(--surface-2); border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(168,85,247,.18)); border: 1px solid rgba(129,140,248,.3); border-bottom-left-radius: 4px; }
.msg-ai .msg-text { display: none; }
.msg-ai.done .msg-text { display: inline; }
.msg-ai.done .typing { display: none; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
.app-bars { margin-top: auto; display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.app-bars span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--violet), var(--cyan)); opacity: .85; transform-origin: bottom; animation: grow 3s ease-in-out infinite alternate; }
.app-bars span:nth-child(odd) { animation-delay: -1.5s; }
@keyframes grow { from { transform: scaleY(.7); } to { transform: scaleY(1); } }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(129,140,248,.3); animation: spin 40s linear infinite; }
.orbit-1 { width: 440px; height: 440px; }
.orbit-2 { width: 560px; height: 560px; animation-direction: reverse; animation-duration: 60s; border-color: rgba(34,211,238,.18); }
.orbit::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.orbit-2::after { background: var(--pink); box-shadow: 0 0 14px var(--pink); left: auto; right: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stack-group { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stack-group h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.sg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.stack-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-group li { font-family: var(--font-mono); font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.28); border: 1px solid var(--border); color: #c8cfe4; transition: border-color .2s, color .2s; }
.stack-group li:hover { border-color: var(--cyan); color: var(--text); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.why-item { background: var(--bg-2); padding: 36px 30px; }
.why-big { display: block; font-family: var(--font-head); font-weight: 700; font-size: 30px; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-item p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; background: radial-gradient(circle, rgba(168,85,247,.16), transparent 60%); pointer-events: none; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; position: relative; }
.contact-text p { color: var(--muted); font-size: 18px; max-width: 460px; }
.contact-mail { display: inline-block; margin-top: 10px; font-family: var(--font-head); font-size: 24px; font-weight: 600; border-bottom: 2px solid var(--violet); padding-bottom: 4px; }
.contact-mail:hover { color: var(--cyan); border-color: var(--cyan); }
.form { padding: 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.field em { font-style: normal; color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(0,0,0,.3); color: var(--text); font: 15.5px var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.field input.invalid, .field textarea.invalid { border-color: var(--pink); }
.form-status { margin: 0; font-size: 14.5px; min-height: 1.4em; color: var(--muted); }
.form-status.ok { color: #34d399; }
.form-status.err { color: var(--pink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.brand-foot { display: block; }
.foot-tag { margin: 10px 0 0; color: var(--dim); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 14.5px; }
.foot-links a:hover { color: var(--text); }
.copy { width: 100%; margin: 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--dim); font-size: 13.5px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-column: span 2; grid-row: auto; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .pipeline::before { display: none; }
  .why { grid-template-columns: 1fr 1fr; }
  .lab, .apps, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .phone-wrap { order: 2; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px; background: rgba(7,10,20,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; color: var(--text); }
  .nav-links .btn { margin-top: 18px; }
  .nav.menu-open { background: rgba(7,10,20,.97); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .cards { grid-template-columns: 1fr; }
  .card-feature { grid-column: auto; grid-template-columns: 1fr; }
  .card-feature .terminal { grid-column: 1; grid-row: auto; margin-top: 22px; min-height: 240px; }
  .card { padding: 26px 22px; }
  .pipeline { grid-template-columns: 1fr; gap: 32px; }
  .why { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .phone-wrap { min-height: 520px; }
  .phone { transform: scale(.88); animation: none; }
  .orbit-1 { width: 330px; height: 330px; }
  .orbit-2 { width: 400px; height: 400px; }
  .hero { padding-top: 100px; }
  .scroll-hint { display: none; }
  .contact-mail { font-size: 20px; word-break: break-all; }
  .demo-stats { width: 100%; }
}
@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; }
}
