/* ══════════════════════════════════════════════════
   EIVA — Cyberpunk / Neural Network Design System
   Deep Space · Cyan · Orange Core
   ══════════════════════════════════════════════════ */

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

:root {
  /* Space palette */
  --space:      #020409;
  --space2:     #040c16;
  --space3:     #071220;
  --card:       rgba(255,255,255,0.03);
  --card-hover: rgba(255,255,255,0.06);

  /* Accents */
  --cyan:       #00e5ff;
  --cyan2:      #00b8cc;
  --cyan-glow:  rgba(0,229,255,0.2);
  --cyan-dim:   rgba(0,229,255,0.08);
  --orange:     #ff7a00;
  --orange-glow:rgba(255,122,0,0.25);
  --ton:        #0098ea;
  --ton-glow:   rgba(0,152,234,0.25);
  --violet:     #8b5cf6;
  --violet2:    #7c3aed;
  --violet-glow:rgba(139,92,246,0.25);
  --green:      #00e676;
  --red:        #ff1744;

  /* Text */
  --text:       #ddeeff;
  --muted:      #5a7a95;
  --muted2:     #8aabb8;

  /* Borders & glow */
  --border:     rgba(0,229,255,0.1);
  --border2:    rgba(0,229,255,0.2);
  --glow-sm:    0 0 20px rgba(0,229,255,0.15);
  --glow-md:    0 0 40px rgba(0,229,255,0.2);
  --glow-lg:    0 0 80px rgba(0,229,255,0.15), 0 0 160px rgba(0,122,255,0.08);

  --radius:     14px;
  --radius-lg:  20px;
  --shadow:     0 8px 40px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  background: var(--space);
  color: var(--text);
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background subtle noise/nebula ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(0,100,180,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(139,92,246,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 100%, rgba(0,229,255,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ══════════════════════════════
   NAVBAR
   ══════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(2,4,9,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo {
  font-size: 20px; font-weight: 400; color: var(--text);
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.logo-text { color: var(--cyan); }

.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-link {
  color: var(--muted); font-size: 13px; text-decoration: none; padding: 6px 12px;
  border-radius: 8px; transition: all .2s; font-weight: 500;
}
.nav-link:hover { color: var(--text); background: var(--card); }

/* Language Selector */
.language-selector { display: flex; gap: 4px; align-items: center; }
.lang-btn {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--cyan-dim);
  border-color: var(--border2);
  color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.lang-btn:hover { color: var(--text); border-color: var(--border); }

/* ══════════════════════════════
   BUTTONS
   ══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); border: none;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all .25s;
  text-decoration: none; white-space: nowrap; letter-spacing: 0.02em;
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary,
.btn-ton {
  background: linear-gradient(135deg, var(--ton), #0077cc);
  color: #fff;
  box-shadow: 0 4px 24px var(--ton-glow), 0 0 0 1px rgba(0,152,234,0.3);
}
.btn-primary:hover, .btn-ton:hover {
  box-shadow: 0 6px 32px var(--ton-glow), 0 0 0 1px rgba(0,152,234,0.5);
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  color: #000;
  box-shadow: 0 4px 24px var(--cyan-glow);
}
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(0,229,255,0.4); }

.btn-violet {
  background: linear-gradient(135deg, var(--violet), var(--violet2));
  color: #fff;
  box-shadow: 0 4px 24px var(--violet-glow);
}
.btn-violet:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(139,92,246,0.45); }

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--card-hover); border-color: var(--border2); }

.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════
   HERO
   ══════════════════════════════ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

/* Particles canvas background */
#particles-js {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Hero glow orb */
.hero-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,0,0.08) 0%, rgba(0,152,234,0.06) 40%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 99px; padding: 6px 18px;
  font-size: 12px; font-weight: 700; color: var(--cyan);
  margin-bottom: 28px;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0,229,255,0.1);
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,229,255,0.1); }
  50%       { box-shadow: 0 0 30px rgba(0,229,255,0.25); }
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #aad8ff 50%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted2); max-width: 560px; margin: 0 auto 40px;
  font-weight: 400;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero blockchain cubes decoration */
.hero-cubes {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(0deg, rgba(0,229,255,0.03) 0%, transparent 100%);
  pointer-events: none; z-index: 1;
}

/* ══════════════════════════════
   SECTIONS
   ══════════════════════════════ */
.section {
  padding: 80px 24px;
  position: relative; z-index: 1;
}
.section-alt { background: linear-gradient(180deg, var(--space2) 0%, var(--space) 100%); }

.section-eyebrow {
  text-align: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.section-title {
  text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.section-sub {
  text-align: center; color: var(--muted); margin-bottom: 56px;
  font-size: 1rem; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ══════════════════════════════
   HOW IT WORKS — Steps
   ══════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.steps-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps-flow::before {
  content: '';
  position: absolute; top: 32px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--ton), var(--violet), transparent);
  opacity: 0.3;
  z-index: 0;
}
@media (max-width: 680px) {
  .steps-flow { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps-flow::before { display: none; }
}
@media (max-width: 400px) {
  .steps-flow { grid-template-columns: 1fr; }
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  position: relative; z-index: 1;
  transition: all 0.35s;
  backdrop-filter: blur(10px);
}
.step:hover {
  background: var(--card-hover);
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,229,255,0.1), 0 0 0 1px rgba(0,229,255,0.15);
}
.step-icon {
  font-size: 2rem; margin-bottom: 8px;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dim), rgba(0,152,234,0.1));
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  color: var(--cyan);
  margin: 0 auto 16px;
  box-shadow: 0 0 20px var(--cyan-glow);
}
.step h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 8px;
  color: var(--text);
}
.step p { font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* Entrance animations */
[data-aos] { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
[data-aos].aos-animate { opacity: 1 !important; transform: none !important; }
[data-aos="fade-up"] { transform: translateY(24px); }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-left"] { transform: translateX(24px); }
[data-aos="zoom-in"] { transform: scale(0.92); }

/* ══════════════════════════════
   DEMO SECTION
   ══════════════════════════════ */
.demo-section {
  background: var(--card);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 60px rgba(0,229,255,0.05), inset 0 1px 0 rgba(255,255,255,0.05);
}

.demo-header {
  display: flex; align-items: center; gap: 20px; margin-bottom: 28px;
}
.demo-avatar-wrap {
  position: relative; flex-shrink: 0;
}
.demo-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow);
}
.demo-avatar-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.3);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo-avatar-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--space);
  box-shadow: 0 0 8px var(--green);
}

