/* Kynex Solutions — site.css
 * Dark-mode marketing site stylesheet.
 * Slate-900 base · glassmorphism · multi-color glows · CSS-only animations.
 * No JS dependency for visual fidelity. Respects prefers-reduced-motion.
 */

:root {
  --c-bg:           #020617;
  --c-bg-1:         #0b1220;
  --c-bg-2:         #0f172a;
  --c-bg-3:         #1e293b;
  --c-surface:      rgba(255, 255, 255, 0.04);
  --c-surface-2:    rgba(255, 255, 255, 0.07);
  --c-border:       rgba(255, 255, 255, 0.08);
  --c-border-2:     rgba(255, 255, 255, 0.14);
  --c-border-3:     rgba(255, 255, 255, 0.22);

  --c-text:         #f1f5f9;
  --c-text-2:       #cbd5e1;
  --c-text-3:       #94a3b8;
  --c-text-4:       #64748b;
  --c-text-invert:  #0f172a;

  --c-blue:         #3b82f6;
  --c-blue-2:       #2563eb;
  --c-cyan:         #06b6d4;
  --c-purple:       #8b5cf6;
  --c-purple-2:     #a855f7;
  --c-emerald:      #10b981;
  --c-emerald-2:    #059669;
  --c-amber:        #f59e0b;
  --c-pink:         #ec4899;

  --grad-primary:   linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --grad-purple:    linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-emerald:   linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-rainbow:   linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #06b6d4);

  --shadow-glow-blue:    0 0 0 1px rgba(59,130,246,.20), 0 20px 60px -20px rgba(59,130,246,.35);
  --shadow-glow-purple:  0 0 0 1px rgba(139,92,246,.22), 0 20px 60px -20px rgba(139,92,246,.40);
  --shadow-glow-emerald: 0 0 0 1px rgba(16,185,129,.22), 0 20px 60px -20px rgba(16,185,129,.35);

  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Global ambient background — subtle multi-color glow behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 10% 0%,   rgba(59,130,246,.18), transparent 60%),
    radial-gradient(800px 600px at 90% 30%,  rgba(139,92,246,.16), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(6,182,212,.14), transparent 60%),
    var(--c-bg);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-text); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 32px 0; }

