/* =================================================================
   RedOps · Marketing Site
   Theme: Red / White / Black (with dark variant)
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --accent: #e10600;          /* signal red */
  --accent-2: #ff3b30;        /* bright red */
  --accent-3: #ffb199;        /* soft red */
  --accent-deep: #b00500;
  --ink: #0a0a0a;
  --ink-2: #111114;
  --ink-3: #1a1a20;
  --line: rgba(10, 10, 10, 0.08);
  --line-2: rgba(10, 10, 10, 0.12);
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --bg-2: #fafafa;
  --text: #0a0a0a;
  --text-2: #3a3a40;
  --muted: #6b6b73;
  --muted-2: #9b9ba3;

  /* misc */
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-2: 0 1px 0 rgba(0, 0, 0, .04), 0 20px 48px rgba(0, 0, 0, .12);
  --shadow-red: 0 8px 28px rgba(225, 6, 0, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Inter is self-hosted (./fonts/fonts.css); CJK falls through to system fonts. */
  --font-display: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-cn: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

/* Dark variant */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-soft: #111114;
  --bg-2: #0e0e10;
  --text: #f5f5f7;
  --text-2: #cfcfd4;
  --muted: #9b9ba3;
  --muted-2: #6b6b73;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f5f5f7;
  --ink-2: #ffffff;
  --ink-3: #1a1a20;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 32px rgba(0, 0, 0, .55);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .03), 0 28px 56px rgba(0, 0, 0, .65);
  --shadow-red: 0 12px 36px rgba(225, 6, 0, .32);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-display);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px; border-radius: 4px; background: rgba(225, 6, 0, 0.08); color: var(--accent); }

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

/* ---------- Layout helpers ---------- */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.section { padding: 96px 0; position: relative; }
.section-dark {
  background: var(--ink);
  color: #fff;
  --text: #fff;
  --text-2: #c8c8d0;
  --muted: #8d8d96;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
}
[data-theme="dark"] .section-dark { background: #000; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  opacity: 0.9;
}
.section-title {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.grad-red {
  background: linear-gradient(135deg, #ff3b30 0%, #e10600 60%, #b00500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub { color: var(--muted); font-size: 16px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: #fff;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-core { text-align: center; }
.loader-mark {
  width: 56px; height: 56px; margin: 0 auto 18px; position: relative;
}
.loader-mark span {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 4px; background: var(--accent);
  transform: translate(-50%, -50%);
  animation: mark 1.4s var(--ease) infinite;
}
.loader-mark span:nth-child(2) { animation-delay: 0.15s; opacity: 0.7; }
.loader-mark span:nth-child(3) { animation-delay: 0.3s; opacity: 0.45; }
@keyframes mark {
  0%, 100% { transform: translate(-50%, -50%) rotate(0); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.2); }
}
.loader-text { font-weight: 800; letter-spacing: 0.2em; font-size: 14px; color: #fff; }
.loader-dots { color: var(--accent); }

/* ---------- Background FX ---------- */
.bg-fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#bgGrid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bg-aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 20% 10%, rgba(225, 6, 0, 0.18) 0%, transparent 60%),
    radial-gradient(50% 35% at 90% 0%, rgba(255, 59, 48, 0.10) 0%, transparent 60%),
    radial-gradient(40% 30% at 50% 100%, rgba(225, 6, 0, 0.08) 0%, transparent 60%);
  filter: blur(20px);
  animation: aurora 18s ease-in-out infinite;
}
@keyframes aurora {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -2%) scale(1.05); }
}
.bg-noise {
  position: absolute; inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}
[data-theme="dark"] .bg-noise { opacity: 0.06; }

main, header, footer { position: relative; z-index: 1; }