.demo-header h2 { margin: 0 0 6px 0; font-size: 1.4rem; font-weight: 800; }
.demo-header p  { margin: 0 0 10px 0; color: var(--muted); font-size: .9rem; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 99px; font-size: 11px; font-weight: 600;
  color: var(--cyan); margin-right: 6px;
}
.badge-ton {
  background: rgba(0,152,234,0.1); border-color: rgba(0,152,234,0.3); color: var(--ton);
}
.badge-orange {
  background: rgba(255,122,0,0.1); border-color: rgba(255,122,0,0.3); color: var(--orange);
}

/* Demo stats */
.demo-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px; overflow: hidden; margin: 24px 0;
}
.stat {
  background: rgba(4,12,22,0.8);
  padding: 16px; text-align: center;
}
.stat-value {
  display: block; font-size: 1.6rem; font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 500; }

/* Demo dialog */
.demo-dialog {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; margin: 20px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.dialog-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px; line-height: 1.6;
}
.dialog-msg.user {
  background: rgba(0,152,234,0.12);
  border: 1px solid rgba(0,152,234,0.25);
  margin-left: auto; color: #cce8ff;
  border-bottom-right-radius: 4px;
}
.dialog-msg.twin {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted2);
  border-bottom-left-radius: 4px;
  position: relative;
}
.twin-label {
  font-size: 11px; font-weight: 700; color: var(--cyan);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px;
}
.caption { color: var(--muted); font-size: 13px; }