h1, h2, h3, h4, h5 { line-height: 1.15; margin: 0 0 .6em; color: #fff; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--c-text-2); }
small, .muted { color: var(--c-text-3); }
strong, b { color: #fff; }

/* Gradient text utility */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-purple {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-emerald {
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- A11y ---------- */
.skip-link { position:absolute; left:-9999px; top:0; background:#000; color:#fff; padding:8px 14px; z-index:1000; border-radius:6px; }
.skip-link:focus { left:8px; top:8px; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section + .section { margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  position: sticky; top: 0;
  background: rgba(2, 6, 23, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; display: block; }
.nav-links { display: none; gap: 32px; align-items: center; }
@media (min-width: 980px) { .nav-links { display: flex; } }
.nav-links a { color: var(--c-text-2); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--grad-primary); border-radius: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  background: var(--grad-primary); color: #fff !important;
  font-weight: 600; font-size: .92rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 20px -6px rgba(59,130,246,.55);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -6px rgba(59,130,246,.65); color: #fff; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--c-border-2); background: var(--c-surface);
  border-radius: 10px; color: #fff;
}
@media (min-width: 980px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-menu {
  display: none; padding: 12px 24px 18px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(14px);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--c-text-2); border-top: 1px solid var(--c-border); }
.mobile-menu a:first-of-type { border-top: 0; }
.mobile-menu .nav-cta { margin-top: 12px; display: inline-flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600; font-size: .98rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s, border-color .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-primary); color: #fff !important;
  box-shadow: 0 14px 30px -10px rgba(59,130,246,.55), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { box-shadow: 0 18px 40px -10px rgba(59,130,246,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-purple { background: var(--grad-purple); color: #fff !important; box-shadow: 0 14px 30px -10px rgba(139,92,246,.55); }
.btn-emerald { background: var(--grad-emerald); color: #fff !important; box-shadow: 0 14px 30px -10px rgba(16,185,129,.45); }
.btn-ghost {
  background: var(--c-surface); color: #fff !important;
  border-color: var(--c-border-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--c-surface-2); border-color: var(--c-border-3); }
.btn-outline { background: transparent; color: var(--c-text) !important; border-color: var(--c-border-3); }
.btn-outline:hover { background: var(--c-surface); }

/* ---------- Eyebrow chip ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: 999px;
  color: var(--c-text-2);
  font-size: .85rem; font-weight: 500;
  backdrop-filter: blur(8px);
}
.eyebrow b { color: #fff; font-weight: 600; }
.eyebrow .pulse-dot {
  width: 8px; height: 8px; border-radius: 999px; background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 130px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) { .hero { padding: 170px 0 110px; } }

.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
  filter: blur(90px); opacity: .55;
}
.hero::before {
  width: 560px; height: 560px; left: -150px; top: -200px;
  background: radial-gradient(circle, rgba(59,130,246,.45), transparent 70%);
  animation: meshA 18s ease-in-out infinite alternate;
}
.hero::after {
  width: 620px; height: 620px; right: -200px; bottom: -240px;
  background: radial-gradient(circle, rgba(139,92,246,.40), transparent 70%);
  animation: meshB 22s ease-in-out infinite alternate;
}
/* Dotted grid backdrop across hero */
.hero {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 0 0;
}
@keyframes meshA { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(80px,60px) scale(1.12)} }
@keyframes meshB { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-70px,-50px) scale(1.1)} }

.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr .95fr; gap: 64px; } }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  font-weight: 900;
  line-height: 1.05;
  display: flex; flex-direction: column;
}
.hero h1 span { display: block; }
.hero p.lead {
  font-size: 1.15rem; color: var(--c-text-2);
  max-width: 56ch; margin-bottom: 32px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 32px;
}
.hero-stats .stat {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.hero-stats .stat:nth-child(1) { animation-delay: .05s; }
.hero-stats .stat:nth-child(2) { animation-delay: .15s; }
.hero-stats .stat:nth-child(3) { animation-delay: .25s; }
.hero-stats .stat .stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.hero-stats .stat .stat-icon svg { width: 20px; height: 20px; }
.hero-stats .stat .stat-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 20px -8px rgba(59,130,246,.55), inset 0 1px 0 rgba(255,255,255,.20);
}
.hero-stats .stat .stat-icon.emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 20px -8px rgba(16,185,129,.55), inset 0 1px 0 rgba(255,255,255,.20);
}
.hero-stats .stat strong {
  display: block; font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1;
}
.hero-stats .stat span { font-size: .78rem; color: var(--c-text-3); }
@keyframes rise { 0%{opacity:0;transform:translateY(16px)} 100%{opacity:1;transform:translateY(0)} }

/* Hero art panel (right column) — CSS-only mockup card */
.hero-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 520px;
}
.hero-mockup {
  position: relative;
  width: 100%; max-width: 600px;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background:
    radial-gradient(circle at 25% 30%, rgba(139,92,246,.45), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(59,130,246,.40), transparent 55%),
    linear-gradient(160deg, rgba(30,27,75,.85), rgba(15,23,42,.92) 60%, rgba(2,6,23,.92));
  border: 1px solid var(--c-border-2);
  box-shadow: 0 50px 120px -20px rgba(59,130,246,.35),
              0 30px 60px -20px rgba(0,0,0,.7),
              inset 0 1px 0 rgba(255,255,255,.07);
  overflow: hidden;
  isolation: isolate;
  animation: heroFloat 8s ease-in-out infinite alternate;
}
.hero-mockup::before {
  content: ""; position: absolute; inset: -1px; border-radius: 32px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,.65), rgba(59,130,246,.18) 40%, rgba(6,182,212,.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
/* Decorative grid dots inside the card */
.hero-mockup::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.10) 1.2px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 85%);
          mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 85%);
  pointer-events: none;
  opacity: .8;
}

