/* =========================================================
   DATANODE v4 — Neon Coding Aesthetic
   ========================================================= */

:root {
  --bg-0: #02030a;
  --bg-1: #04060f;
  --bg-2: #070b1a;
  --bg-3: #0c1226;
  --surface: rgba(10, 16, 32, 0.6);
  --surface-strong: rgba(14, 22, 44, 0.85);
  --line: rgba(0, 180, 255, 0.18);
  --line-strong: rgba(0, 229, 255, 0.45);

  --neon-cyan: #00e5ff;
  --neon-blue: #00b4ff;
  --neon-deep: #0066ff;
  --neon-violet: #7c4dff;
  --neon-pink: #ff2d92;
  --neon-green: #00ff9d;
  --neon-yellow: #ffd400;

  --text: #e6f0ff;
  --text-mut: #8ea0c5;
  --text-dim: #5a6c8e;

  --grad-neon: linear-gradient(135deg, #00e5ff 0%, #00b4ff 40%, #7c4dff 100%);
  --grad-warm: linear-gradient(135deg, #00e5ff 0%, #ff2d92 100%);

  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.55), 0 0 40px rgba(0, 180, 255, 0.35);
  --glow-violet: 0 0 24px rgba(124, 77, 255, 0.55);
  --glow-pink: 0 0 24px rgba(255, 45, 146, 0.55);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(0, 180, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(124, 77, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 45, 146, 0.10), transparent 60%),
    var(--bg-1);
  pointer-events: none;
}

#grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 30%, transparent 100%);
  pointer-events: none;
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Boot screen */
.boot-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: var(--mono);
  color: var(--neon-cyan);
  gap: 12px;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}
.boot-line { font-size: 14px; }
.boot-dim { color: var(--text-dim); text-shadow: none; }
.boot-prompt { color: var(--neon-pink); margin-right: 8px; }
.boot-bar {
  width: 240px;
  height: 4px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
  position: relative;
}
.boot-bar-fill {
  position: absolute;
  height: 100%;
  width: 30%;
  background: var(--grad-neon);
  border-radius: 4px;
  box-shadow: var(--glow-cyan);
  animation: bootBar 1.6s ease-in-out infinite;
}
@keyframes bootBar {
  0%   { left: -30%; }
  100% { left: 100%; }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 600; letter-spacing: -0.02em; }
p { color: var(--text-mut); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.grad-text {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 180, 255, 0.5));
}

.body-text { font-size: 1.05rem; color: var(--text-mut); max-width: 56ch; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 6, 15, 0.55);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(4, 6, 15, 0.85);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.2), 0 8px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 36px; filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.5)); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mut);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  position: relative;
}
.main-nav a:hover {
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.06);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}
.nav-cta {
  border: 1px solid var(--line-strong) !important;
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  margin-left: 12px;
}
.nav-cta:hover {
  background: rgba(0, 229, 255, 0.1) !important;
  box-shadow: var(--glow-cyan);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  padding: 10px;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--neon-cyan);
  transition: 0.3s;
}

/* Buttons */
.btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--grad-neon);
  color: #021022;
  font-weight: 600;
  box-shadow: var(--glow-cyan);
}
.btn--primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.7), 0 0 60px rgba(0, 180, 255, 0.4);
}
.btn--primary:hover::after { transform: translateX(100%); }
.btn--ghost {
  background: rgba(0, 229, 255, 0.06);
  color: var(--neon-cyan);
  border: 1px solid var(--line-strong);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}
.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}
.btn--large { padding: 18px 32px; font-size: 15px; }

/* HERO */
.hero { position: relative; padding: 160px 0 80px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.badge {
  font-family: var(--mono);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.04);
  border-radius: 100px;
  color: var(--neon-cyan);
  margin-bottom: 28px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot { 50% { transform: scale(1.3); opacity: 0.6; } }

.hero-title { margin-bottom: 28px; font-weight: 800; }
.hero-title .grad-text { display: inline-block; }
.hero-sub { font-size: 1.15rem; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero card */
.hero-card {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.85), rgba(6, 10, 20, 0.95));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.1),
    0 0 60px rgba(0, 180, 255, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.hero-card:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
}
.hc-dot { width: 11px; height: 11px; border-radius: 50%; }
.hc-dot--r { background: #ff5f57; box-shadow: 0 0 8px rgba(255,95,87,0.6); }
.hc-dot--y { background: #ffbd2e; box-shadow: 0 0 8px rgba(255,189,46,0.6); }
.hc-dot--g { background: #28ca41; box-shadow: 0 0 8px rgba(40,202,65,0.6); }
.hc-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.hero-card-body {
  padding: 22px;
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hc-line { color: var(--text); }
.hc-mut { color: var(--text-dim); margin-right: 8px; }
.hc-ok { color: var(--neon-green); text-shadow: 0 0 8px rgba(0,255,157,0.6); }
.hc-warn { color: var(--neon-yellow); text-shadow: 0 0 8px rgba(255,212,0,0.6); }
.hc-num { color: var(--neon-cyan); margin-left: 4px; }
.hc-status-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.hc-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0, 255, 157, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 157, 0.3);
  text-shadow: 0 0 6px var(--neon-green);
}

.hero-card-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
}
.hc-stat {
  padding: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  border-right: 1px solid var(--line);
}
.hc-stat:last-child { border-right: none; }
.hc-stat b { display: block; color: var(--neon-cyan); font-size: 16px; margin-top: 4px; text-shadow: 0 0 8px rgba(0,229,255,0.6); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 80px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
  flex-wrap: wrap;
}
.stat { text-align: center; min-width: 90px; }
.stat-val {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.5));
}
.stat-val em { font-style: normal; font-size: 0.6em; opacity: 0.7; }
.stat-lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.stat-sep { width: 1px; height: 36px; background: var(--line); }

/* Ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.3);
  margin: 60px 0;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg-1), transparent); }
.ticker-track {
  display: flex;
  gap: 60px;
  animation: tickerScroll 40s linear infinite;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mut);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tick-item { display: inline-flex; align-items: center; gap: 12px; }
.tick-item b { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* Section base */
.section { padding: 100px 0; position: relative; }
.section--dark {
  background: linear-gradient(180deg, transparent, rgba(0, 5, 15, 0.5), transparent);
}
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}
.section-header-right { padding-bottom: 8px; }

/* BENTO */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}
.bento-card {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.10), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 180, 255, 0.2);
}
.bento-card:hover::before { opacity: 1; }

.bento-card.b-1 { grid-column: span 2; }
.bento-card.b-2 { grid-column: span 2; }
.bento-card.b-3 { grid-column: span 2; }
.bento-card.b-4 { grid-column: span 2; }
.bento-card.b-5 { grid-column: span 2; }
.bento-card.b-6 { grid-column: span 2; }

.svc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(0,229,255,0.5);
}
.svc-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(124, 77, 255, 0.18));
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(0, 180, 255, 0.25);
  margin-bottom: 4px;
}
.bento-card h3 { color: var(--text); }
.bento-card p { font-size: 0.95rem; color: var(--text-mut); flex: 1; }
.svc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.svc-list li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mut);
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-list li::before {
  content: '▸';
  color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
}
.svc-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--neon-cyan);
  font-size: 16px;
  transition: all 0.3s;
}
.bento-card:hover .svc-arrow {
  background: var(--neon-cyan);
  color: #02030a;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan);
  transform: rotate(-45deg);
}

/* Terminal */
.term-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.terminal {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #050813, #02030a);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 180, 255, 0.2), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.02) 0px, rgba(0, 229, 255, 0.02) 1px, transparent 1px, transparent 4px);
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.5);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}
.terminal-body {
  padding: 26px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  min-height: 320px;
}
.t-prompt { color: var(--neon-pink); margin-right: 8px; text-shadow: 0 0 8px var(--neon-pink); }
.t-cmd { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0,229,255,0.5); }
.t-out { color: var(--text); }
.t-dim { color: var(--text-dim); }
.t-ok { color: var(--neon-green); margin-right: 8px; text-shadow: 0 0 6px var(--neon-green); }
.t-live {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0, 255, 157, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 157, 0.4);
  text-shadow: 0 0 6px var(--neon-green);
  letter-spacing: 0.1em;
}
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--neon-cyan);
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
  box-shadow: 0 0 8px var(--neon-cyan);
}
@keyframes blink { 50% { opacity: 0; } }

.mini-stats {
  display: flex;
  gap: 30px;
  margin-top: 28px;
}
.mstat-val {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.5));
}
.mstat-val em { font-style: normal; font-size: 0.6em; opacity: 0.7; }
.mstat-lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* AI section */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ai-list {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-list li {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 229, 255, 0.03);
  transition: all 0.3s;
}
.ai-list li:hover {
  border-color: var(--line-strong);
  background: rgba(0, 229, 255, 0.07);
  transform: translateX(6px);
}
.arr {
  color: var(--neon-cyan);
  font-weight: 700;
  text-shadow: 0 0 8px var(--neon-cyan);
}