/* ---------- Cursor halo ---------- */
.cursor-halo {
  position: fixed;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity .3s ease;
  mix-blend-mode: screen;
  opacity: 0;
}
.cursor-halo.is-on { opacity: 1; }
@media (max-width: 900px) { .cursor-halo { display: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-stuck { border-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 900;
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: ''; position: absolute; inset: -1px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,0.4) 60deg, transparent 120deg);
  animation: spin 4s linear infinite;
  mix-blend-mode: overlay;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand-text { font-size: 18px; letter-spacing: -0.01em; color: var(--text); }
.brand-accent { color: var(--accent); }
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
  color: var(--text-2); transition: all .25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column; padding: 8px 0 16px; border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav-mobile a { padding: 12px 4vw; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn:not(#themeToggle) { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-mobile { display: flex; }
  .nav-mobile[hidden] { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-weight: 600; font-size: 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s ease, background .25s ease, color .25s ease;
  position: relative;
  white-space: nowrap;
}
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-xl { padding: 16px 28px; font-size: 16px; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(225, 6, 0, .32); }
.btn-outline {
  border-color: var(--line-2); color: var(--text);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost { padding: 8px; border-radius: 50%; }
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- HERO ---------- */
.hero { padding: 140px 0 40px; position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 110px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 8px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; color: var(--text-2);
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(225, 6, 0, 0); }
}
.eyebrow-chip { padding: 2px 8px; background: var(--accent); color: #fff; border-radius: var(--radius-pill); font-size: 11px; }

.hero-title {
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.title-stack { position: relative; display: inline-block; min-height: 1.1em; }
.title-rot-item {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; transform: translateY(20%);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  background: linear-gradient(135deg, #ff3b30 0%, #e10600 50%, #b00500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-rot-item.is-active { opacity: 1; transform: translateY(0); }

.hero-sub {
  font-size: 17px; color: var(--text-2);
  max-width: 560px; margin-bottom: 28px;
}
.hero-sub b { color: var(--text); font-weight: 700; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; max-width: 580px;
  padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
}
.hero-trust li { display: flex; flex-direction: column; gap: 2px; }
.trust-num { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.trust-label { font-size: 11px; color: var(--muted); }
@media (max-width: 560px) { .hero-trust { grid-template-columns: repeat(2, 1fr); } }

/* Hero device mock */
.hero-visual { position: relative; perspective: 1600px; }
.device {
  background: #0a0a0a;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
  transform: rotateX(2deg) rotateY(-6deg);
  transition: transform .5s var(--ease);
}
.device:hover { transform: rotateX(0) rotateY(0); }
.device::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.12), transparent 40%);
  pointer-events: none;
}
.device-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, #181820, #0e0e14);
}
.device-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.d1 { background: #ff5f57; }
.dot.d2 { background: #febc2e; }
.dot.d3 { background: #28c840; }
.device-title { flex: 1; text-align: center; color: #cfcfd4; font-size: 12px; font-weight: 600; }
.device-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(40, 200, 64, 0.12); color: #6be48a;
}
.pulse { width: 6px; height: 6px; background: #28c840; border-radius: 50%; box-shadow: 0 0 0 0 #28c840; animation: pulse 1.5s ease-out infinite; }

.device-body { display: grid; grid-template-columns: 130px 1fr; min-height: 380px; }
.device-side { background: #0c0c12; padding: 14px 10px; border-right: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 4px; }
.side-logo { font-weight: 900; padding: 6px 8px 14px; color: #fff; font-size: 16px; }
.side-logo span { color: var(--accent); }
.side-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  color: #aaa; font-size: 12px; font-weight: 500;
  cursor: default;
}
.side-item.is-active { background: rgba(225, 6, 0, 0.14); color: #fff; border-left: 2px solid var(--accent); padding-left: 8px; }
.side-icon { font-size: 14px; }

.device-main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.device-h { display: flex; justify-content: space-between; align-items: flex-end; }
.device-h h4 { color: #fff; font-size: 14px; }
.device-h small { color: #8d8d96; font-size: 11px; }
.device-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.04); padding: 3px; border-radius: 8px; }
.dt { padding: 4px 10px; font-size: 11px; border-radius: 6px; color: #aaa; cursor: default; }
.dt.is-active { background: var(--accent); color: #fff; }

.device-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dc {
  padding: 10px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.dc span { font-size: 10px; color: #8d8d96; }
.dc b { font-size: 18px; color: #fff; font-weight: 800; }
.trend { font-size: 10px; font-style: normal; }
.trend.up { color: #6be48a; }
.trend.warn { color: #ffb199; }
.trend.down { color: #ff7b7b; }

.device-chart { height: 100px; background: rgba(255,255,255,0.02); border-radius: 10px; padding: 8px; }
.device-chart svg { width: 100%; height: 100%; }
.device-chart .grid line { stroke: rgba(255,255,255,0.05); stroke-dasharray: 2 4; }

.device-events { display: flex; flex-direction: column; gap: 6px; }
.ev { font-size: 11px; color: #cfcfd4; display: flex; align-items: center; gap: 6px; }
.ev b { color: #fff; }
.ev i { color: #6b6b73; font-style: normal; font-size: 10px; }
.ev-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ev-dot.ok { background: #28c840; }
.ev-dot.warn { background: #febc2e; }

/* Floating cards */
.floating-card {
  position: absolute; display: flex; gap: 10px; align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
  transform-style: preserve-3d;
  transition: transform .3s var(--ease);
}
.fc-1 { top: -16px; right: -10px; animation: float 6s ease-in-out infinite; }
.fc-2 { bottom: 30px; left: -20px; animation: float 7s ease-in-out infinite reverse; }
.fc-icon { font-size: 18px; }
.floating-card small { display: block; font-size: 10px; color: var(--muted); }
.floating-card b { font-size: 12px; color: var(--text); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 980px) { .fc-1, .fc-2 { display: none; } }

/* Hero marquee */
.hero-marquee {
  margin-top: 60px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; gap: 48px; white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-weight: 800; font-size: 20px; letter-spacing: 0.04em; color: var(--muted);
  text-transform: uppercase;
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section: Team ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

.agent-card {
  position: relative;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  transform-style: preserve-3d;
  overflow: hidden;
}
.agent-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(225, 6, 0, 0.06), transparent 60%);
  pointer-events: none;
  opacity: 0; transition: opacity .35s;
}
.agent-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.agent-card:hover::before { opacity: 1; }
.agent-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-m);
  overflow: hidden; background: var(--bg-soft);
  margin-bottom: 14px; position: relative;
}
.agent-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.agent-card:hover .agent-photo img { transform: scale(1.05); }
.agent-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(225, 6, 0, 0.0), transparent 40%);
}
.agent-info { display: flex; flex-direction: column; gap: 6px; }
.agent-dept {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase;
}
.agent-card h3 { font-size: 16px; }
.agent-card p { font-size: 13px; color: var(--muted); }
.agent-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.agent-tools li {
  font-size: 10px; padding: 3px 8px; border-radius: var(--radius-pill);
  background: var(--bg-soft); color: var(--text-2);
}
.agent-flag {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-red);
}

/* ---------- Section: Features ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature {
  position: relative;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-l);
  transition: all .35s var(--ease);
  overflow: hidden;
}
.feature::after {
  content: ''; position: absolute; right: -30%; top: -30%;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.4), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.feature:hover { border-color: rgba(225, 6, 0, 0.4); transform: translateY(-4px); background: rgba(255, 255, 255, 0.06); }
.feature:hover::after { opacity: 0.4; }
.feature-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.feature p { font-size: 14px; color: rgba(255,255,255,0.7); }
.feature-tag {
  display: inline-block; margin-top: 12px;
  font-size: 11px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(225, 6, 0, 0.15); color: #ffb199;
  border: 1px solid rgba(225, 6, 0, 0.3);
}

/* ---------- Section: Workflow ---------- */
.workflow { position: relative; padding: 24px 0 8px; }
.wf-line {
  position: absolute; top: 28px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(to right, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
  opacity: 0.3;
  overflow: hidden;
}
.wf-line::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, #fff, transparent);
  width: 30%;
  animation: scan 3s ease-in-out infinite;
}
@keyframes scan { 0% { left: -30%; } 100% { left: 100%; } }
.wf-steps {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; position: relative;
}
@media (max-width: 1100px) { .wf-steps { grid-template-columns: repeat(4, 1fr); } .wf-line { display: none; } }
@media (max-width: 600px) { .wf-steps { grid-template-columns: repeat(2, 1fr); } }
.wf-step { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.wf-bubble {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--accent);
  font-weight: 900; font-size: 18px;
  border: 2px solid var(--accent);
  position: relative; z-index: 1;
  transition: all .35s var(--ease);
  box-shadow: 0 0 0 0 var(--accent);
}
.wf-step:hover .wf-bubble { background: var(--accent); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 8px rgba(225, 6, 0, 0.1); }
.wf-card {
  padding: 14px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  width: 100%;
}
.wf-card h4 { font-size: 14px; margin-bottom: 4px; }
.wf-card p { font-size: 12px; color: var(--muted); }

/* ---------- Section: Dashboard ---------- */
.dash-wrap { perspective: 1800px; }
.dash {
  background: #0a0a0c;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.dash::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(transparent 0%, transparent 95%, rgba(225, 6, 0, 0.15) 100%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255,255,255,0.02) 3px);
  pointer-events: none;
  animation: scanlines 8s linear infinite;
}
@keyframes scanlines { to { background-position: 0 100%; } }
.dash-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; position: relative; z-index: 1; }
.dash-h h4 { color: #fff; font-size: 14px; letter-spacing: 0.2em; }
.dash-time { color: var(--accent); font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.dash-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.dash-kpi {
  padding: 14px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-m);
  display: flex; flex-direction: column; gap: 4px;
}
.dash-kpi span { font-size: 11px; color: #8d8d96; }
.dash-kpi b { font-size: 22px; color: #fff; font-weight: 900; font-family: var(--font-mono); }
.dash-kpi .trend { font-size: 11px; }
.dash-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 18px; position: relative; z-index: 1; }
@media (max-width: 800px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } .dash-charts { grid-template-columns: 1fr; } }
.dc-block {
  padding: 14px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-m);
}
.dc-h { color: #cfcfd4; font-size: 12px; margin-bottom: 12px; }
.dc-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.dc-bar {
  flex: 1; background: linear-gradient(to top, var(--accent), #ff3b30);
  border-radius: 3px 3px 0 0; min-height: 6px;
  position: relative;
  opacity: 0;
  transform: scaleY(0); transform-origin: bottom;
  transition: opacity .4s, transform .6s var(--ease);
}
.dc-bar.is-in { opacity: 1; transform: scaleY(1); }
.dc-bar:hover { filter: brightness(1.2); }
.dc-bar::after {
  content: attr(data-label); position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: #ffb199; opacity: 0; transition: opacity .2s; white-space: nowrap;
}
.dc-bar:hover::after { opacity: 1; }

.dc-donut { position: relative; width: 130px; height: 130px; margin: 0 auto 12px; }
.dc-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 4; }
.donut-seg { fill: none; stroke-width: 4; transition: stroke-dasharray 1s var(--ease); }
.donut-seg.s1 { stroke: #e10600; }
.donut-seg.s2 { stroke: #ff3b30; }
.donut-seg.s3 { stroke: #ffb199; }
.donut-seg.s4 { stroke: #6b6b73; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center b { color: #fff; font-size: 18px; font-family: var(--font-mono); }
.donut-center small { color: #8d8d96; font-size: 10px; }
.donut-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 11px; color: #cfcfd4; }
.donut-legend li { display: flex; align-items: center; gap: 4px; }
.donut-legend .lg { width: 8px; height: 8px; border-radius: 2px; }
.donut-legend .lg.s1 { background: #e10600; }
.donut-legend .lg.s2 { background: #ff3b30; }
.donut-legend .lg.s3 { background: #ffb199; }
.donut-legend .lg.s4 { background: #6b6b73; }
.donut-legend b { margin-left: auto; color: #fff; font-family: var(--font-mono); }

.dash-events { position: relative; z-index: 1; }
.de-h { color: #cfcfd4; font-size: 12px; margin-bottom: 10px; }
.de-list { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow: hidden; }
.de-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #cfcfd4; padding: 6px 0; }
.de-list li b { color: #fff; }
.de-list i { color: #6b6b73; font-style: normal; font-size: 11px; margin-left: auto; }
.de-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.de-dot.ok { background: #28c840; }
.de-dot.warn { background: #febc2e; }

/* ---------- Section: Security ---------- */
.security-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr; } }
.sc {
  padding: 24px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  transition: all .35s var(--ease);
}
.sc:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.sc-ico { font-size: 28px; margin-bottom: 12px; }
.sc h4 { font-size: 16px; margin-bottom: 6px; }
.sc p { font-size: 13px; color: var(--muted); }
.sc code { font-size: 12px; }

/* ---------- Section: FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq-item:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.faq-item[open] { background: rgba(255, 255, 255, 0.05); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-size: 16px; font-weight: 600; color: var(--text, #fff);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative; flex: 0 0 auto;
  width: 14px; height: 14px;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-answer { padding: 0 24px 20px; }
.faq-answer p { font-size: 14px; line-height: 1.8; color: var(--muted, #8d8d96); margin: 0; }

/* ---------- Section: CTA ---------- */
.section-cta { background: var(--ink); color: #fff; text-align: center; position: relative; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .section-cta { background: #050507; }
.cta-inner { position: relative; max-width: 880px; margin: 0 auto; padding: 40px 0; }
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.25) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: glow 4s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; } 50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }
.cta-title {
  position: relative; z-index: 1;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 18px;
}
.cta-sub { position: relative; z-index: 1; color: rgba(255,255,255,0.7); max-width: 640px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { background: #050507; color: #fff; padding: 60px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 280px; margin-top: 12px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-cols h5 { font-size: 12px; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 14px; text-transform: uppercase; }
.footer-cols a { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,0.8); transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { padding: 20px 0; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.footer-icp { letter-spacing: 0.02em; transition: color .2s var(--ease); }
.footer-icp:hover { color: var(--accent); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-red);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: all .3s var(--ease);
}
.to-top.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--accent-deep); transform: translateY(-3px); }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; } }

/* ---------- Animations: data-anim ---------- */
[data-anim] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: transform, opacity; }
[data-anim="fade-up"] { transform: translateY(40px); }
[data-anim="fade-left"] { transform: translateX(40px); }
[data-anim="zoom-in"] { transform: scale(0.95); }
.is-in[data-anim] { opacity: 1; transform: translate(0) scale(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-anim] { opacity: 1; transform: none !important; }
}
