/* ==========================================================================
   MÉTODO ICEMAN - DESIGN SYSTEM & STYLE SHEET (EDICIÓN VIOLETA ELECTRA)
   ========================================================================== */

/* 1. CSS VARIABLES & THEMING */
:root {
  /* Colors */
  --bg-black: #030206;
  --bg-card: #09080e;
  --bg-card-hover: #110d1b;
  --bg-input: #0e0a16;
  
  --text-primary: #ffffff;
  --text-secondary: #c2c0cc;
  --text-muted: #6b6684;
  
  --color-accent: #a855f7; /* Electric Purple */
  --color-accent-glow: rgba(168, 85, 247, 0.25);
  --color-accent-dark: #7c3aed;
  --color-accent-light: #c084fc;
  
  --color-danger: #ef4444;
  --color-success: #10b981;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Montserrat', sans-serif;
  
  /* Spacing */
  --container-max: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 12px;
}

/* 2. BASE RESETS & GLOBAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cyberpunk-Style Tech Background Dot Grid Matrix */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button, input {
  font: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

input:focus {
  outline: none;
}

/* 3. LAYOUT & CONTAINERS */
.section-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 100px 24px;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* 4. DYNAMIC AMBIENT GLOW EFFECTS */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(150px);
  opacity: 0.28;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

.glow-1 {
  top: -100px;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-2 {
  top: 40%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.18;
  animation: floatGlow 20s ease-in-out infinite alternate-reverse;
}

.glow-3 {
  bottom: 5%;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent-dark) 0%, transparent 70%);
  opacity: 0.22;
}

/* 5. TYPOGRAPHY & HEADINGS */
h1, h2, h3, .font-accent {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Animated Title Glow Gradient */
.highlight-text {
  background: linear-gradient(135deg, #f3e8ff 0%, #a855f7 45%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
  background-size: 200% auto;
  animation: textShine 6s linear infinite;
  display: inline-block;
}

@keyframes textShine {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}

.highlight-text-light {
  color: #f3f4f6;
}

.title-bar {
  width: 70px;
  height: 4px;
  background-color: var(--color-accent);
  margin-top: 18px;
  margin-bottom: 36px;
  box-shadow: 0 0 15px var(--color-accent);
  border-radius: 2px;
}

.section-tag {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Text Accent Overrides */
.text-accent {
  color: var(--color-accent) !important;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

/* 6. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  gap: 10px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #000;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.8);
  background-color: #ffffff;
  color: #000;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
  background-color: rgba(168, 85, 247, 0.04);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-danger {
  background-color: var(--color-danger);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(6px);
}

/* 7. NAVIGATION BAR */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(3, 2, 6, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
  transition: var(--transition-smooth);
}

.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.logo-img:hover {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  gap: 36px;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

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

.nav-item:hover::after {
  width: 100%;
}

/* 8. HERO SECTION */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 110px;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  color: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  font-family: var(--font-display);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.badge-icon {
  font-size: 0.85rem;
  animation: flashGlow 1.5s ease-in-out infinite alternate;
}

@keyframes flashGlow {
  0% { opacity: 0.5; filter: drop-shadow(0 0 0 var(--color-accent)); }
  100% { opacity: 1; filter: drop-shadow(0 0 5px var(--color-accent)); }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  font-weight: 400;
}

/* 9. EMAIL FORMS */
.cta-form {
  width: 100%;
  max-width: 620px;
}

.form-group {
  display: flex;
  gap: 12px;
  width: 100%;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.email-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background-color: var(--bg-input);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--border-radius);
  color: white;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.email-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
  background-color: rgba(168, 85, 247, 0.03);
}

.error-state {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3) !important;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.form-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* HERO VISUAL WITH GRADIENT IMAGES */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.15);
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 380px;
  transition: var(--transition-smooth);
}

.shadow-blue {
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(168, 85, 247, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-img, .story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover .hero-img,
.image-wrapper:hover .story-img {
  transform: scale(1.06);
}

.image-wrapper:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 15px 50px rgba(168, 85, 247, 0.3);
}

.image-overlay-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-black) 0%, transparent 40%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

/* 10. EL PROBLEMA (Agitación) */
.problem-section {
  background-color: #050409;
  border-top: 1px solid rgba(168, 85, 247, 0.05);
  border-bottom: 1px solid rgba(168, 85, 247, 0.05);
  position: relative;
  z-index: 1;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.problem-card {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* Dynamic Spotlight Border effect */
.problem-card::after, .method-card::after, .closing-container::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(168, 85, 247, 0.22), transparent 45%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.problem-card:hover::after, .method-card:hover::after, .closing-container:hover::after {
  opacity: 1;
}

.problem-card:hover {
  background-color: rgba(239, 68, 68, 0.015);
  border-color: rgba(239, 68, 68, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.problem-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-accent-light);
  z-index: 2;
  transition: var(--transition-smooth);
}

.problem-card:hover .problem-icon-box {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--color-danger);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.problem-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  z-index: 2;
}

.problem-footer {
  margin-top: 56px;
  padding: 0 16px;
}

.problem-conclusion {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* 11. EL MÉTODO ICEMAN (Pilares) */
.method-section {
  position: relative;
  z-index: 1;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.method-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.06);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
  z-index: 2;
}

.method-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.08);
  transform: translateY(-8px) scale(1.01);
}

.method-card:hover::before {
  height: 100%;
}

.card-num {
  position: absolute;
  top: 24px;
  right: 40px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(168, 85, 247, 0.02);
  line-height: 1;
  transition: var(--transition-smooth);
}

.method-card:hover .card-num {
  color: rgba(168, 85, 247, 0.05);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  z-index: 2;
  position: relative;
}

.card-emoji {
  font-size: 1.75rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.card-subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
  z-index: 2;
  position: relative;
}

/* 12. MI HISTORIA (Autoridad) */
.story-section {
  background-color: #040307;
  border-top: 1px solid rgba(168, 85, 247, 0.04);
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

.story-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.story-visual {
  display: flex;
  justify-content: flex-end;
}

.story-visual .image-wrapper {
  max-width: 360px;
  aspect-ratio: 4/5;
}

.story-content {
  display: flex;
  flex-direction: column;
}

.story-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.story-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin-top: 36px;
}

/* 13. SECCIÓN FINAL / SEGUNDO CTA */
.closing-section {
  padding: 120px 24px;
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
}

.card-blur {
  background: rgba(9, 8, 14, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(168, 85, 247, 0.12);
}

.closing-container {
  border-radius: 24px;
  padding: 90px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.closing-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(168, 85, 247, 0.25) 50%, rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.glow-inner {
  bottom: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 60%);
  opacity: 0.85;
}

.closing-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.closing-title {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.closing-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 44px;
}

.closing-content .cta-form {
  margin: 0 auto;
}

/* 14. FOOTER */
.footer {
  background-color: #020104;
  border-top: 1px solid rgba(168, 85, 247, 0.08);
  padding: 44px 24px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

#admin-trigger {
  cursor: pointer;
  transition: color 0.2s ease;
}

#admin-trigger:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.social-link i {
  font-size: 1.25rem;
}

/* 15. TOAST NOTIFICATION */
.toast-notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  border-radius: var(--border-radius);
  background: rgba(9, 8, 14, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.toast-icon.success {
  background-color: var(--color-success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.toast-icon.error {
  background-color: var(--color-danger);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(20px);
}

/* 16. ADMIN MODAL PANEL */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: var(--transition-smooth);
}

.modal-content {
  width: 100%;
  max-width: 680px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.close-modal {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: white;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.table-wrapper {
  flex: 1;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
  min-height: 180px;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

th {
  background: rgba(168, 85, 247, 0.04);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

tr:hover td {
  background: rgba(168, 85, 247, 0.02);
  color: white;
}

.empty-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 16px;
}

.modal-actions button {
  flex: 1;
}

/* 17. PREMIUM LOADER OVERLAY */
.page-loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.6s;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  height: 80px;
  width: auto;
  animation: pulseGlow 1.8s ease-in-out infinite;
  filter: brightness(0) invert(1);
}

.loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background-color: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  animation: loadingBar 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loadingBar {
  0% { left: -40%; }
  100% { left: 100%; }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(168, 85, 247, 0.25)); }
  50% { transform: scale(1.06); filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(168, 85, 247, 0.7)); }
}

.loader-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 18. SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER) */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }
.delay-4 { transition-delay: 0.46s; }

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

