/* ══════════════════════════════════════════
   BackHackers AI — Fraud Detection Platform
   styles.css
   ══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --bg: #04070f;
  --surface: #080e1c;
  --surface2: #0c1428;
  --border: rgba(0,200,150,0.12);
  --accent: #00e8a2;
  --accent2: #ff4d6d;
  --accent3: #7b5ea7;
  --text: #e8f0ff;
  --muted: #6b7a99;
  --glow: 0 0 40px rgba(0,232,162,0.15);
}

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

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
  cursor: default;
}

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

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(4,7,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}

.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,232,162,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(0,232,162,0); }
}

.nav-links {
  display: flex; gap: 36px; list-style: none;
}

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent); color: var(--bg);
  border: none; padding: 10px 24px; border-radius: 4px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.82rem;
  cursor: pointer; letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,232,162,0.3);
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  position: relative; padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,232,162,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,232,162,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,232,162,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 900px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 16px; margin-bottom: 32px;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  animation: fadeInUp 0.8s ease both;
}

.hero-badge span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  margin-top: 28px;
  font-size: 1rem; color: var(--muted); line-height: 1.7;
  max-width: 560px; margin-left: auto; margin-right: auto;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
  margin-top: 44px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.3s ease both;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: var(--bg);
  border: none; padding: 14px 36px; border-radius: 4px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; letter-spacing: 0.03em;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,232,162,0.35);
}

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); padding: 14px 36px; border-radius: 4px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════ */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
  animation: fadeInUp 0.8s 0.4s ease both;
}

.stat {
  padding: 28px 48px; text-align: center;
  border-right: 1px solid var(--border);
  flex: 1; max-width: 260px;
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2rem; color: var(--accent); letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem; color: var(--muted);
  margin-top: 4px; letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   SECTION SHARED
   ══════════════════════════════════════════ */
.section { padding: 100px 48px; position: relative; }

.section-label {
  font-size: 0.72rem; color: var(--accent); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 12px;
}

.section-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.025em;
  line-height: 1.1; margin-bottom: 16px;
}

.section-sub {
  color: var(--muted); font-size: 0.9rem; line-height: 1.7; max-width: 500px;
}

/* ══════════════════════════════════════════
   LIVE DASHBOARD
   ══════════════════════════════════════════ */
.dashboard-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin-top: 60px;
}

.dash-card {
  background: var(--surface); padding: 28px;
  transition: background 0.2s;
}

.dash-card:hover { background: var(--surface2); }
.dash-card.wide  { grid-column: span 2; }
.dash-card.tall  { grid-row: span 2; }

.card-label {
  font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}

.card-value {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2.4rem; letter-spacing: -0.03em;
}

.card-value.danger { color: var(--accent2); }
.card-value.safe   { color: var(--accent); }

.card-delta {
  font-size: 0.72rem; margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}

.delta-up   { color: var(--accent2); }
.delta-down { color: var(--accent); }

/* ── Mini Charts ── */
.mini-chart {
  display: flex; align-items: flex-end;
  gap: 4px; height: 60px; margin-top: 20px;
}

.bar {
  flex: 1; border-radius: 2px 2px 0 0;
  background: var(--accent); opacity: 0.3;
  transition: opacity 0.2s;
  animation: grow-bar 1s ease both;
}

.bar.alert { background: var(--accent2); opacity: 0.7; }
.bar:hover { opacity: 1; }

@keyframes grow-bar {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); }
}

/* ── TX Feed ── */
.tx-feed {
  display: flex; flex-direction: column; gap: 10px; margin-top: 16px;
}

.tx-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 6px;
  background: rgba(255,255,255,0.03);
  font-size: 0.75rem;
  animation: slide-in 0.4s ease both;
}

.tx-row.flagged  { border-left: 2px solid var(--accent2); background: rgba(255,77,109,0.06); }
.tx-row.safe-tx  { border-left: 2px solid var(--accent); }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}

.tx-id     { color: var(--muted); font-size: 0.68rem; }
.tx-amount { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem; }