.ai-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.ai-metric {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(124, 77, 255, 0.08);
  box-shadow: 0 0 30px rgba(124, 77, 255, 0.15);
}
.ai-metric-val {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 45, 146, 0.5));
}
.ai-metric-lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ai-pipeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.pipeline-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-strong);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.pipeline-node::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: pipelineSweep 4s ease-in-out infinite;
}
@keyframes pipelineSweep {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.pnode-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.pnode-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.4;
  animation: ring 2s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.pnode-dot--c { background: var(--neon-cyan); box-shadow: 0 0 12px var(--neon-cyan); }
.pnode-dot--b { background: var(--neon-blue); box-shadow: 0 0 12px var(--neon-blue); }
.pnode-dot--p { background: var(--neon-violet); box-shadow: 0 0 12px var(--neon-violet); }
.pnode-dot--g { background: var(--neon-green); box-shadow: 0 0 12px var(--neon-green); }
.pnode-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pnode-label { font-weight: 600; color: var(--text); }
.pnode-sub { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.05em; }
.pnode-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 100px;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.pnode-badge--c { background: rgba(0, 229, 255, 0.12); color: var(--neon-cyan); border: 1px solid rgba(0, 229, 255, 0.4); text-shadow: 0 0 6px var(--neon-cyan); }
.pnode-badge--b { background: rgba(0, 180, 255, 0.12); color: var(--neon-blue); border: 1px solid rgba(0, 180, 255, 0.4); text-shadow: 0 0 6px var(--neon-blue); }
.pnode-badge--p { background: rgba(124, 77, 255, 0.12); color: var(--neon-violet); border: 1px solid rgba(124, 77, 255, 0.4); text-shadow: 0 0 6px var(--neon-violet); }
.pnode-badge--g { background: rgba(0, 255, 157, 0.12); color: var(--neon-green); border: 1px solid rgba(0, 255, 157, 0.4); text-shadow: 0 0 6px var(--neon-green); }
.pipeline-conn {
  width: 2px;
  height: 20px;
  margin-left: 30px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* Method */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.method-step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}
.method-step:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(0, 229, 255, 0.15);
}
.method-step-num {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.5));
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.method-step h3 { margin-bottom: 10px; }
.method-step p { font-size: 0.95rem; }

/* Tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.tech-card {
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tech-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px) scale(1.03);
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 30px rgba(0, 180, 255, 0.25);
}
.tech-logo {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.4));
  transition: all 0.3s;
}
.tech-logo img,
.tech-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tech-card:hover .tech-logo {
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.7));
  transform: scale(1.1);
}
.tech-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mut);
  letter-spacing: 0.05em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}
.about-text p { margin-bottom: 16px; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.04);
  color: var(--text-mut);
  transition: all 0.3s;
}
.pill:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
  text-shadow: 0 0 6px var(--neon-cyan);
}

.info-card {
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface-strong);
  backdrop-filter: blur(14px);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.15);
}
.info-card-head {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 0.18em;
  margin-bottom: 22px;
  text-transform: uppercase;
  text-shadow: 0 0 6px var(--neon-cyan);
}
.info-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.info-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  font-family: var(--mono);
  font-size: 13px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row dt { color: var(--text-dim); }
.info-row dd { color: var(--text); }
.info-link { color: var(--neon-cyan) !important; text-shadow: 0 0 6px var(--neon-cyan); }
.info-link:hover { text-decoration: underline; }
.info-status {
  margin-top: 22px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid rgba(0, 255, 157, 0.4);
  border-radius: 100px;
  background: rgba(0, 255, 157, 0.06);
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--neon-green);
  letter-spacing: 0.15em;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulseDot 1.6s ease-in-out infinite;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.value-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}
.value-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.2);
}
.value-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--neon-cyan);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  text-shadow: 0 0 6px var(--neon-cyan);
}
.value-card h3 { margin-bottom: 12px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none;
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--neon-cyan);
  font-size: 1.5rem;
  text-shadow: 0 0 8px var(--neon-cyan);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--line-strong); box-shadow: 0 0 24px rgba(0, 180, 255, 0.15); }
.faq-item p { padding: 0 26px 24px; color: var(--text-mut); }

/* CTA */
.cta-section { padding: 80px 0 120px; }
.cta-box {
  position: relative;
  padding: 80px 40px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.85), rgba(6, 10, 20, 0.95));
  border: 1px solid var(--line-strong);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 180, 255, 0.2), 0 30px 80px rgba(0, 0, 0, 0.4);
}
.cta-glow {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, var(--neon-cyan), transparent 30%, var(--neon-violet), transparent 60%, var(--neon-pink), transparent);
  animation: rotate 8s linear infinite;
  opacity: 0.3;
  filter: blur(60px);
  z-index: 0;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.cta-inner { position: relative; z-index: 1; }
