/* ═══════════════════════════════════════════════
   ZIARM DYNAMICS — big tech modern
   clean white · gradient accent · glassy · Switzer
   ═══════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-tint: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #0b0d12;
  --body: #4b5563;
  --muted: #9098a3;
  --line: #e7e9ee;
  --line-strong: #dcdfe6;
  --sk-1: #dfe3e9;
  --sk-2: #eceef2;
  --dot: rgba(11, 13, 18, 0.13);
  --nav-bg: rgba(255, 255, 255, 0.75);
  --nav-bg-solid: rgba(255, 255, 255, 0.92);
  --band: #0b0d12;
  /* brand blues — matched to the Ziarm Dynamics logo gradient */
  --sky: #6cc4fa;
  --blue: #2e7cf6;
  --blue-deep: #1d4fd8;
  --violet: #2e7cf6; /* legacy accent name, now brand blue */
  --rose: #0ea5e9;
  --teal: #0d9488;
  --green: #16a34a;
  --orange: #ea580c;
  --grad: linear-gradient(100deg, var(--sky), var(--blue) 55%, var(--blue-deep));
  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-lg: 24px;
  --r-md: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.05), 0 4px 12px rgba(11, 13, 18, 0.05);
  --shadow-lg: 0 2px 6px rgba(11, 13, 18, 0.05), 0 24px 60px -12px rgba(11, 13, 18, 0.18);
  --pad: clamp(20px, 5vw, 64px);
}

/* ═══════════ DARK THEME ═══════════ */
html[data-theme="dark"] {
  --bg: #0a0d14;
  --bg-tint: #0d1119;
  --surface: #131824;
  --surface-2: #0f141d;
  --ink: #f1f4f9;
  --body: #a4aebe;
  --muted: #67707e;
  --line: #222937;
  --line-strong: #333c4d;
  --sk-1: #2a3242;
  --sk-2: #1d2431;
  --dot: rgba(255, 255, 255, 0.09);
  --nav-bg: rgba(13, 17, 26, 0.7);
  --nav-bg-solid: rgba(13, 17, 26, 0.92);
  --band: #0e1119;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 60px -12px rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--violet); color: #fff; }

.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: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-grad {
  background: var(--grad);
  background-size: 150% 100%;
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(46, 124, 246, 0.55);
}
.btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(46, 124, 246, 0.65);
  background-position: 100% 0;
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.btn-white {
  background: #fff; color: #0b0d12; /* fixed ink — sits on a fixed-white button in both themes */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.btn-white:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ═══════════ NAV ═══════════ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; justify-content: center;
  padding: 14px var(--pad) 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  width: 100%; max-width: 1080px;
  padding: 10px 12px 10px 20px;
  border-radius: 100px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  transition: box-shadow 0.4s, background 0.4s;
}
.nav.scrolled { box-shadow: var(--shadow-lg); background: var(--nav-bg-solid); }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-lockup {
  display: flex; flex-direction: column;
  line-height: 1; gap: 4px;
}
.logo-top {
  font-weight: 800; font-size: 15.5px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
}
.logo-bot {
  font-weight: 700; font-size: 8.5px;
  letter-spacing: 0.46em; text-transform: uppercase;
  color: var(--blue);
}
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav-links a {
  color: var(--body); text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 6px 4px;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--body);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.theme-btn:hover { color: var(--blue); border-color: var(--line-strong); transform: translateY(-1px); }
.theme-btn svg { width: 19px; height: 19px; }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }
html[data-theme="light"] .theme-btn .i-sun { display: none; }
.nav-burger {
  display: none; flex-direction: column; gap: 5.5px;
  background: none; border: none; cursor: pointer; padding: 10px 6px;
}
.nav-burger span {
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 890;
  background: var(--nav-bg-solid);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
body.menu-open .sheet { opacity: 1; visibility: visible; }
.sheet-links { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sheet-links a {
  color: var(--ink); text-decoration: none;
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  padding: 8px 16px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
body.menu-open .sheet-links a { opacity: 1; transform: none; }
body.menu-open .sheet-links a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .sheet-links a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .sheet-links a:nth-child(3) { transition-delay: 0.20s; }
body.menu-open .sheet-links a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .sheet-links a:nth-child(5) { transition-delay: 0.32s; }
.sheet-cta { color: transparent !important; background: var(--grad); -webkit-background-clip: text; background-clip: text; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-burger { display: flex; }
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  padding: clamp(140px, 18vh, 190px) var(--pad) 40px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.a1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(46, 124, 246, 0.32), transparent 65%); top: -180px; left: -120px; animation: drift1 16s ease-in-out infinite alternate; }
.a2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(108, 196, 250, 0.32), transparent 65%); top: -140px; right: -100px; animation: drift2 18s ease-in-out infinite alternate; }
.a3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(29, 79, 216, 0.2), transparent 65%); top: 240px; left: 38%; animation: drift1 20s ease-in-out 2s infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(70px, 50px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-60px, 60px) scale(1.08); } }
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, black 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, black 25%, transparent 72%);
}

