/* ===========================
   THEME & RESET
   =========================== */

:root {
  /* Core dark theme */
  --bg-main: #050712;
  --bg-alt: #080a18;

  /* Neon accent palette */
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-cyan: #22d3ee;

  /* Glassmorphism surfaces */
  --glass-bg: rgba(17, 24, 39, 0.78);
  --glass-border: rgba(148, 163, 184, 0.4);
  --glass-highlight: rgba(255, 255, 255, 0.06);

  /* Text colors */
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;

  /* Status colors */
  --success: #22c55e;
  --error: #f97373;
  --warning: #facc15;

  /* Misc */
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-glass: 0 18px 60px rgba(0, 0, 0, 0.75);
  --transition-fast: 180ms ease-out;
  --transition-med: 220ms ease-out;
}

/* Light theme - using both :root and html selectors for better compatibility */
:root.light-mode,
html.light-mode {
  /* Core light theme */
  --bg-main: #f8fafc;
  --bg-alt: #f1f5f9;

  /* Accent palette (adjusted for light mode) */
  --accent-blue: #2563eb;
  --accent-purple: #9333ea;
  --accent-cyan: #0891b2;

  /* Glassmorphism surfaces for light mode */
  --glass-bg: rgba(226, 232, 240, 0.68);
  --glass-border: rgba(100, 116, 139, 0.3);
  --glass-highlight: rgba(0, 0, 0, 0.04);

  /* Text colors for light mode */
  --text-main: #1e293b;
  --text-soft: #475569;
  --text-muted: #94a3b8;

  /* Status colors for light mode */
  --success: #16a34a;
  --error: #dc2626;
  --warning: #ca8a04;

  /* Shadows for light mode */
  --shadow-glass: 0 18px 60px rgba(0, 0, 0, 0.08);
}

/* Light theme for body (when class is added to body) */
body.light-mode {
  --bg-main: #f8fafc;
  --bg-alt: #f1f5f9;
  --accent-blue: #2563eb;
  --accent-purple: #9333ea;
  --accent-cyan: #0891b2;
  --glass-bg: rgba(226, 232, 240, 0.68);
  --glass-border: rgba(100, 116, 139, 0.3);
  --glass-highlight: rgba(0, 0, 0, 0.04);
  --text-main: #1e293b;
  --text-soft: #475569;
  --text-muted: #94a3b8;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #ca8a04;
  --shadow-glass: 0 18px 60px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  /* Native smooth scrolling [web:11][web:17] */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-med), color var(--transition-med);
}

body.light-mode {
  background: radial-gradient(circle at top, #f0f4f8 0, #f0f4f8 40%, #e2e8f0 100%);
}

/* Remove default link styling */
a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   BACKGROUND LAYERS
   =========================== */

.bg-gradient {
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 5% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 95% 0%, rgba(129, 140, 248, 0.16), transparent 55%),
    radial-gradient(circle at 0% 90%, rgba(94, 234, 212, 0.12), transparent 50%),
    radial-gradient(circle at 100% 85%, rgba(244, 114, 182, 0.08), transparent 52%);
  filter: blur(40px);
  z-index: -2;
  animation: bg-pulse 18s ease-in-out infinite alternate;
  transition: all var(--transition-med);
}

body.light-mode .bg-gradient {
  background:
    radial-gradient(circle at 5% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(circle at 95% 0%, rgba(147, 51, 234, 0.08), transparent 55%),
    radial-gradient(circle at 0% 90%, rgba(8, 145, 178, 0.08), transparent 50%),
    radial-gradient(circle at 100% 85%, rgba(168, 85, 247, 0.06), transparent 52%);
}

#bg-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Soft breathing effect for background */
@keyframes bg-pulse {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.05) translateY(-12px);
    opacity: 1;
  }
}

/* ===========================
   LAYOUT
   =========================== */

main {
  width: 100%;
}

/* Shared section wrapper */
.section {
  padding: 120px min(6vw, 72px) 80px;
  position: relative;
}

/* Section header */
.section-header {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
  transition: color var(--transition-med);
}

body.light-mode .section-header h2 {
  color: #0f172a;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* Two-column layout that collapses on mobile */
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}

/* Features + steps grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

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

/* ===========================
   GLASSMORPHIC SURFACES
   =========================== */

.glass {
  background: linear-gradient(135deg,
      rgba(148, 163, 184, 0.08),
      rgba(31, 41, 55, 0.86));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-med);
}

body.light-mode .glass {
  background: linear-gradient(135deg,
      rgba(226, 232, 240, 0.5),
      rgba(226, 232, 240, 0.85));
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.05),
      transparent 40%,
      transparent 60%,
      rgba(59, 130, 246, 0.08));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}

