* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-card: rgba(15, 23, 42, 0.74);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text-secondary: rgba(255,255,255,0.62);
}

body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top center, rgba(37, 99, 235, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.10), transparent 28%),
    linear-gradient(180deg, #020617 0%, #07111f 52%, #0f172a 100%);
  color: white;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: -3;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(160px);
  z-index: -2;
}

.orb-one {
  width: 700px;
  height: 700px;
  background: rgba(37, 99, 235, 0.16);
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-two {
  width: 520px;
  height: 520px;
  background: rgba(56, 189, 248, 0.08);
  bottom: -220px;
  right: -120px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.logo-wrap {
  position: relative;
}

.logo-glow {
  position: absolute;
  width: 120px;
  height: 40px;
  background: rgba(56, 189, 248, 0.16);
  filter: blur(30px);
}

.logo {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

/* =========================
   HERO
========================= */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.16);
  color: #7dd3fc;
  margin-bottom: 30px;
  font-size: 13px;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 span {
  display: block;
  color: rgba(255,255,255,0.72);
}

.hero-description {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  padding: 18px 30px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.primary-btn {
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color: white;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,99,235,0.3);
}

.secondary-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: white;
}

.secondary-btn:hover {
  border-color: rgba(56,189,248,0.18);
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.trust-row div {
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 13px;
}

/* =========================
   INTELLIGENCE PANEL
========================= */

.intelligence-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.panel-label {
  color: #7dd3fc;
  font-size: 13px;
  margin-bottom: 14px;
}

.panel-top h2 {
  font-size: 36px;
  line-height: 1.2;
  max-width: 700px;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  font-size: 13px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 12px #6ee7b7;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.panel-card {
  padding: 34px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(24px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.panel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.14);
}

.panel-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: #7dd3fc;
  font-size: 20px;
  margin-bottom: 22px;
}

.panel-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.panel-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

/* =========================
   VISIBILITY SECTION
========================= */

.visibility-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 100px;
}

.visibility-card {
  display: flex;
  gap: 40px;
  padding: 44px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(24px);
  flex-wrap: wrap;
}

.visibility-left {
  flex: 1;
  min-width: 280px;
}

.visibility-badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  color: #7dd3fc;
  font-size: 12px;
  margin-bottom: 20px;
}

.visibility-left h2 {
  font-size: 30px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.visibility-left p {
  color: var(--text-secondary);
  line-height: 1.9;
}

.visibility-right {
  flex: 1;
  min-width: 280px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: #7dd3fc;
  margin-bottom: 12px;
}

.mini-card span {
  font-size: 14px;
  color: white;
}

/* =========================
   FOOTER
========================= */

.footer {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* =========================
   LOGIN PAGE
========================= */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
}

.login-card {
  padding: 46px;
  border-radius: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(24px);
  text-align: center;
}

.login-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.login-badge {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.16);
  color: #7dd3fc;
  font-size: 12px;
  margin-bottom: 24px;
}

.login-card h1 {
  font-size: 28px;
  margin-bottom: 14px;
}

.login-subtitle {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 34px;
  font-size: 15px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.google-btn {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: white;
  color: #111827;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.google-btn:hover {
  transform: translateY(-2px);
}

.login-footer {
  margin-top: 30px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* =========================
   SCAN RESULT (unused scan()/renderResult() in app.js, kept for future)
========================= */

.scan-result-card {
  padding: 34px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.scan-result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.risk-score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.risk-safe {
  background: radial-gradient(circle, rgba(16,185,129,0.18), transparent 70%);
  border: 1px solid rgba(16,185,129,0.18);
}

.risk-warning {
  background: radial-gradient(circle, rgba(250,204,21,0.18), transparent 70%);
  border: 1px solid rgba(250,204,21,0.18);
}

.risk-high {
  background: radial-gradient(circle, rgba(239,68,68,0.18), transparent 70%);
  border: 1px solid rgba(239,68,68,0.18);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.result-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.result-item-label {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 8px;
}

.result-item-value {
  font-size: 18px;
  font-weight: 600;
}

.risk-flags-section {
  margin-top: 24px;
}

.risk-flags-title {
  font-size: 16px;
  margin-bottom: 16px;
  color: #7dd3fc;
}

.risk-flag-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 10px;
}

.risk-flag-title {
  color: #7dd3fc;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.risk-flag-description {
  color: var(--text-secondary);
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
    padding: 26px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .visibility-card {
    flex-direction: column;
  }
}

/* =========================
   COOKIE CONSENT BANNER
========================= */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 1100px;
  margin: 0 auto;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.cookie-banner-text a {
  color: #7dd3fc;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn-primary,
.cookie-btn-secondary {
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color: white;
}

.cookie-btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
}

@media (max-width: 700px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-btn-primary,
  .cookie-btn-secondary {
    flex: 1;
  }
}