.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600;
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.08); } }
.hero-title {
  font-size: clamp(3rem, 8.5vw, 6.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero-sub {
  max-width: 560px;
  color: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: clamp(50px, 7vw, 80px); }

/* load-in stagger */
.load-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
body.loaded .load-up { opacity: 1; transform: none; }
body.loaded .load-up:nth-of-type(1) { transition-delay: 0.05s; }
.hero-inner > .load-up:nth-child(1) { transition-delay: 0.05s; }
.hero-inner > .load-up:nth-child(2) { transition-delay: 0.15s; }
.hero-inner > .load-up:nth-child(3) { transition-delay: 0.25s; }
.hero-inner > .load-up:nth-child(4) { transition-delay: 0.35s; }
.hero-inner > .load-up:nth-child(5) { transition-delay: 0.5s; }

/* ── product mockup ── */
.mock-wrap { position: relative; width: 100%; max-width: 920px; perspective: 1400px; }
.mock-glow {
  position: absolute; inset: 8% -4% -6% -4%; z-index: -1;
  background: var(--grad);
  filter: blur(70px);
  opacity: 0.22;
  border-radius: 40px;
}
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mdot { width: 10px; height: 10px; border-radius: 50%; background: var(--sk-1); }
.mdot:nth-child(1) { background: #fb6058; } .mdot:nth-child(2) { background: #fcbc2e; } .mdot:nth-child(3) { background: #28c841; }
.mock-url {
  margin: 0 auto;
  font-size: 12px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: 3px 24px; border-radius: 7px;
}
.mock-body { display: flex; }
.mock-side {
  width: 64px;
  border-right: 1px solid var(--line);
  padding: 16px 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--surface-2);
}
.ms-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
  margin-bottom: 8px;
}
.ms-item { width: 30px; height: 30px; border-radius: 8px; background: var(--sk-2); }
.ms-item.active { background: rgba(46, 124, 246, 0.16); outline: 2px solid rgba(46, 124, 246, 0.4); }
.mock-main { flex: 1; padding: clamp(14px, 2.6vw, 26px); text-align: left; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-title-sk { width: 150px; height: 13px; border-radius: 6px; background: var(--sk-1); margin-bottom: 8px; }
.mock-sub-sk { width: 90px; height: 9px; border-radius: 5px; background: var(--sk-2); }
.mock-pill {
  font-size: 12.5px; font-weight: 700;
  color: var(--green);
  background: rgba(22, 163, 74, 0.1);
  padding: 5px 12px; border-radius: 100px;
}
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mc {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px;
}
.mc-label { width: 60%; height: 8px; border-radius: 4px; background: var(--sk-2); margin-bottom: 10px; }
.mc-num { height: 14px; border-radius: 6px; }
.n1 { width: 70%; background: linear-gradient(90deg, #2e7cf6, #6cc4fa); }
.n2 { width: 55%; background: linear-gradient(90deg, #1d4fd8, #5a8df8); }
.n3 { width: 62%; background: linear-gradient(90deg, #0ea5e9, #7dd3fc); }
.mock-chart {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; margin-bottom: 18px;
}
.mock-chart svg { width: 100%; height: clamp(80px, 12vw, 140px); display: block; }
.chart-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.chart-fill { opacity: 0; }
body.loaded .chart-line { animation: dash 2.2s var(--ease) 0.9s forwards; }
body.loaded .chart-fill { animation: fadein 1s ease 2s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.mock-rows { display: flex; flex-direction: column; gap: 10px; }
.mr { height: 30px; border-radius: 9px; background: var(--sk-2); }
.mr:nth-child(2) { opacity: 0.7; } .mr:nth-child(3) { opacity: 0.45; }
@media (max-width: 640px) {
  .mock-side { display: none; }
  .mock-rows .mr:nth-child(3) { display: none; }
}

/* ═══════════ TRUST STRIP ═══════════ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.strip-track {
  display: flex; gap: 34px; width: max-content;
  animation: strip 30s linear infinite;
  color: var(--muted);
  font-weight: 600; font-size: 14.5px;
}
.strip-track span { white-space: nowrap; }
@keyframes strip { to { transform: translateX(-50%); } }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: clamp(80px, 10vw, 140px) var(--pad); }
.section-tint { background: var(--bg-tint); }
.section > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.sec-head { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }
.chip {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue);
  background: rgba(46, 124, 246, 0.08);
  border: 1px solid rgba(46, 124, 246, 0.2);
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 20px;
}
.sec-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.sec-sub { color: var(--body); max-width: 520px; margin: 0 auto; font-size: 1.06rem; }

/* reveals */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ═══════════ BENTO ═══════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cell {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s, background 0.4s;
}
.cell:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.cell::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(46, 124, 246, 0.08), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.cell:hover::before { opacity: 1; }
.cell-lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.cell-wide { grid-column: span 2; }
.cell h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.cell p { color: var(--body); font-size: 14.5px; line-height: 1.6; }
.cell-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 18px;
}
.cell-icon svg { width: 22px; height: 22px; }
.ic-blue { background: rgba(46, 124, 246, 0.1); color: var(--blue); }
.ic-violet { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.ic-teal { background: rgba(13, 148, 136, 0.1); color: var(--teal); }
.ic-rose { background: rgba(29, 79, 216, 0.1); color: var(--blue-deep); }

.cell-visual { margin-bottom: 20px; }
.cv-web {
  flex: 1;
  background: linear-gradient(160deg, #eff6ff, #e0f2fe);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  display: grid; place-items: center;
  min-height: 190px;
}
.cvw {
  width: 82%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.cell:hover .cvw { transform: translateY(-4px) scale(1.02); }
.cvw-bar { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cvw-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--sk-1); }
.cvw-hero { height: 44px; margin: 10px; border-radius: 7px; background: var(--grad); opacity: 0.85; }
.cvw-cols { display: flex; gap: 8px; padding: 0 10px 12px; }
.cvw-cols i { flex: 1; height: 26px; border-radius: 6px; background: var(--sk-2); }

.cv-flow {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(160deg, #f0fdfa, #eef2ff);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 18px;
  justify-content: center;
}
.node {
  font-size: 13px; font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 8px 16px; border-radius: 100px;
}
.n-a { color: var(--blue); } .n-b { color: var(--violet); } .n-c { color: var(--rose); }
.flow-line {
  flex: 0 1 60px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--sk-1) 0 6px, transparent 6px 12px);
  animation: flow 1.2s linear infinite;
}
@keyframes flow { to { background-position: 12px 0; } }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-lg { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cell-lg, .cell-wide { grid-column: span 1; }
  .cv-flow { flex-wrap: wrap; }
}

/* ═══════════ PRODUCTS ═══════════ */
.prods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.prod {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.4s;
}
.prod:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod-visual {
  height: 190px;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.pv-indigo { background: linear-gradient(160deg, #eef2ff, #e0e7ff); }
.pv-green { background: linear-gradient(160deg, #f0fdf4, #dcfce7); }
.pv-orange { background: linear-gradient(160deg, #fff7ed, #ffedd5); }
.pv-sky { background: linear-gradient(160deg, #eff8ff, #dbeefe); }
html[data-theme="dark"] .pv-indigo { background: linear-gradient(160deg, #141c33, #101526); }
html[data-theme="dark"] .pv-green { background: linear-gradient(160deg, #0e2117, #0c1a13); }
html[data-theme="dark"] .pv-orange { background: linear-gradient(160deg, #291a0d, #1d1409); }
html[data-theme="dark"] .pv-sky { background: linear-gradient(160deg, #0e2030, #0c1826); }
html[data-theme="dark"] .cv-web { background: linear-gradient(160deg, #101a2c, #0d1626); }
html[data-theme="dark"] .cv-flow { background: linear-gradient(160deg, #0d1d20, #101a2c); }

.pvw {
  width: 66%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 12px;
  transition: transform 0.5s var(--ease);
}
.prod:hover .pvw { transform: translateY(-5px) rotate(-1deg); }
.pvw-head { display: flex; gap: 6px; margin-bottom: 12px; }
.pvw-head i { height: 8px; border-radius: 4px; background: var(--sk-2); }
.pvw-head i:first-child { width: 42%; }
.pvw-head i:last-child { width: 20%; }
.pvw-bars { display: flex; align-items: flex-end; gap: 7px; height: 74px; }
.pvw-bars span {
  flex: 1; border-radius: 5px 5px 2px 2px;
  height: var(--h);
  background: linear-gradient(180deg, #2e7cf6, #93c5fd);
  transform-origin: bottom;
  animation: barPulse 2.6s ease-in-out infinite alternate;
}
.pvw-bars span:nth-child(2) { animation-delay: 0.3s; }
.pvw-bars span:nth-child(3) { animation-delay: 0.6s; }
.pvw-bars span:nth-child(4) { animation-delay: 0.9s; }
.pvw-bars span:nth-child(5) { animation-delay: 1.2s; }
@keyframes barPulse { from { transform: scaleY(0.72); } to { transform: scaleY(1); } }

.pv-chat { display: flex; flex-direction: column; gap: 10px; width: 74%; }
.pc-b {
  font-size: 12.5px; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 8px 14px;
  width: fit-content;
  animation: chatIn 5.4s var(--ease) infinite;
  opacity: 0;
}
.b-in  { border-radius: 14px 14px 14px 4px; }
.b-out { border-radius: 14px 14px 4px 14px; align-self: flex-end; color: var(--green); }
.pc-b:nth-child(1) { animation-delay: 0s; }
.pc-b:nth-child(2) { animation-delay: 1.6s; }
.pc-b:nth-child(3) { animation-delay: 3.2s; }
@keyframes chatIn {
  0% { opacity: 0; transform: translateY(10px) scale(0.94); }
  7%, 78% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; }
}

.pv-scan { width: 60%; }
.pvs-frame {
  position: relative;
  border: 2px dashed rgba(234, 88, 12, 0.45);
  border-radius: 14px;
  padding: 22px 18px;
  display: grid; place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}
html[data-theme="dark"] .pvs-frame { background: rgba(13, 18, 28, 0.55); }
.pvs-line {
  position: absolute; left: 6%; right: 6%; height: 2.5px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.55);
  animation: scanMove 2.4s ease-in-out infinite alternate;
}
@keyframes scanMove { from { top: 12%; } to { top: 84%; } }
.pvs-code { display: flex; gap: 4px; align-items: flex-end; height: 46px; }
.pvs-code b { width: 4px; height: 100%; background: var(--ink); border-radius: 1px; }
.pvs-code b:nth-child(even) { height: 68%; opacity: 0.55; }
.pvs-code b:nth-child(3n) { width: 8px; }

/* StudiVista — mini video-call visual */
.pv-call { width: 68%; }
.pvc-tiles {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 9px; margin-bottom: 11px;
}
.pvc-tile {
  position: relative;
  height: 66px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.pvc-avatar { width: 27px; height: 27px; border-radius: 50%; }
.t1 { background: linear-gradient(135deg, #6cc4fa, #2e7cf6); }
.t2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.pvc-ring {
  position: absolute; inset: 0; margin: auto;
  width: 27px; height: 27px; border-radius: 50%;
  border: 2px solid rgba(46, 124, 246, 0.65);
  animation: ringPulse 1.9s ease-out infinite;
}
@keyframes ringPulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(2); opacity: 0; }
}
.pvc-bar {
  display: flex; gap: 11px;
  width: fit-content; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 15px;
  box-shadow: var(--shadow-sm);
}
.pvc-bar b { width: 10px; height: 10px; border-radius: 50%; background: var(--sk-1); }
.pvc-bar b.on { background: var(--green); }
.pvc-bar b.end { background: #ef4444; }

.prod-body { padding: 24px 26px 28px; }
.prod-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  margin-bottom: 14px;
}
.t-indigo { color: var(--blue-deep); background: rgba(46, 124, 246, 0.09); }
.t-green { color: var(--green); background: rgba(22, 163, 74, 0.09); }
.t-orange { color: var(--orange); background: rgba(234, 88, 12, 0.09); }
.t-sky { color: #0ea5e9; background: rgba(14, 165, 233, 0.09); }
.prod-body h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.prod-body p { color: var(--body); font-size: 15px; margin-bottom: 18px; }
.prod-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 14.5px;
}
.prod-link span { transition: transform 0.3s var(--ease); }
.prod-link:hover span { transform: translateX(4px); }
.prod-link:hover { color: var(--violet); }

/* ═══════════ STATS ═══════════ */
.stats {
  background: var(--band);
  padding: clamp(60px, 8vw, 100px) var(--pad);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute; inset: -40%;
  background:
    radial-gradient(600px circle at 20% 50%, rgba(46, 124, 246, 0.28), transparent 55%),
    radial-gradient(600px circle at 80% 50%, rgba(29, 79, 216, 0.3), transparent 55%);
}
.stats-inner {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.stat-key { color: rgba(255, 255, 255, 0.55); font-size: 14.5px; font-weight: 500; }

/* ═══════════ PROCESS ═══════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.stp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.stp:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stp-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff; font-weight: 800; font-size: 17px;
  margin-bottom: 18px;
}
.stp h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em; }
.stp p { color: var(--body); font-size: 14.5px; }

/* ═══════════ STUDIO ═══════════ */
.studio {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.studio-left .sec-title, .studio-left .sec-sub { text-align: left; margin-left: 0; }
.studio-right { display: flex; flex-direction: column; gap: 14px; }
.check {
  display: flex; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.check:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.check-ic {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
  font-weight: 800; font-size: 15px;
}
.check b { display: block; font-size: 15.5px; letter-spacing: -0.01em; margin-bottom: 3px; }
.check p { color: var(--body); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }

/* ═══════════ CTA ═══════════ */
.cta {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  background: var(--band);
  border-radius: 32px;
  padding: clamp(50px, 8vw, 90px) clamp(24px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}
.cta-aurora {
  position: absolute; inset: -60%;
  background:
    radial-gradient(500px circle at 30% 40%, rgba(46, 124, 246, 0.5), transparent 55%),
    radial-gradient(500px circle at 70% 60%, rgba(29, 79, 216, 0.5), transparent 55%),
    radial-gradient(400px circle at 50% 90%, rgba(108, 196, 250, 0.3), transparent 55%);
  animation: ctaSpin 14s linear infinite;
}
@keyframes ctaSpin { to { transform: rotate(360deg); } }
.cta h2 {
  position: relative;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta p {
  position: relative;
  color: rgba(255, 255, 255, 0.65);
  max-width: 440px; margin: 0 auto 32px;
}
.cta .btn { position: relative; }

/* ═══════════ CONTACT ═══════════ */
.contact {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact-left .sec-title, .contact-left .sec-sub { text-align: left; margin-left: 0; }
.contact-info {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 30px;
}
.contact-info a, .contact-info span {
  color: var(--body); text-decoration: none;
  font-size: 15.5px; width: fit-content;
}
.contact-info a:hover { color: var(--violet); }
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 3.4vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-group { display: flex; flex-direction: column; gap: 8px; }
.f-group label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.f-group input, .f-group textarea {
  font-family: var(--sans); font-size: 15.5px;
  color: var(--ink);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.f-group input:focus, .f-group textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.14);
}
.f-group ::placeholder { color: var(--muted); }
.f-note { font-size: 13.5px; font-weight: 600; color: var(--green); min-height: 18px; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  padding: clamp(50px, 7vw, 80px) var(--pad) 30px;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  padding-bottom: 44px;
}
.footer-brand p { color: var(--body); font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col b { font-size: 14px; margin-bottom: 6px; }
.footer-col a {
  color: var(--body); text-decoration: none; font-size: 14.5px;
  width: fit-content;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .chart-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .chart-fill { opacity: 1; }
}
