/* ============================================
   t0M1t — Digital Tech Website Styles
   ============================================ */

:root {
  --bg: #050508;
  --bg2: #0a0a10;
  --surface: #0f0f1a;
  --surface2: #13131f;
  --border: rgba(0, 200, 255, 0.12);
  --border-bright: rgba(0, 200, 255, 0.35);
  --accent: #00c8ff;
  --accent2: #7b2fff;
  --accent3: #00ff88;
  --text: #e8eaf0;
  --text-dim: #7a7f99;
  --text-muted: #4a4f66;
  --danger: #ff3366;
  --warning: #ffaa00;
  --font-display: 'Orbitron', monospace;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Cairo', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --glow: 0 0 20px rgba(0, 200, 255, 0.15);
  --glow-strong: 0 0 40px rgba(0, 200, 255, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  direction: rtl;
}

/* ===== MATRIX CANVAS ===== */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ===== GRID LINES ===== */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,200,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* All sections above z-index overlays */
header, section, footer, nav { position: relative; z-index: 10; }

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.menu-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.menu-btn:hover { background: rgba(0,200,255,0.1); border-color: var(--accent); }

.topbar-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 2px;
}
.logo-bracket { color: var(--accent2); }

.topbar-tg {
  color: var(--accent);
  font-size: 22px;
  text-decoration: none;
  transition: all 0.2s;
}
.topbar-tg:hover { color: var(--accent3); transform: scale(1.1); }

/* ===== DRAWER NAV ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.nav-overlay.active { opacity: 1; pointer-events: all; }

.drawer-nav {
  position: fixed;
  top: 0; right: 0;
  z-index: 950;
  width: 280px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border-bright);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.drawer-nav.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.drawer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 2px;
}
.drawer-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.drawer-close:hover { color: var(--danger); border-color: var(--danger); }

.drawer-links {
  list-style: none;
  padding: 20px 0;
  flex: 1;
}
.drawer-links li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  border-right: 3px solid transparent;
}
.drawer-links li a i { width: 20px; color: var(--accent); font-size: 16px; }
.drawer-links li a:hover {
  color: var(--text);
  background: rgba(0,200,255,0.06);
  border-right-color: var(--accent);
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}
.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
}
.drawer-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  gap: 60px;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    padding: 80px 60px 40px;
    gap: 80px;
  }
}

.hero-inner { flex: 1; max-width: 540px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent3);
  font-family: var(--font-mono);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent3);
  animation: pulse-anim 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--accent);
}

/* Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}
.glitch::before {
  color: var(--accent2);
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.glitch::after {
  color: var(--accent3);
  animation: glitch2 3s infinite;
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92% { transform: translate(-3px, 1px); opacity: 1; }
  94% { transform: translate(3px, -1px); opacity: 1; }
  96% { transform: translate(0); opacity: 0; }
}
@keyframes glitch2 {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  90% { transform: translate(3px, 2px); opacity: 1; }
  93% { transform: translate(-2px, -1px); opacity: 1; }
  95% { transform: translate(0); opacity: 0; }
}

.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.stat-pill i { color: var(--accent); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0,200,255,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,200,255,0.35); }
.btn-primary.large { padding: 18px 36px; font-size: 17px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-dim);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,200,255,0.06); }

/* ===== TERMINAL ===== */
.hero-visual { flex: 1; max-width: 480px; width: 100%; }

.terminal-window {
  background: #080810;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glow-strong), 0 40px 80px rgba(0,0,0,0.6);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.t-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-right: auto;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}
.t-line { display: flex; align-items: center; gap: 8px; }
.t-prompt { color: var(--accent3); font-weight: 700; }
.t-cmd { color: var(--text); }
.t-out { color: var(--text-dim); padding-right: 8px; }
.t-success { color: var(--accent3); }
.t-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ===== SECTIONS COMMON ===== */
.bots-section, .services-section, .channel-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123,47,255,0.12);
  border: 1px solid rgba(123,47,255,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent2);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}
.accent { color: var(--accent); }
.section-sub { color: var(--text-dim); margin-top: 12px; font-size: 15px; }

/* ===== BOTS GRID ===== */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.bot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: default;
  animation: fadeUp 0.6s ease both;
  position: relative;
  overflow: hidden;
}
.bot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,200,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.bot-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: var(--glow), 0 20px 60px rgba(0,0,0,0.4);
}
.bot-card.featured {
  border-color: rgba(0,200,255,0.3);
  background: linear-gradient(145deg, var(--surface), rgba(0,200,255,0.04));
}
.bot-card.featured:hover { box-shadow: var(--glow-strong), 0 20px 60px rgba(0,0,0,0.5); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-card-inner { padding: 28px; }

.bot-badge-featured {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
}

.bot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bot-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.bot-icon-wrap.epstein { background: rgba(255,51,102,0.12); color: var(--danger); border: 1px solid rgba(255,51,102,0.2); }
.bot-icon-wrap.mail { background: rgba(255,170,0,0.12); color: var(--warning); border: 1px solid rgba(255,170,0,0.2); }
.bot-icon-wrap.ai { background: rgba(0,200,255,0.12); color: var(--accent); border: 1px solid rgba(0,200,255,0.2); }
.bot-icon-wrap.detect { background: rgba(123,47,255,0.12); color: var(--accent2); border: 1px solid rgba(123,47,255,0.2); }

.bot-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  border-radius: 100px;
  padding: 4px 10px;
}
.bot-status.online { background: rgba(0,255,136,0.08); color: var(--accent3); border: 1px solid rgba(0,255,136,0.2); }
.bot-status .pulse-dot { background: var(--accent3); width: 6px; height: 6px; }

.bot-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bot-name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.bot-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.bot-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.bot-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.bot-features span i { font-size: 11px; color: var(--accent); }

.bot-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,200,255,0.08);
  border: 1px solid var(--border-bright);
  color: var(--accent);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
  font-family: var(--font-body);
}
.bot-btn:hover { background: rgba(0,200,255,0.15); transform: translateX(-3px); }
.btn-arrow { margin-right: auto; font-size: 12px; }

.featured-btn {
  background: linear-gradient(135deg, rgba(0,200,255,0.2), rgba(123,47,255,0.2));
  border-color: rgba(0,200,255,0.4);
}
.featured-btn:hover { background: linear-gradient(135deg, rgba(0,200,255,0.3), rgba(123,47,255,0.3)); }

/* ===== SERVICES ===== */
.services-section {
  background: linear-gradient(180deg, transparent, rgba(0,200,255,0.02), transparent);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.service-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.service-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ===== CHANNEL CTA ===== */
.channel-section {
  text-align: center;
}
.channel-inner {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.channel-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,200,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.channel-icon {
  font-size: 64px;
  color: var(--accent);
  margin-bottom: 20px;
}
.channel-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  margin-bottom: 16px;
}
.channel-inner p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
}
.channel-link {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 2px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links a {
  color: var(--text-dim);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