/* ══════════════════════════════
   WHY TON — Feature Cards
   ══════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  cursor: default;
}
.feature-card:hover {
  border-color: var(--border2);
  background: var(--card-hover);
  box-shadow: 0 4px 24px rgba(0,229,255,0.08);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 2rem; margin-bottom: 14px;
  display: block;
}
.feature-card h3 {
  font-size: .95rem; font-weight: 700; margin-bottom: 8px; color: var(--text);
}
.feature-card p { font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
}
footer::before {
  content: '';
  position: absolute; top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}
footer a {
  color: var(--cyan); text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: var(--text); }
.footer-links {
  margin-top: 16px; display: flex; gap: 24px;
  justify-content: center; flex-wrap: wrap; font-size: 13px;
}

/* ══════════════════════════════
   COMMON COMPONENTS
   ══════════════════════════════ */

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.card-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

/* Status messages */
.status-msg {
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; display: none;
}
.status-msg.show { display: block; }
.status-msg.info    { background: rgba(0,152,234,.08);  border: 1px solid rgba(0,152,234,.25);  color: var(--ton); }
.status-msg.success { background: rgba(0,230,118,.08);  border: 1px solid rgba(0,230,118,.25);  color: var(--green); }
.status-msg.error   { background: rgba(255,23,68,.08);  border: 1px solid rgba(255,23,68,.25);  color: var(--red); }

/* Spinners */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--cyan);
  border-radius: 50%; animation: spinAnim .7s linear infinite; display: inline-block;
}
@keyframes spinAnim { to { transform: rotate(360deg); } }

/* Status dot */
.status-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px var(--green);
  margin-right: 6px;
  animation: pulseDot 2s infinite;
}
.status-dot.offline { background: var(--red); box-shadow: 0 0 6px var(--red); }
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Toggle rows */
.toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: all 0.15s;
  font-size: 14px; color: var(--muted2);
}
.toggle-row:hover { color: var(--text); padding-left: 4px; }
.toggle-row input[type="checkbox"] { cursor: pointer; accent-color: var(--cyan); width: 18px; height: 18px; }

/* Wallet info */
.wallet-info {
  background: var(--space3); border-radius: 10px; padding: 14px 16px;
  font-size: 13px; display: flex; align-items: center; gap: 10px; margin-top: 14px;
  border: 1px solid var(--border);
}
.wallet-addr { font-family: 'Courier New', monospace; color: var(--cyan); font-size: 12px; }

/* Stats bar */
.stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  background: var(--space3); border-radius: 10px; padding: 14px 16px; margin-top: 14px;
  border: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-val { font-size: 1.1rem; font-weight: 700; color: var(--cyan); }
.stat-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* NFT Card (legacy cabinet use) */
.nft-card {
  background: linear-gradient(135deg, rgba(0,229,255,0.04), rgba(0,50,100,0.3));
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  box-shadow: 0 0 40px rgba(0,229,255,0.06), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nft-card-header { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.nft-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.nft-card-body { margin: 20px 0; }
.nft-detail {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13.5px;
}
.nft-detail .label { color: var(--muted); }
.nft-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.mono { font-family: 'Courier New', monospace; font-size: 12px; }

/* Confidence bars */
.confidence-overall {
  display: flex; align-items: center; gap: 16px; margin: 16px 0 28px;
}
.confidence-bar-container {
  flex: 1; height: 10px;
  background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden;
}
.confidence-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--ton));
  border-radius: 5px; transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.confidence-breakdown { margin: 16px 0; }