.glass:hover::before {
  opacity: 1;
}

/* Generic card */
.card {
  padding: 24px 22px 22px;
}

/* ===========================
   TOP NAV
   =========================== */

.top-nav {
  position: fixed;
  inset-inline: min(6vw, 72px);
  top: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.86),
      rgba(15, 23, 42, 0.58));
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  transition: all var(--transition-med);
}

body.light-mode .top-nav {
  background: linear-gradient(135deg,
      rgba(241, 245, 249, 0.88),
      rgba(241, 245, 249, 0.75));
  border: 1px solid rgba(100, 116, 139, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #e5e7eb;
  transition: color var(--transition-med);
}

body.light-mode .logo {
  color: #0f172a;
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f9fafb, var(--accent-purple));
  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.85),
    0 0 24px rgba(59, 130, 246, 0.9);
  animation: logo-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes logo-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  width: 100%;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #e5e7eb;
  background: rgba(30, 64, 175, 0.4);
  transform: translateY(-1px);
}

body.light-mode .nav-links a {
  color: #475569;
}

body.light-mode .nav-links a:hover {
  color: #0f172a;
  background: rgba(37, 99, 235, 0.12);
}

/* User area styling for consistency */
.user-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: fit-content;
}

.theme-toggle {
  font-size: 1.1rem;
  padding: 6px 10px;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  transform: scale(1.15) rotate(15deg);
}

.user-name {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  white-space: nowrap;
  transition: all var(--transition-med);
}

body.light-mode .user-name {
  color: #1e293b;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.wallet-address {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 120px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  white-space: nowrap;
  transition: all var(--transition-med);
}

body.light-mode .wallet-address {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563eb;
}

#login-btn,
#register-btn,
#logout-btn,
#dashboard-link {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#login-btn,
#register-btn {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-blue);
  transition: all var(--transition-fast);
}

#login-btn:hover,
#register-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

body.light-mode #login-btn,
body.light-mode #register-btn {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #2563eb;
}

body.light-mode #login-btn:hover,
body.light-mode #register-btn:hover {
  background: rgba(37, 99, 235, 0.2);
}

#logout-btn,
#dashboard-link {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

#logout-btn:hover,
#dashboard-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

body.light-mode #logout-btn,
body.light-mode #dashboard-link {
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid rgba(100, 116, 139, 0.2);
  color: #1e293b;
}

body.light-mode #logout-btn:hover,
body.light-mode #dashboard-link:hover {
  background: rgba(100, 116, 139, 0.2);
}

#connect-wallet-btn,
#disconnect-wallet-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-purple);
}

#connect-wallet-btn:hover,
#disconnect-wallet-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

body.light-mode #connect-wallet-btn,
body.light-mode #disconnect-wallet-btn {
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.3);
  color: #9333ea;
}

body.light-mode #connect-wallet-btn:hover,
body.light-mode #disconnect-wallet-btn:hover {
  background: rgba(147, 51, 234, 0.2);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

/* ===========================
   HERO
   =========================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
  /* to account for fixed nav */
  padding-bottom: 120px;
}

.hero-content {
  max-width: 720px;
  padding: 32px 30px 26px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  letter-spacing: 0.04em;
}

.hero-subtitle {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-soft);
  transition: all var(--transition-med);
}

body.light-mode .pill {
  background: rgba(226, 232, 240, 0.8);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #475569;
}

/* ===========================
   BUTTONS & CHIPS
   =========================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn.primary {
  background: radial-gradient(circle at 0 0,
      rgba(250, 250, 250, 0.18),
      transparent 55%),
    linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-color: rgba(191, 219, 254, 0.6);
  box-shadow:
    0 12px 38px rgba(59, 130, 246, 0.5),
    0 0 0 1px rgba(37, 99, 235, 0.4);
  transition: all var(--transition-fast);
}

.btn.primary:hover {
  box-shadow:
    0 16px 44px rgba(129, 140, 248, 0.65),
    0 0 0 1px rgba(37, 99, 235, 0.7);
  transform: translateY(-1px);
}

body.light-mode .btn.primary {
  background: radial-gradient(circle at 0 0,
      rgba(255, 255, 255, 0.25),
      transparent 55%),
    linear-gradient(135deg, #2563eb, #9333ea);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow:
    0 12px 38px rgba(37, 99, 235, 0.35),
    0 0 0 1px rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

body.light-mode .btn.primary:hover {
  box-shadow:
    0 16px 44px rgba(37, 99, 235, 0.45),
    0 0 0 1px rgba(37, 99, 235, 0.6);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.75);
  transition: all var(--transition-fast);
}

.btn.ghost:hover {
  background: rgba(30, 64, 175, 0.48);
  border-color: rgba(191, 219, 254, 0.8);
}

body.light-mode .btn.ghost {
  border-color: rgba(100, 116, 139, 0.4);
  background: rgba(226, 232, 240, 0.6);
  color: #1e293b;
}

body.light-mode .btn.ghost:hover {
  background: rgba(226, 232, 240, 0.95);
  border-color: rgba(37, 99, 235, 0.6);
  color: #2563eb;
}

.btn.full {
  width: 100%;
}

/* Spinner used for fake loading states */
.btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(226, 232, 240, 0.2);
  border-top-color: #e5e7eb;
  animation: spin 0.65s linear infinite;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn.loading .btn-spinner {
  opacity: 1;
  transform: scale(1);
}