/* Wave lines svg */
.hero-waves {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

/* macOS Terminal mockup (replaces cube + code snippet) */
.terminal {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 86%; max-width: 480px;
  background: rgba(13, 17, 23, .98);
  border-radius: 12px;
  box-shadow:
    0 30px 80px -10px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 60px -10px rgba(59,130,246,.45),
    0 0 100px -20px rgba(139,92,246,.35);
  overflow: hidden;
  z-index: 3;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  animation: termFloat 6s ease-in-out infinite alternate;
}
.terminal:hover, .terminal:focus-visible {
  transform: translate(-50%, -52%) scale(1.02);
  box-shadow:
    0 40px 100px -10px rgba(0,0,0,.8),
    0 0 0 1px rgba(255,255,255,.10),
    0 0 90px -10px rgba(59,130,246,.65),
    0 0 140px -20px rgba(139,92,246,.55);
  outline: none;
}
@keyframes termFloat {
  0%   { transform: translate(-50%, -50%); }
  100% { transform: translate(-50%, -54%); }
}

.terminal-titlebar {
  background: linear-gradient(180deg, #2a2f3a, #1d2129);
  padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  user-select: none;
}
.tdot {
  width: 12px; height: 12px;
  border-radius: 50%; flex: 0 0 auto;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18);
  transition: filter .15s, transform .15s;
}
.tdot.r { background: #ff5f57; }
.tdot.y { background: #febc2e; }
.tdot.g { background: #28c840; }
.terminal:hover .tdot { filter: brightness(1.15) saturate(1.2); }
.terminal-title {
  flex: 1; text-align: center;
  color: #94a3b8;
  font-size: .72rem; font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .02em;
  margin: 0 8px;
}
.tspace { width: 44px; flex: 0 0 auto; } /* balance the 3 dots on the left */

.terminal-body {
  padding: 16px 18px 18px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: .8rem;
  line-height: 1.75;
  color: #cbd5e1;
  min-height: 232px;
  position: relative;
  background:
    radial-gradient(900px 200px at 0% 0%, rgba(59,130,246,.08), transparent 70%),
    radial-gradient(700px 200px at 100% 100%, rgba(139,92,246,.08), transparent 70%);
}
.terminal-line {
  white-space: nowrap; overflow: hidden;
  opacity: 0;
}
.terminal-line .prompt { color: #6ee7b7; font-weight: 700; margin-right: 4px; }
.terminal-line .cmd { color: #e2e8f0; }
.terminal-line .arr { color: #67e8f9; margin-right: 4px; }
.terminal-line .ok  { color: #6ee7b7; margin-right: 4px; font-weight: 700; }
.terminal-line .tm  { color: #94a3b8; }

/* Replay animation — fires on initial render AND on click via .replay class */
.terminal.replay .terminal-line { animation: lineIn .35s ease-out forwards; }
.terminal.replay .terminal-line:nth-child(1) { animation-delay: .15s; }
.terminal.replay .terminal-line:nth-child(2) { animation-delay: 1.10s; }
.terminal.replay .terminal-line:nth-child(3) { animation-delay: 1.50s; }
.terminal.replay .terminal-line:nth-child(4) { animation-delay: 1.85s; }
.terminal.replay .terminal-line:nth-child(5) { animation-delay: 2.20s; }
.terminal.replay .terminal-line:nth-child(6) { animation-delay: 2.55s; }
.terminal.replay .terminal-line:nth-child(7) { animation-delay: 3.00s; }
@keyframes lineIn { to { opacity: 1; } }

/* Typed command on the last prompt */
.terminal .typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 0;
}
.terminal.replay .typing {
  animation: typeOut 2.4s steps(22, end) 3.2s forwards;
}
@keyframes typeOut {
  from { max-width: 0; }
  to   { max-width: 22ch; }
}

/* Blinking block cursor */
.cursor {
  display: inline-block;
  width: 8px; height: 1em;
  vertical-align: text-bottom;
  background: #cbd5e1;
  margin-left: 3px;
  animation: blink 1s steps(2) infinite;
  opacity: 0;
}
.terminal.replay .cursor { animation: cursorIn 0s 3.2s forwards, blink 1s steps(2) 3.3s infinite; }
@keyframes cursorIn { to { opacity: 1; } }
@keyframes blink   { 50% { opacity: 0; } }

.terminal:hover .cursor { animation-duration: 1s, .55s; }

/* Floating accent dots — more, varied sizes */
.hero-dot {
  position: absolute; border-radius: 999px;
  box-shadow: 0 0 28px currentColor;
  animation: dotFloat 5s ease-in-out infinite alternate;
  z-index: 2;
}
.hero-dot.d1 { width: 14px; height: 14px; left: 18%; top: 22%; color: #06b6d4; background: #06b6d4; animation-delay: -1s; }
.hero-dot.d2 { width: 10px; height: 10px; left: 16%; top: 56%; color: #a855f7; background: #a855f7; animation-delay: -2s; }
.hero-dot.d3 { width: 18px; height: 18px; left: 26%; top: 80%; color: #06b6d4; background: #06b6d4; animation-delay: -3s; }
.hero-dot.d4 { width: 12px; height: 12px; left: 78%; top: 78%; color: #ec4899; background: #ec4899; animation-delay: -4s; }
.hero-dot.d5 { width: 11px; height: 11px; left: 88%; top: 26%; color: #f59e0b; background: #f59e0b; animation-delay: -.5s; }
.hero-dot.d6 { width: 9px; height: 9px; left: 84%; top: 50%; color: #c084fc; background: #c084fc; animation-delay: -2.5s; }

/* Rotating words bubble */
.hero-words {
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
  background: rgba(2,6,23,.78);
  border: 1px solid var(--c-border-2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .82rem; font-weight: 600; color: #fff;
  backdrop-filter: blur(8px);
  height: 32px; overflow: hidden;
  display: inline-flex; align-items: center;
  z-index: 2;
}
.hero-words span {
  position: absolute; left: 16px; right: 16px; top: 0;
  display: flex; align-items: center; height: 32px;
  opacity: 0;
  animation: wordRotate 8s linear infinite;
}
.hero-words span:nth-child(1) { animation-delay: 0s; color: #93c5fd; }
.hero-words span:nth-child(2) { animation-delay: 2s; color: #c4b5fd; }
.hero-words span:nth-child(3) { animation-delay: 4s; color: #67e8f9; }
.hero-words span:nth-child(4) { animation-delay: 6s; color: #6ee7b7; }
@keyframes wordRotate {
  0%, 22% { opacity: 0; transform: translateY(8px); }
  4%, 18% { opacity: 1; transform: translateY(0); }
  22%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* Custom Services title (inline, between solutions row and svc grid) */
.custom-svc-title {
  margin-top: 56px; margin-bottom: 24px;
  font-size: 1.25rem; color: var(--c-text-2);
  display: inline-flex; align-items: center; gap: 12px;
}
.custom-svc-title::before {
  content: ""; width: 32px; height: 2px;
  background: var(--grad-primary); border-radius: 2px;
}

/* Connecting lines: thin gradient strokes drawn as borders on tilted thin divs */
.hero-line {
  position: absolute; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
  transform-origin: 0 0;
  opacity: .6;
}
.hero-line.l1 { width: 140px; left: 20%; top: 30%; transform: rotate(28deg); }
.hero-line.l2 { width: 120px; left: 28%; top: 70%; transform: rotate(-18deg); }
.hero-line.l3 { width: 160px; left: 50%; top: 50%; transform: rotate(45deg) translateY(-50%); }

.hero-badge {
  position: absolute; bottom: 16px; left: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(2, 6, 23, .92);
  border: 1px solid rgba(16,185,129,.32);
  border-radius: 999px; padding: 7px 14px;
  box-shadow: 0 16px 32px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  font-size: .78rem; color: #fff; font-weight: 600;
  white-space: nowrap;
  animation: badgePop .8s cubic-bezier(.2,.8,.2,1) .25s both;
  z-index: 4;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 999px; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); animation: pulse 2s infinite; }

@keyframes heroFloat { 0%{transform:translateY(0)} 100%{transform:translateY(-10px)} }
@keyframes cubeSpin  { 0%{transform:translate(-50%,-50%) rotate(45deg)} 100%{transform:translate(-50%,-50%) rotate(405deg)} }
@keyframes dotFloat  { 0%{transform:translateY(0) scale(1)} 100%{transform:translateY(-14px) scale(1.1)} }
@keyframes badgePop  { 0%{opacity:0;transform:translateY(10px) scale(.95)} 100%{opacity:1;transform:translateY(0) scale(1)} }

/* ---------- Section header ---------- */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 56px; position: relative; }
.section-header .eyebrow { margin-bottom: 20px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--c-text-3); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent 30%, rgba(59,130,246,.06));
  pointer-events: none; opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--c-border-2); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--c-text-3); font-size: .95rem; margin-bottom: 0; }
.card ul { margin: 12px 0 16px; padding-left: 18px; color: var(--c-text-3); font-size: .92rem; }
.card ul li { margin-bottom: 6px; }
.card ul li::marker { color: var(--c-blue); }

.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.12));
  border: 1px solid var(--c-border-2);
  color: #93c5fd;
  margin-bottom: 16px;
  font-weight: 800; font-size: 1.15rem;
}
.card .icon svg { width: 22px; height: 22px; }

.card .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  background: rgba(59,130,246,.16); color: #93c5fd;
  border: 1px solid rgba(59,130,246,.32);
  margin-bottom: 12px;
}
.card .badge.green { background: rgba(16,185,129,.16); color: #6ee7b7; border-color: rgba(16,185,129,.32); }
.card .badge.purple { background: rgba(139,92,246,.16); color: #c4b5fd; border-color: rgba(139,92,246,.32); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Pricing tiers (KynexEdu, POS) ---------- */
.tier {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(15, 23, 42, .85), rgba(2, 6, 23, .85));
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform .25s ease, border-color .25s ease;
}
.tier:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); }
.tier.featured {
  border-color: rgba(59,130,246,.38);
  box-shadow: var(--shadow-glow-blue);
}
.tier.featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,.6), rgba(139,92,246,.4), rgba(6,182,212,.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.tier.emerald { box-shadow: var(--shadow-glow-emerald); border-color: rgba(16,185,129,.38); }
.tier .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tier .name { font-size: 1.05rem; font-weight: 700; color: #fff; }
.tier .price { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1.1; margin: 8px 0 4px; }
.tier .price small { font-size: .9rem; color: var(--c-text-3); font-weight: 500; }
.tier .summary { color: var(--c-text-3); font-size: .95rem; margin: 0 0 20px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; }
.tier ul li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  color: var(--c-text-2); font-size: .95rem;
}
.tier ul li::before {
  content: "✓"; flex: 0 0 18px; height: 18px; width: 18px;
  border-radius: 999px; background: rgba(16,185,129,.18);
  color: #6ee7b7; font-size: .7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.tier .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Step cards (How We Work) ---------- */
.step {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, border-color .25s;
}
.step:hover { transform: translateY(-3px); border-color: var(--c-border-2); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-primary);
  color: #fff; font-weight: 800; font-size: 1.15rem;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px -10px rgba(59,130,246,.5);
}
.step:nth-child(2) .num { background: var(--grad-purple); box-shadow: 0 12px 24px -10px rgba(139,92,246,.5); }
.step:nth-child(3) .num { background: var(--grad-emerald); box-shadow: 0 12px 24px -10px rgba(16,185,129,.5); }
.step:nth-child(4) .num { background: linear-gradient(135deg, #f59e0b, #ec4899); box-shadow: 0 12px 24px -10px rgba(236,72,153,.5); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--c-text-3); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color .2s, background .2s;
}
.faq details[open] {
  background: var(--c-surface-2);
  border-color: var(--c-border-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px;
  border-right: 2px solid var(--c-blue); border-bottom: 2px solid var(--c-blue);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details > *:not(summary) { margin-top: 14px; color: var(--c-text-3); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 60%, #0e7490 100%);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,.18), transparent 60%),
              radial-gradient(500px 300px at 80% 100%, rgba(6,182,212,.30), transparent 60%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0 auto 24px; }
.cta-banner .actions { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-banner .btn-primary { background: #fff; color: #0f172a !important; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.cta-banner .btn-primary:hover { background: #f1f5f9; color: #0f172a !important; }
.cta-banner .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.4); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  position: relative;
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; pointer-events: none; inset: 0;
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(600px 400px at 90% 100%, rgba(139,92,246,.15), transparent 60%);
}
.page-header > .container { position: relative; }
.page-header .crumbs { color: var(--c-text-3); font-size: .9rem; margin-bottom: 14px; }
.page-header .crumbs a { color: var(--c-text-3); }
.page-header .crumbs a:hover { color: #fff; }
.page-header h1 { margin: 0 0 14px; }
.page-header p { color: var(--c-text-2); font-size: 1.1rem; max-width: 68ch; margin: 0; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; color: var(--c-text-2); }
.prose h2 { margin-top: 2.2em; color: #fff; }
.prose h3 { margin-top: 1.6em; color: #fff; }
.prose p, .prose ul, .prose ol { color: var(--c-text-2); }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.prose a { color: #93c5fd; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #bfdbfe; }

/* ---------- Feature row ---------- */
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.feature .feature-icon {
  flex: 0 0 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(139,92,246,.15));
  border: 1px solid var(--c-border-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.feature h4 { margin: 0 0 4px; color: #fff; font-size: 1rem; }
.feature p { margin: 0; color: var(--c-text-3); font-size: .92rem; }

/* ---------- Forms ---------- */
.form { max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form label { font-weight: 600; font-size: .88rem; color: var(--c-text-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--c-border-2);
  border-radius: 10px;
  font: inherit; font-size: .98rem;
  background: rgba(2, 6, 23, .6);
  color: #fff;
  transition: border-color .15s, background .15s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--c-text-4); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  background: rgba(2, 6, 23, .85);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-meta { color: var(--c-text-3); font-size: .88rem; margin-top: 12px; }
.form-success {
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
  color: #6ee7b7;
  padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; display: none;
}
.form-error {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
  padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg));
  border-top: 1px solid var(--c-border);
  padding: 72px 0 32px;
}
.site-footer h4 {
  color: #fff; margin-bottom: 16px;
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700;
}
.footer-grid {
  display: grid; gap: 36px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--c-text-3); max-width: 36ch; }
.brand-footer { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand-footer img { width: 48px; height: 48px; border-radius: 10px; }
.brand-footer span { color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand-footer em { color: var(--c-text-3); font-weight: 500; font-size: .82rem; font-style: normal; display: block; margin-top: 2px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--c-text-3); font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-brand a { color: var(--c-text-2); }
.footer-brand a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--c-text-3); font-size: .88rem;
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366;
  color: #fff !important;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 18px 36px -8px rgba(37,211,102,.55), 0 4px 14px rgba(0,0,0,.3);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 22px 46px -8px rgba(37,211,102,.7), 0 6px 18px rgba(0,0,0,.35);
  color: #fff !important;
}
.wa-fab svg { flex: 0 0 26px; }
.wa-fab-label { display: none; }
@media (min-width: 640px) { .wa-fab-label { display: inline; } }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 18px 36px -8px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,.4); }
  60%      { box-shadow: 0 18px 36px -8px rgba(37,211,102,.55), 0 0 0 18px rgba(37,211,102,0); }
}

/* ---------- Pricing table (legal-style 3-up) ---------- */
.pricing-table { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .pricing-table { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Solutions row (2 detailed product cards) ---------- */
.solutions-row { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .solutions-row { grid-template-columns: repeat(2, 1fr); } }

.solution-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .92));
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.solution-card.blue   { box-shadow: 0 30px 80px -30px rgba(59,130,246,.45); border-color: rgba(59,130,246,.30); }
.solution-card.emerald { box-shadow: 0 30px 80px -30px rgba(16,185,129,.45); border-color: rgba(16,185,129,.30); }
.solution-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,.55), rgba(139,92,246,.30), rgba(6,182,212,.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.solution-card.emerald::before {
  background: linear-gradient(135deg, rgba(16,185,129,.6), rgba(6,182,212,.3), rgba(34,211,238,.55));
}
.solution-card .top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 4px;
}
.solution-card .top-left { display: flex; align-items: center; gap: 14px; }
.solution-card .top-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,.30), rgba(139,92,246,.20));
  border: 1px solid var(--c-border-2);
  font-size: 1.4rem;
}
.solution-card.emerald .top-icon { background: linear-gradient(135deg, rgba(16,185,129,.30), rgba(6,182,212,.20)); }
.solution-card h3 { margin: 0; font-size: 1.25rem; }
.solution-card .tagline { color: var(--c-text-3); font-size: .88rem; margin-top: 2px; }
.solution-card .badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(139,92,246,.18); color: #d8b4fe;
  border: 1px solid rgba(139,92,246,.36);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.solution-card .price-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 20px;
}
.solution-card .price-big {
  font-size: 2.6rem; font-weight: 900; line-height: 1; color: #fff;
}
.solution-card .price-big small {
  font-size: .9rem; font-weight: 500; color: var(--c-text-3); margin-left: 4px;
}
.solution-card .setup-free {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(16,185,129,.14);
  border: 1px solid rgba(16,185,129,.32);
  color: #6ee7b7;
  font-size: .85rem; font-weight: 700;
}
.solution-card .setup-free strong { color: #d1fae5; font-size: 1rem; }
.solution-card .plans { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 6px; }
.solution-card .plans li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--c-border);
  font-size: .88rem; color: var(--c-text-2);
}
.solution-card .plans li strong { color: #fff; }
.solution-card .features { list-style: none; padding: 0; margin: 0 0 24px; }
.solution-card .features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0;
  color: var(--c-text-2); font-size: .93rem;
}
.solution-card .features li::before {
  content: ""; flex: 0 0 18px; height: 18px; width: 18px; margin-top: 3px;
  border-radius: 999px; background: rgba(16,185,129,.18);
  background-image: linear-gradient(135deg, rgba(16,185,129,.8), rgba(6,182,212,.4));
  position: relative;
}
.solution-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.solution-card .actions .btn { flex: 1 1 auto; min-width: 130px; }

/* ---------- Custom service cards (small with Get Quote) ---------- */
.svc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--c-border-2); }
.svc-card .svc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 14px;
  border: 1px solid var(--c-border-2);
}
.svc-card.cyan .svc-icon { background: rgba(6,182,212,.15); color: #67e8f9; }
.svc-card.blue .svc-icon { background: rgba(59,130,246,.15); color: #93c5fd; }
.svc-card.purple .svc-icon { background: rgba(139,92,246,.15); color: #c4b5fd; }
.svc-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.svc-card p { color: var(--c-text-3); font-size: .92rem; margin: 0 0 14px; }
.svc-card a.quote { color: #93c5fd; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
.svc-card a.quote::after { content: "↘"; transition: transform .2s; }
.svc-card a.quote:hover::after { transform: translate(2px, 2px); }

/* ---------- Live Demos panels with credentials ---------- */
.demos-row { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .demos-row { grid-template-columns: repeat(2, 1fr); } }
.demo-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .92));
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.demo-panel.blue { box-shadow: 0 30px 80px -30px rgba(59,130,246,.4); border-color: rgba(59,130,246,.28); }
.demo-panel.emerald { box-shadow: 0 30px 80px -30px rgba(16,185,129,.4); border-color: rgba(16,185,129,.28); }
.demo-panel .demo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.demo-panel .demo-head .top-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,.30), rgba(139,92,246,.20));
  font-size: 1.15rem;
}
.demo-panel.emerald .demo-head .top-icon { background: linear-gradient(135deg, rgba(16,185,129,.30), rgba(6,182,212,.20)); }
.demo-panel h3 { margin: 0; font-size: 1.1rem; }
.demo-panel .demo-body { display: block; }
.demo-panel .features-mini {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: grid; gap: 6px 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .demo-panel .features-mini { grid-template-columns: 1fr 1fr; }
}
.demo-panel .features-mini li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 4px 0; font-size: .9rem; color: var(--c-text-2);
}
.demo-panel .features-mini li::before { content: "▸"; color: #93c5fd; flex: 0 0 12px; font-weight: 700; }
.demo-panel.emerald .features-mini li::before { color: #6ee7b7; }
.demo-panel .demo-desc { color: var(--c-text-3); font-size: .92rem; margin: 0 0 20px; max-width: 70ch; }

.demo-panel .creds {
  background: rgba(2, 6, 23, .55);
  border: 1px solid var(--c-border-2);
  border-radius: 14px;
  padding: 18px;
  margin-top: 6px;
}
.demo-panel .creds-title {
  color: var(--c-text-3);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin-bottom: 12px;
}
/* Horizontal grid of credential cards */
.demo-panel .creds-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .demo-panel .creds-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .demo-panel .creds-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.demo-panel .cred-row {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .82rem;
  line-height: 1.55;
  word-break: break-all;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .2s, background .2s;
}
.demo-panel .cred-row:hover {
  background: rgba(255, 255, 255, .05);
  border-color: var(--c-border-2);
}
.demo-panel .role-name {
  font-size: .68rem;
  letter-spacing: .12em;
  font-weight: 800;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 2px;
}
.demo-panel.emerald .role-name { color: #6ee7b7; }
.demo-panel .cred-row .kv { color: var(--c-text-3); font-size: .78rem; }
.demo-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #e2e8f0;
  background: rgba(255,255,255,.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .76rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
}
.demo-panel .cred-row .kv {
  display: block;
  line-height: 1.5;
}
.demo-panel .launch-btn {
  margin-top: 16px; width: 100%; justify-content: center;
}

/* ---------- Workflow steps (detailed with bullet lists) ---------- */
.workflow-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .workflow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .workflow-grid { grid-template-columns: repeat(4, 1fr); } }
.workflow-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .25s, border-color .25s;
}
.workflow-card:hover { transform: translateY(-3px); border-color: var(--c-border-2); }
.workflow-card .wf-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: #fff;
  margin-bottom: 16px;
}
.workflow-card.cyan .wf-icon { background: linear-gradient(135deg, #06b6d4, #0ea5e9); box-shadow: 0 12px 24px -10px rgba(6,182,212,.5); }
.workflow-card.purple .wf-icon { background: linear-gradient(135deg, #8b5cf6, #a855f7); box-shadow: 0 12px 24px -10px rgba(139,92,246,.5); }
.workflow-card.blue .wf-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 12px 24px -10px rgba(59,130,246,.5); }
.workflow-card.emerald .wf-icon { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 12px 24px -10px rgba(16,185,129,.5); }
.workflow-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.workflow-card .wf-sub { color: var(--c-text-3); font-size: .82rem; margin-bottom: 14px; }
.workflow-card .wf-desc { color: var(--c-text-3); font-size: .88rem; margin: 0 0 12px; }
.workflow-card ul { list-style: none; padding: 0; margin: 0; }
.workflow-card ul li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 4px 0; font-size: .85rem; color: var(--c-text-2);
}
.workflow-card ul li::before { content: "✓"; color: #6ee7b7; flex: 0 0 14px; font-weight: 800; font-size: .8rem; margin-top: 2px; }

/* ---------- Tech stack pills row ---------- */
.tech-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 32px;
}
.tech-pill {
  padding: 8px 16px; border-radius: 999px;
  background: var(--c-surface); border: 1px solid var(--c-border-2);
  color: var(--c-text-2); font-size: .85rem; font-weight: 500;
  backdrop-filter: blur(8px);
}

/* ---------- Project brief form ---------- */
.brief-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .brief-grid { grid-template-columns: .9fr 1.6fr; } }
.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-card h3 { margin: 0 0 18px; font-size: 1.05rem; }
.contact-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .ci {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(139,92,246,.18));
  border: 1px solid var(--c-border-2);
}
.contact-row .ck { color: var(--c-text-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.contact-row .cv { color: #fff; font-size: .92rem; }
.contact-row .cv a { color: #fff; }
.brief-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.brief-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.brief-form label { font-weight: 600; font-size: .88rem; color: var(--c-text-2); }
.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--c-border-2);
  border-radius: 10px;
  font: inherit; font-size: .98rem;
  background: rgba(2, 6, 23, .6);
  color: #fff;
  transition: border-color .15s, background .15s;
}
.brief-form input::placeholder,
.brief-form textarea::placeholder { color: var(--c-text-4); }
.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  background: rgba(2, 6, 23, .85);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.brief-form textarea { min-height: 140px; resize: vertical; }
.brief-form .row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 0; }
@media (min-width: 640px) { .brief-form .row { grid-template-columns: 1fr 1fr; } }
.brief-form .row3 { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 0; }
@media (min-width: 760px) { .brief-form .row3 { grid-template-columns: repeat(3, 1fr); } }
.brief-form .form-meta { color: var(--c-text-3); font-size: .88rem; margin-top: 12px; }
.brief-form .form-success {
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
  color: #6ee7b7;
  padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; display: none;
}
.brief-form .form-error {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
  padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; display: none;
}

/* ---------- Footer overrides for original-style layout ---------- */
.footer-ready {
  background: linear-gradient(160deg, rgba(59,130,246,.20), rgba(139,92,246,.15));
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.footer-ready a.btn {
  width: 100%; justify-content: center; margin-top: 10px;
}
.social-row { display: flex; gap: 10px; margin-top: 12px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-surface); border: 1px solid var(--c-border-2);
  color: var(--c-text-2); font-size: .95rem;
}
.social-row a:hover { color: #fff; background: var(--c-surface-2); }

/* ---------- Reveal-on-scroll (paired with optional small IO script) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Mobile polish — make small viewports actually look good
   ========================================================= */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  body { font-size: 15px; }

  /* Header — compact */
  .nav-inner { height: 60px; }
  .brand img { height: 30px; }
  .menu-toggle { width: 38px; height: 38px; }

  /* Hero — tighter, balanced */
  .hero { padding: 88px 0 60px; }
  .hero h1 { font-size: 2.4rem; letter-spacing: -0.025em; margin-bottom: 18px; }
  .hero p.lead { font-size: 1rem; margin-bottom: 24px; max-width: 100%; }
  .hero-grid { gap: 28px; }
  .hero::before { width: 360px; height: 360px; left: -90px; top: -120px; filter: blur(70px); }
  .hero::after { width: 380px; height: 380px; right: -100px; bottom: -140px; filter: blur(70px); }

  /* Hero buttons — equal width pair */
  .hero .actions { gap: 10px; }
  .hero .actions .btn { flex: 1 1 calc(50% - 10px); padding: 11px 14px; font-size: .92rem; min-width: 0; }

  /* Stats — true 2-up grid (was 1-up stacked) */
  .hero-stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-stats .stat { padding: 10px 12px; }
  .hero-stats .stat .stat-icon { width: 34px; height: 34px; }
  .hero-stats .stat .stat-icon svg { width: 17px; height: 17px; }
  .hero-stats .stat strong { font-size: 1.05rem; }
  .hero-stats .stat span { font-size: .7rem; }

  /* Hero mockup — smaller card, terminal fits cleanly */
  .hero-art { min-height: 380px; margin-top: 4px; }
  .hero-mockup { max-width: 380px; border-radius: 24px; }
  .terminal { max-width: 340px; border-radius: 10px; }
  .terminal-titlebar { padding: 8px 10px; }
  .tdot { width: 10px; height: 10px; }
  .terminal-title { font-size: .64rem; }
  .terminal-body { padding: 12px 14px; font-size: .7rem; min-height: 196px; line-height: 1.7; }
  .terminal-line { white-space: normal; word-break: break-word; }
  .terminal .typing { white-space: nowrap; }
  .hero-badge { font-size: .72rem; padding: 6px 12px; bottom: 12px; left: 16px; }
  .hero-dot { transform: scale(.8); }

  /* Section spacing */
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 1.85rem; letter-spacing: -0.02em; }
  .section-header p { font-size: .95rem; max-width: 36ch; margin-left: auto; margin-right: auto; }
  .section-header .eyebrow { margin-bottom: 14px; }

  /* Solution cards (pricing) */
  .solutions-row { gap: 20px; }
  .solution-card { padding: 22px; }
  .solution-card .top { flex-wrap: wrap; }
  .solution-card .top-icon { width: 42px; height: 42px; font-size: 1.2rem; }
  .solution-card h3 { font-size: 1.05rem; }
  .solution-card .price-row { padding: 18px 0 14px; }
  .solution-card .price-big { font-size: 2rem; }
  .solution-card .setup-free { padding: 7px 12px; }
  .solution-card .setup-free strong { font-size: .9rem; }
  .solution-card .plans li { padding: 7px 10px; font-size: .82rem; }
  .solution-card .features li { font-size: .88rem; padding: 6px 0; }
  .solution-card .actions .btn { font-size: .92rem; padding: 11px 16px; }
  .custom-svc-title { margin-top: 44px; font-size: 1.05rem; }

  /* Custom services cards */
  .svc-card { padding: 20px; }
  .svc-card .svc-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .svc-card h3 { font-size: 1rem; }
  .svc-card p { font-size: .88rem; }

  /* Demo panels */
  .demos-row { gap: 20px; }
  .demo-panel { padding: 22px; }
  .demo-panel .demo-head .top-icon { width: 36px; height: 36px; font-size: 1.05rem; }
  .demo-panel h3 { font-size: 1.02rem; }
  .demo-panel .features-mini li { font-size: .85rem; padding: 3px 0; }
  .demo-panel .demo-desc { font-size: .88rem; margin-bottom: 16px; }
  .demo-panel .creds { padding: 14px; }
  .demo-panel .creds-grid.cols-3,
  .demo-panel .creds-grid.cols-2 { grid-template-columns: 1fr; gap: 10px; }
  .demo-panel .cred-row { padding: 10px 12px; }
  .demo-panel .role-name { font-size: .65rem; }

  /* Workflow */
  .workflow-grid { gap: 14px; }
  .workflow-card { padding: 22px; }
  .workflow-card .wf-icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 14px; }
  .workflow-card h3 { font-size: 1rem; }

  /* Tech pill row */
  .tech-row { gap: 8px; margin-top: 22px; }
  .tech-pill { padding: 6px 12px; font-size: .78rem; }

  /* FAQ */
  .faq details { padding: 16px 18px; }
  .faq summary { font-size: .94rem; }

  /* Brief form */
  .brief-grid { gap: 22px; }
  .contact-card { padding: 22px; }
  .contact-card h3 { font-size: 1rem; }
  .contact-row { padding: 10px 0; }
  .contact-row .ci { width: 32px; height: 32px; font-size: .9rem; }
  .contact-row .cv { font-size: .88rem; }
  .brief-form { padding: 22px; }
  .brief-form h3 { font-size: 1rem; }
  .brief-form input, .brief-form select, .brief-form textarea {
    padding: 11px 12px; font-size: 16px; /* 16px prevents iOS zoom on focus */
  }
  .brief-form label { font-size: .85rem; }

  /* CTA banner */
  .cta-banner { padding: 36px 22px; border-radius: var(--radius-lg); }
  .cta-banner h2 { font-size: 1.7rem; }
  .cta-banner p { font-size: .95rem; }

  /* Footer */
  .site-footer { padding: 50px 0 28px; }
  .footer-grid { gap: 28px; }
  .footer-brand p { max-width: 100%; }
  .brand-footer img { width: 42px; height: 42px; }
  .brand-footer span { font-size: 1rem; }

  /* WhatsApp FAB compact */
  .wa-fab { padding: 11px 13px; font-size: .85rem; right: 14px; bottom: 14px; gap: 8px; }
  .wa-fab svg { flex: 0 0 22px; width: 22px; height: 22px; }
  .wa-fab-label { display: none; }
  /* Add extra bottom space on last section so WA FAB doesn't cover content */
  .site-footer { padding-bottom: 70px; }
}

/* Narrow phone refinements */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.1rem; }
  .section-header h2 { font-size: 1.6rem; }
  .solution-card .price-big { font-size: 1.75rem; }
  .nav-inner { height: 56px; }
  .brand img { height: 28px; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-banner, .wa-fab { display: none; }
  body { background: #fff; color: #000; }
  .hero, .section { padding: 24px 0; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; }