.eyebrow--center { justify-content: center; display: inline-flex; }
.cta-inner h2 { margin: 14px 0 18px; }
.cta-inner .body-text { margin: 0 auto 28px; }
.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.cta-contact {
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cta-contact-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo { height: 26px; opacity: 0.8; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--neon-cyan); text-shadow: 0 0 6px var(--neon-cyan); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Legal page (privacy / cookie)
   ========================================================= */
.legal-page main { padding-top: 0; }

.legal-hero {
  padding: 150px 0 50px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.legal-hero .hero-title {
  margin: 16px 0 24px;
}
.legal-lede { max-width: 60ch; }
.legal-meta {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}
.legal-meta-key { color: var(--neon-cyan); margin-right: 10px; }
.legal-meta-val { color: var(--text); }

.legal-body { padding: 70px 0 100px; }
.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* Sidebar TOC */
.legal-toc {
  position: sticky;
  top: 100px;
  font-family: var(--mono);
  font-size: 13px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.legal-toc-head {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 16px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
}
.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-toc a {
  color: var(--text-mut);
  display: inline-block;
  border-left: 1px solid transparent;
  padding-left: 10px;
  margin-left: -11px;
  transition: all 0.2s ease;
}
.legal-toc a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}
.legal-toc a.active {
  color: var(--text);
  border-left-color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* Article */
.legal-content {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mut);
}
.legal-section {
  padding: 36px 0;
  border-bottom: 1px dashed var(--line);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 {
  margin: 8px 0 28px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.legal-section h3 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.legal-content > .legal-section > ol,
.legal-content .legal-section ol {
  list-style: none;
  counter-reset: legal-counter;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0;
}
.legal-content .legal-section > ol > li,
.legal-content .legal-section h3 + ol > li {
  counter-increment: legal-counter;
  position: relative;
  padding-left: 38px;
}
.legal-content .legal-section > ol > li::before,
.legal-content .legal-section h3 + ol > li::before {
  content: counter(legal-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.legal-bullets {
  list-style: none;
  margin-top: 12px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-bullets li {
  position: relative;
  padding-left: 22px;
}
.legal-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--neon-cyan);
  font-family: var(--mono);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.legal-bullets--links li::before { content: '↗'; }

/* Code-like inline tokens */
.legal-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--neon-cyan);
  padding: 1px 6px;
  border-radius: 4px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.35);
}

/* Links inside legal content */
.legal-link {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  border-bottom: 1px dashed rgba(0, 229, 255, 0.4);
  transition: all 0.2s;
}
.legal-link:hover {
  color: #fff;
  border-bottom-color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}

/* Card per i dati del titolare */
.legal-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 14px;
}
.legal-card-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.legal-card-row:last-child { border-bottom: none; }
.legal-card-row span {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-card-row b {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* CTA finale */
.legal-cta {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   Cookie consent banner (prima visita)
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 22px;
  background: rgba(4, 6, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow:
    0 0 28px rgba(0, 229, 255, 0.22),
    0 18px 50px rgba(0, 0, 0, 0.55);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  transform: translateY(40px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner__icon {
  flex-shrink: 0;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  margin: 0;
  line-height: 1.55;
  color: var(--text);
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-banner__link {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
  border-bottom: 1px dashed rgba(0, 229, 255, 0.4);
  transition: all 0.2s;
}
.cookie-banner__link:hover {
  color: #fff;
  border-bottom-color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}
.cookie-banner__btn {
  background: var(--grad-neon);
  color: #021022;
  border: none;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--glow-cyan);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner__btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.7), 0 0 50px rgba(0, 180, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner, .term-grid, .ai-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { transform: none; }
  .section-header { grid-template-columns: 1fr; gap: 16px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.b-1, .bento-card.b-2, .bento-card.b-3,
  .bento-card.b-4, .bento-card.b-5, .bento-card.b-6 { grid-column: span 1; grid-row: auto; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  /* Legal page */
  .legal-grid { grid-template-columns: 1fr; gap: 30px; }
  .legal-toc {
    position: static;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 130px 0 60px; }
  .section { padding: 70px 0; }
  /* Legal page mobile */
  .legal-hero { padding: 120px 0 40px; }
  .legal-body { padding: 50px 0 70px; }
  .legal-card-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .legal-card-row b { text-align: left; }
  .main-nav {
    position: absolute;
    top: 100%; right: 20px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px;
    min-width: 220px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .hamburger { display: flex; }
  .bento { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .stat-sep { display: none; }
  .hero-stats { gap: 24px; }
  .ai-metrics { grid-template-columns: 1fr; }
  /* Cookie banner mobile */
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner__actions { width: 100%; justify-content: space-between; }
  .cookie-banner__btn { flex-shrink: 0; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
  border-radius: 10px;
}
::selection {
  background: rgba(0, 229, 255, 0.3);
  color: var(--text);
}