.btn.loading .btn-label {
  opacity: 0.6;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.chip {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.9);
}

.chip-active {
  background: linear-gradient(135deg,
      rgba(37, 99, 235, 0.9),
      rgba(129, 140, 248, 0.9));
  color: #e5e7eb;
}

body.light-mode .chip {
  border: 1px solid rgba(100, 116, 139, 0.3);
  background: rgba(226, 232, 240, 0.7);
  color: #475569;
}

body.light-mode .chip:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(226, 232, 240, 0.95);
}

body.light-mode .chip-active {
  background: linear-gradient(135deg,
      rgba(37, 99, 235, 0.85),
      rgba(147, 51, 234, 0.85));
  color: #ffffff;
}

/* ===========================
   FORM FIELDS
   =========================== */

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  gap: 6px;
}

.field-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field-label-soft {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field input[type="text"] {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
  padding: 9px 14px;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-main);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.field input[type="text"]:focus {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.7),
    0 0 0 6px rgba(37, 99, 235, 0.38);
  background: rgba(15, 23, 42, 0.96);
  transform: translateY(-1px);
}

body.light-mode .field input[type="text"] {
  border: 1px solid rgba(100, 116, 139, 0.3);
  background: rgba(241, 245, 249, 0.9);
  color: #1e293b;
}

body.light-mode .field input[type="text"]:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.5),
    0 0 0 6px rgba(37, 99, 235, 0.15);
  background: rgba(241, 245, 249, 0.98);
}

.field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 10px 0 0;
  background: transparent;
}

.field input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      var(--accent-blue),
      var(--accent-purple),
      var(--accent-cyan));
}

.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f9fafb;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.36);
  margin-top: -6px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.field input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(129, 140, 248, 0.44);
}

.field-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===========================
   DROPZONE
   =========================== */

.dropzone {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 10% 0,
      rgba(56, 189, 248, 0.08),
      transparent 60%);
  padding: 18px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    background var(--transition-fast);
}

.dropzone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0,
      rgba(59, 130, 246, 0.2),
      transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.dropzone:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.dropzone.drag-over {
  border-style: solid;
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at 10% 0,
      rgba(56, 189, 248, 0.16),
      transparent 60%);
}

.dropzone.drag-over::after {
  opacity: 1;
}

body.light-mode .dropzone {
  border-color: rgba(100, 116, 139, 0.3);
  background: radial-gradient(circle at 10% 0,
      rgba(37, 99, 235, 0.06),
      transparent 60%);
}

body.light-mode .dropzone:hover {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .dropzone.drag-over {
  border-color: rgba(37, 99, 235, 0.8);
  background: radial-gradient(circle at 10% 0,
      rgba(37, 99, 235, 0.12),
      transparent 60%);
}

.dropzone-inner {
  text-align: center;
}

.drop-icon {
  font-size: 1.3rem;
  display: block;
}

.drop-subtext {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===========================
   PREVIEW
   =========================== */

.preview-toggle-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.preview-wrapper {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0 0,
      rgba(31, 41, 55, 0.92),
      rgba(15, 23, 42, 0.94));
  min-height: 190px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-med);
}

body.light-mode .preview-wrapper {
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: radial-gradient(circle at 0 0,
      rgba(241, 245, 249, 0.95),
      rgba(226, 232, 240, 0.92));
}

.preview-placeholder {
  text-align: center;
  color: var(--text-soft);
}

.preview-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 6px;
}

