:root {
  --bg-dark: #06080d;
  --bg-card: rgba(14, 18, 28, 0.75);
  --bg-card-hover: rgba(20, 26, 40, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(16, 185, 129, 0.3);
  
  --emerald: #10b981;
  --emerald-neon: #00f5a0;
  --cyan-neon: #00e5ff;
  --violet-neon: #8b5cf6;
  --rose-alert: #f43f5e;
  --amber-warning: #f59e0b;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmosphere */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.ambient-glow-1 {
  position: fixed;
  top: -10vw;
  left: 20vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(6, 8, 13, 0) 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 10vh;
  right: -5vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(6, 8, 13, 0) 70%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 8, 13, 0.75);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(0, 229, 255, 0.15));
  border: 1px solid var(--emerald-neon);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-neon);
  box-shadow: 0 0 15px rgba(0, 245, 160, 0.25);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 40%, var(--emerald-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--emerald-neon);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-neon);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-report-nav {
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-report-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 10;
  padding: 5rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero-tag svg {
  color: var(--emerald-neon);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title span.gradient-garden {
  background: linear-gradient(135deg, #ffffff 10%, var(--emerald-neon) 60%, var(--cyan-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Hero Video / Botanical Frame Container */
.hero-media-wrapper {
  position: relative;
  max-width: 900px;
  margin: 2rem auto 3rem;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(0, 245, 160, 0.4) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 229, 255, 0.2) 100%);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 160, 0.12);
}

.hero-media-inner {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  background: #090c13;
  aspect-ratio: 16 / 7.5;
}

.hero-media-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, 0.2) 0%, rgba(6, 8, 13, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  text-align: left;
}

.hero-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--emerald-neon);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.hero-media-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Quick Indicator Lookup Bar */
.search-box-wrapper {
  max-width: 650px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.search-form:focus-within {
  border-color: var(--emerald-neon);
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.15), 0 8px 30px rgba(0, 0, 0, 0.6);
}

.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-mono);
}

.search-form input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-main);
}

.search-form button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-neon));
  border: none;
  border-radius: 8px;
  color: #06080d;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s ease;
}

.search-form button:hover {
  opacity: 0.9;
}

.search-result-box {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 10px;
  text-align: left;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.search-result-box.found {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.search-result-box.clear {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats Counter Grid */
.stats-container {
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(12px);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-neon), transparent);
  opacity: 0.4;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.stat-number span.accent {
  color: var(--emerald-neon);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Live Threat Garden Feed Section */
.threat-feed-section {
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.threat-table-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.threat-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.threat-row:last-child {
  border-bottom: none;
}

.threat-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.threat-row.header {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.indicator-col {
  font-family: var(--font-mono);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.badge-phishing { background: rgba(244, 63, 94, 0.15); color: #fda4af; }
.badge-malware { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.badge-c2 { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.badge-drainer { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-suspended {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-neon);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-offline {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-investigating {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Report Submission Section */
.report-section {
  max-width: 900px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.report-card {
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.85) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.08);
}

.report-card-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.report-card-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.report-card-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Threat Category Selector Pills */
.category-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.category-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  user-select: none;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.category-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--emerald-neon);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 245, 160, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-label span.req {
  color: var(--rose-alert);
}

.form-label span.hint {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(6, 8, 13, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.form-input.mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--emerald-neon);
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.15);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.turnstile-box {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.btn-submit-report {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-submit-report:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.btn-submit-report:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Modal for Tracking Code */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: #0f1422;
  border: 1px solid var(--emerald-neon);
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 245, 160, 0.25);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-badge {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.tracking-code-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed var(--emerald-neon);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--emerald-neon);
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-close-modal {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 1.5rem;
  background: rgba(6, 8, 13, 0.95);
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

.footer-links a:hover {
  color: var(--emerald-neon);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .threat-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .threat-row.header {
    display: none;
  }
  .report-card {
    padding: 1.5rem;
  }
  .nav-links {
    display: none;
  }
}