.tx-badge {
  font-size: 0.62rem; padding: 3px 8px; border-radius: 100px;
  font-weight: 600; letter-spacing: 0.06em;
}

.badge-fraud  { background: rgba(255,77,109,0.2); color: var(--accent2); }
.badge-ok     { background: rgba(0,232,162,0.15); color: var(--accent); }
.badge-review { background: rgba(123,94,167,0.2); color: #b08cdf; }

/* ── Risk Gauge ── */
.gauge-wrap  { margin-top: 20px; position: relative; }
.gauge-arc   { width: 100%; max-width: 220px; display: block; margin: 0 auto; }

.gauge-label {
  text-align: center; margin-top: -20px;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.8rem; color: var(--accent2);
}

.gauge-sub { text-align: center; font-size: 0.7rem; color: var(--muted); margin-top: 4px; }

/* ══════════════════════════════════════════
   FEATURES SECTION
   ══════════════════════════════════════════ */
.features-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin-top: 60px;
}

.feat-card {
  background: var(--surface);
  padding: 40px 32px;
  transition: background 0.25s;
  position: relative; overflow: hidden;
}

.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}

.feat-card:hover::before { transform: scaleX(1); }
.feat-card:hover         { background: var(--surface2); }

.feat-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(0,232,162,0.1); border: 1px solid rgba(0,232,162,0.2);
  display: grid; place-items: center; margin-bottom: 24px;
  font-size: 1.2rem;
}

.feat-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.1rem; margin-bottom: 12px; letter-spacing: -0.01em;
}

.feat-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }

/* ══════════════════════════════════════════
   ML PIPELINE
   ══════════════════════════════════════════ */
.pipeline-section { padding: 100px 48px; }
.pipeline-wrap    { margin-top: 60px; position: relative; }

.pipeline-track {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; background: var(--border);
}

.pipe-step {
  flex: 1; background: var(--surface); padding: 32px 24px;
  text-align: center; position: relative;
  transition: background 0.2s;
}

.pipe-step:hover { background: var(--surface2); }

.pipe-num {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2.5rem; color: rgba(0,232,162,0.12); line-height: 1;
}

.pipe-icon  { font-size: 1.6rem; margin: 8px 0; }

.pipe-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.88rem; margin-bottom: 8px; letter-spacing: 0.01em;
}

.pipe-desc { font-size: 0.72rem; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════════
   INTERACTIVE ANALYZER
   ══════════════════════════════════════════ */
.analyzer-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 100px 48px;
}

.analyzer-wrap {
  margin-top: 60px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}

.input-panel, .output-panel { background: var(--bg); padding: 40px; }
.input-panel { border-right: 1px solid var(--border); }

.panel-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  margin-bottom: 28px; display: flex; align-items: center; gap: 10px;
}

.panel-title-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.field-group  { margin-bottom: 20px; }

.field-label {
  font-size: 0.68rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
}

.field-input, .field-select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px; border-radius: 6px;
  font-family: 'DM Mono', monospace; font-size: 0.82rem;
  outline: none; transition: border-color 0.2s;
}

.field-input:focus,
.field-select:focus { border-color: var(--accent); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.analyze-btn {
  width: 100%; background: var(--accent); color: var(--bg);
  border: none; padding: 14px; border-radius: 6px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; margin-top: 8px; letter-spacing: 0.03em;
  transition: transform 0.15s, box-shadow 0.2s;
}

.analyze-btn:hover  { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0,232,162,0.3); }
.analyze-btn:active { transform: translateY(0); }

/* ── Results Panel ── */
.result-idle {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; min-height: 320px;
  color: var(--muted); text-align: center;
  gap: 12px; font-size: 0.8rem;
}

.result-idle-icon { font-size: 3rem; opacity: 0.3; }
.result-display   { display: none; }
.result-display.visible { display: block; }

.risk-score-big {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 5rem; letter-spacing: -0.04em; line-height: 1;
}