.preview-image {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: none;
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.preview-image.visible {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.preview-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===========================
   VERIFY RESULT CARD
   =========================== */

.result-card {
  position: relative;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.status-idle {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-soft);
  transition: all var(--transition-med);
}

.status-success {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(34, 197, 94, 0.85);
  color: #bbf7d0;
  box-shadow: 0 0 24px rgba(22, 163, 74, 0.5);
  transition: all var(--transition-med);
}

.status-error {
  background: rgba(185, 28, 28, 0.16);
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
  box-shadow: 0 0 22px rgba(185, 28, 28, 0.6);
  transition: all var(--transition-med);
}

body.light-mode .status-idle {
  background: rgba(226, 232, 240, 0.9);
  border-color: rgba(100, 116, 139, 0.3);
  color: #475569;
}

body.light-mode .status-success {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.4);
  color: #15803d;
  box-shadow: 0 0 24px rgba(22, 163, 74, 0.15);
}

body.light-mode .status-error {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.4);
  color: #991b1b;
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.15);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.result-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: all var(--transition-med);
}

body.light-mode .result-item {
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.result-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-value {
  font-size: 0.9rem;
}

/* Animated confidence bars */
.confidence-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  height: 26px;
}

.confidence-bars span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg,
      rgba(148, 163, 184, 0.3),
      rgba(15, 23, 42, 0.9));
  transform-origin: bottom;
  transform: scaleY(0.1);
  opacity: 0.3;
  animation: bars-idle 1.2s ease-in-out infinite;
}

.confidence-bars span:nth-child(2) {
  animation-delay: 0.1s;
}

.confidence-bars span:nth-child(3) {
  animation-delay: 0.2s;
}

.confidence-bars span:nth-child(4) {
  animation-delay: 0.3s;
}

.confidence-bars span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes bars-idle {

  0%,
  100% {
    transform: scaleY(0.25);
    opacity: 0.25;
  }

  50% {
    transform: scaleY(0.9);
    opacity: 0.7;
  }
}

/* Notification slide animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* ===========================
   FEATURES & STEPS
   =========================== */

.feature-card {
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%,
      rgba(248, 250, 252, 0.9),
      rgba(56, 189, 248, 0.8));
  box-shadow:
    0 0 18px rgba(59, 130, 246, 0.8),
    0 0 0 1px rgba(59, 130, 246, 0.8);
  margin-bottom: 4px;
  transition: all var(--transition-med);
}

body.light-mode .feature-icon {
  background: radial-gradient(circle at 30% 20%,
      rgba(255, 255, 255, 0.95),
      rgba(37, 99, 235, 0.7));
  box-shadow:
    0 0 18px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(37, 99, 235, 0.5);
}

.feature-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.step-card {
  padding: 18px 18px 18px;
  position: relative;
}

.step-number {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  transition: color var(--transition-med);
}

body.light-mode .step-number {
  color: rgba(100, 116, 139, 0.6);
}

.step-card h3 {
  margin: 0 0 6px;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  padding: 28px min(6vw, 72px) 34px;
  border-top: 1px solid rgba(31, 41, 55, 0.85);
  background: radial-gradient(circle at top,
      rgba(15, 23, 42, 0.98),
      #020617);
  transition: all var(--transition-med);
}

body.light-mode .footer {
  border-top: 1px solid rgba(100, 116, 139, 0.2);
  background: radial-gradient(circle at top,
      rgba(241, 245, 249, 0.98),
      rgba(226, 232, 240, 0.95));
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.footer-note {
  margin-top: 6px;
}

.footer-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(191, 219, 254, 0.9);
  border-bottom: 1px dashed rgba(129, 140, 248, 0.7);
  transition: all var(--transition-med);
}

body.light-mode .footer-link {
  color: #2563eb;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.5);
}

/* ===========================
   MICRO COPY
   =========================== */

h3 {
  font-size: 1.02rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-main);
  transition: color var(--transition-med);
}

.hint {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .top-nav {
    display: flex !important;
    justify-content: space-between !important;
    grid-template-columns: none !important;
    inset-inline: 16px;
  }

  .nav-links {
    display: none;
    /* Keep nav ultra-minimal on small screens */
  }

  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-inline: 18px;
    padding-top: 132px;
  }

  .section {
    padding-inline: 18px;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 24px 20px 20px;
  }

  .result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Navigation active state */
.nav-links a.active {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  transition: all var(--transition-med);
}

body.light-mode .nav-links a.active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* ===========================
   DETECTION SECTION STYLES
   =========================== */

.confidence-bar {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: all var(--transition-med);
}

body.light-mode .confidence-bar {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.confidence-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
  transition: all var(--transition-med);
}

body.light-mode .confidence-badge {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #2563eb;
}