.conf-item {
  display: grid; grid-template-columns: 160px 1fr 80px;
  gap: 16px; align-items: center; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.conf-label { font-size: 13px; color: var(--muted2); }
.conf-bar-wrap {
  height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden;
}
.conf-bar { height: 100%; border-radius: 3px; transition: width 1.5s cubic-bezier(0.4,0,0.2,1); }
.conf-bar.high   { background: linear-gradient(90deg, var(--cyan), #00b8cc); }
.conf-bar.medium { background: linear-gradient(90deg, #ffcc00, #ffaa00); }
.conf-bar.low    { background: linear-gradient(90deg, #ff6644, #ff4422); }
.conf-tag { font-size: 11px; text-align: right; font-weight: 700; letter-spacing: 0.04em; }
.conf-tag.high   { color: var(--cyan); }
.conf-tag.medium { color: #ffcc00; }
.conf-tag.low    { color: #ff6644; }
.conf-recommendation {
  background: rgba(0,229,255,0.04); border: 1px solid rgba(0,229,255,0.15);
  border-radius: 10px; padding: 14px 18px; font-size: 13px; margin-top: 18px; color: var(--muted2);
}

/* Warning box */
.warning-box {
  background: rgba(255,170,0,0.04);
  border: 1px solid rgba(255,170,0,0.2);
  border-radius: 10px; padding: 16px 20px; margin: 16px 0; font-size: 13.5px;
}
.warning-box h4 { color: var(--text); margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.warning-box ul { padding-left: 0; list-style: none; }
.warning-box li { color: var(--muted2); padding: 4px 0; }

/* Custom instructions textarea */
#custom-instructions {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  padding: 14px; font-size: 13px; resize: vertical;
  margin: 10px 0 14px; font-family: inherit; line-height: 1.6;
  transition: border-color 0.2s;
}
#custom-instructions:focus {
  outline: none; border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 20px rgba(0,229,255,0.05);
}

.preset-examples { margin: 12px 0 20px; }
.preset-examples p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.preset-examples button {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted2); border-radius: 8px; padding: 6px 14px;
  font-size: 12px; cursor: pointer; margin: 4px; transition: all 0.2s;
}
.preset-examples button:hover {
  background: var(--card-hover); border-color: var(--border2); color: var(--text);
}

/* Privacy section */
.privacy-always-on {
  background: rgba(0,230,118,0.04);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--radius); padding: 20px; margin: 16px 0;
}
.privacy-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,230,118,0.1); color: var(--green);
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: 99px; padding: 4px 16px; font-size: 12px; font-weight: 700;
  margin-bottom: 16px;
}
.privacy-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px; margin-top: 12px;
}
.privacy-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 8px; font-size: 13px;
}
.privacy-item.blocked {
  background: rgba(255,23,68,0.06);
  border: 1px solid rgba(255,23,68,0.18); color: #ff8fa0;
}
.privacy-icon { font-size: 14px; }
.privacy-status {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-top: 20px;
}
.status-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px;
}
.status-row:last-child { border-bottom: none; }
.status-on  { color: var(--green);  font-weight: 700; font-size: 11px; letter-spacing: 0.05em; }
.status-off { color: var(--red); font-weight: 700; font-size: 11px; letter-spacing: 0.05em; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.8); backdrop-filter: blur(8px);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--space2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; max-width: 480px; width: 90%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-close {
  float: right; background: none; border: none;
  color: var(--muted); font-size: 1.4rem; cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }

/* Telegram banner */
.tg-banner {
  background: linear-gradient(135deg, rgba(0,152,234,.08), rgba(139,92,246,.08));
  border: 1px solid rgba(0,152,234,.25); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.tg-banner .tg-icon { font-size: 2.5rem; flex-shrink: 0; }
.tg-banner a { color: var(--cyan); text-decoration: none; }

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 640px) {
  .hero { min-height: 60vh; padding: 80px 16px 60px; }
  nav { padding: 0 16px; }
  .nav-link { display: none; }
  .demo-section { padding: 24px; }
  .demo-stats { grid-template-columns: repeat(2,1fr); }
  .demo-header { flex-direction: column; text-align: center; }
  .dialog-msg { max-width: 100%; }
  .conf-item { grid-template-columns: 100px 1fr 60px; }
}

/* ══════════════════════════════
   AOS FALLBACK — visible if JS disabled
   ══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