/* 19. RESPONSIVE DESIGN MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .story-container {
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
  }
}

@media (max-width: 850px) {
  .hero-br {
    display: none; /* Hide line break to let text wrap naturally when centered */
  }

  .hero-section {
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 10px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
  }
  
  .hero-visual {
    margin-top: 36px;
    /* Natural flow: Heading and Form come first, image displays below for optimal CRO */
  }
  
  .navbar-container {
    flex-direction: column;
    gap: 14px;
    padding: 12px 24px;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .nav-cta {
    display: none;
  }
  
  .story-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .story-visual {
    justify-content: center;
    margin-bottom: 24px;
  }

  .story-content {
    max-width: 620px;
    margin: 0 auto;
  }

  .story-content .title-bar {
    margin-left: auto;
    margin-right: auto; /* Center the highlight line when text is centered */
  }
  
  .story-highlight {
    border-left: none;
    border-top: 3px solid var(--color-accent);
    padding-left: 0;
    padding-top: 20px;
    max-width: 320px;
    margin: 30px auto 0 auto; /* Center the highlight box on mobile */
  }
  
  .method-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 580px) {
  .section-container {
    padding: 60px 16px;
  }
  
  .hero-title {
    font-size: 2.15rem;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .form-group {
    flex-direction: column;
    gap: 12px;
  }

  .input-wrapper {
    width: 100%;
  }
  
  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.85rem; /* Scale font down slightly so text wraps cleanly */
  }
  
  .closing-container {
    padding: 48px 20px;
  }
  
  .closing-title {
    font-size: 1.65rem;
  }
  
  .method-card {
    padding: 28px 20px;
  }
  
  .modal-content {
    padding: 24px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Specific adjustments for ultra-small viewports (e.g. iPhone SE / width 320px) */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.85rem;
  }
  
  .section-title {
    font-size: 1.45rem;
  }

  .badge {
    padding: 6px 10px;
    font-size: 0.68rem;
  }
}