/* Status pills with improved colors */
.status-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.status-idle {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: all var(--transition-med);
}

.status-processing {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
  animation: pulse 1.5s ease-in-out infinite;
  transition: all var(--transition-med);
}

.status-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  transition: all var(--transition-med);
}

.status-warning {
  background: rgba(250, 204, 21, 0.15);
  color: var(--warning);
  border: 1px solid rgba(250, 204, 21, 0.3);
  transition: all var(--transition-med);
}

.status-error {
  background: rgba(249, 115, 115, 0.15);
  color: var(--error);
  border: 1px solid rgba(249, 115, 115, 0.3);
  transition: all var(--transition-med);
}

body.light-mode .status-idle {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

body.light-mode .status-processing {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

body.light-mode .status-success {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

body.light-mode .status-warning {
  background: rgba(202, 138, 4, 0.1);
  color: #b45309;
  border: 1px solid rgba(202, 138, 4, 0.3);
}

body.light-mode .status-error {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Button loading state */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  left: 50%;
  margin-left: -7px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Detection result animations */
.result-card {
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for detection section */
@media (max-width: 768px) {
  .confidence-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  .status-pill {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ===========================
   WORKFLOW INFO & INLINE STYLES
   =========================== */

.workflow-info {
  transition: all var(--transition-med);
}

body.light-mode .workflow-info {
  background: rgba(37, 99, 235, 0.06) !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
}

body.light-mode .workflow-info h3 {
  color: #2563eb !important;
}

body.light-mode .workflow-info p {
  color: #1e293b;
}

/* ===========================
   ANIMATIONS & MICRO-INTERACTIONS
   =========================== */

/* Staggered Entry Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base animation class */
.animate-entry {
  opacity: 0;
  /* Start invisible */
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Stagger delays */
.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* Apply to common elements automatically if not manually tagged */
.hero-content,
.section-header,
.card,
.features-grid>*,
.steps-grid>*,
#watermark,
#ai-shield,
#verify,
#detect,
#strip {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-content {
  animation-delay: 0.1s;
}

.section-header {
  animation-delay: 0.2s;
}

.card {
  animation-delay: 0.3s;
}

.features-grid>*:nth-child(1) {
  animation-delay: 0.4s;
}

.features-grid>*:nth-child(2) {
  animation-delay: 0.5s;
}

.features-grid>*:nth-child(3) {
  animation-delay: 0.6s;
}

/* Enhanced Gradient Typography */
h1,
h2,
.hero-title {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Standard fallbacks handled by clip */
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode .hero-title {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

/* Premium Glass Hover Effects */
.glass {
  /* Existing styles preserved via cascade, adding interactive flair */
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.glass:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow:
    0 20px 60px -10px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(148, 163, 184, 0.3);
  /* Subtle internal glow border */
  border-color: rgba(148, 163, 184, 0.5);
}

body.light-mode .glass:hover {
  box-shadow:
    0 20px 60px -10px rgba(59, 130, 246, 0.15),
    0 0 0 1px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Pulse Animation for active elements */
@keyframes softPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.btn.primary:not(:disabled):hover {
  animation: softPulse 2s infinite;
}

/* ===========================
   AI TRAP SPECIFIC STYLES
   =========================== */

/* Status generating state */
.status-generating {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.85);
  color: #bfdbfe;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.5);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: all var(--transition-med);
}

body.light-mode .status-generating {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
  color: #1d4ed8;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}

/* Metrics grid for trap results */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  margin-bottom: 14px;
}

body.light-mode .metrics-grid {
  background: rgba(226, 232, 240, 0.6);
  border-color: rgba(100, 116, 139, 0.2);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 500;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #22d3ee;
  font-family: 'Monaco', 'Courier New', monospace;
}

body.light-mode .metric-value {
  color: #0891b2;
}

.metric-display {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-bar {
  height: 6px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 3px;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Format buttons for output selection */
.format-buttons {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.format-btn {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-soft);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-med);
}

.format-btn:hover {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

.format-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
  border-color: rgba(139, 92, 246, 0.8);
  color: #c4b5fd;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

body.light-mode .format-btn {
  border-color: rgba(100, 116, 139, 0.3);
  background: rgba(226, 232, 240, 0.5);
  color: #475569;
}

body.light-mode .format-btn:hover {
  border-color: rgba(100, 116, 139, 0.6);
  background: rgba(226, 232, 240, 0.8);
  color: #1e293b;
}

body.light-mode .format-btn.active {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(37, 99, 235, 0.15));
  border-color: rgba(147, 51, 234, 0.6);
  color: #6b21a8;
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.2);
}

.dragover {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}
}