.risk-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.risk-bar-track {
  height: 6px; border-radius: 100px; background: var(--surface2);
  margin: 20px 0; overflow: hidden;
}

.risk-bar-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 0%;
}

.signals-list {
  list-style: none; display: flex;
  flex-direction: column; gap: 8px; margin-top: 20px;
}

.signal-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; padding: 10px 14px;
  background: var(--surface); border-radius: 6px;
  border-left: 2px solid var(--border);
}

.signal-item.warn { border-left-color: var(--accent2); color: #ffb3bf; }
.signal-item.ok   { border-left-color: var(--accent);  color: #a8ffd9; }
.signal-item.info { border-left-color: var(--accent3); color: #c4b0e8; }

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */
.testimonials { padding: 100px 48px; }

.testi-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 60px;
}

.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 32px; border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.testi-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }

.testi-quote {
  font-size: 0.85rem; color: var(--text); line-height: 1.7; margin-bottom: 24px;
}

.testi-quote::before {
  content: '"'; color: var(--accent); font-size: 2rem;
  line-height: 0.5; display: block; margin-bottom: 12px;
}

.testi-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: grid; place-items: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem;
  color: var(--bg);
}

.author-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem; }
.author-role { font-size: 0.7rem; color: var(--muted); }

/* ══════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════ */
.pricing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 100px 48px;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin-top: 60px;
}

.price-card {
  background: var(--surface); padding: 40px 32px;
  position: relative; transition: background 0.2s;
}

.price-card.featured { background: var(--surface2); }
.price-card:hover    { background: var(--bg); }

.price-tier {
  font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}

.price-amt {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2.8rem; letter-spacing: -0.04em; line-height: 1;
}

.price-per { font-size: 0.75rem; color: var(--muted); margin-top: 4px; margin-bottom: 28px; }

.price-features {
  list-style: none; display: flex;
  flex-direction: column; gap: 12px; margin-bottom: 32px;
}

.pf-item {
  font-size: 0.78rem; color: var(--muted);
  display: flex; gap: 10px; align-items: flex-start;
}

.pf-item::before { content: '→'; color: var(--accent); flex-shrink: 0; }

.price-btn {
  width: 100%; padding: 13px; border-radius: 6px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; letter-spacing: 0.03em; transition: all 0.2s;
}

.price-btn.outline {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}

.price-btn.outline:hover { border-color: var(--accent); color: var(--accent); }

.price-btn.solid  { background: var(--accent); color: var(--bg); border: none; }
.price-btn.solid:hover { box-shadow: 0 8px 30px rgba(0,232,162,0.3); }

.featured-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent); color: var(--bg);
  font-size: 0.62rem; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   TICKER
   ══════════════════════════════════════════ */
.ticker-wrap {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 14px 0; background: var(--surface);
}

.ticker {
  display: flex; gap: 60px; width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.ticker:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tick-item {
  font-size: 0.72rem; color: var(--muted); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}

.tick-item span { color: var(--accent); font-weight: 600; }
.tick-sep       { color: var(--border); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 48px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.2rem; color: var(--accent); margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.78rem; color: var(--muted); line-height: 1.6; max-width: 280px;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.8rem; margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: var(--muted); text-decoration: none;
  font-size: 0.78rem; transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: var(--muted);
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.fade-in { animation: fadeInUp 0.7s ease both; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }

  .section,
  .pipeline-section,
  .analyzer-section,
  .testimonials,
  .pricing { padding: 60px 20px; }

  .hero { padding: 100px 20px 60px; }

  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-card.wide { grid-column: span 1; }

  .features-grid,
  .testi-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .analyzer-wrap { grid-template-columns: 1fr; }
  .input-panel   { border-right: none; border-bottom: 1px solid var(--border); }

  .pipeline-track { flex-direction: column; }

  footer { grid-template-columns: 1fr; }

  .stats-bar { flex-wrap: wrap; }
  .stat      { border-right: none; border-bottom: 1px solid var(--border); max-width: 100%; }
}
