/* ===== ElectriCISO Marketing Site — main.css ===== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* 80px at default 16px; scales proportionally on large screens */
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #020617;
  color: #e2e8f0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== GLOBAL BACKGROUND GRADIENTS ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(139, 92, 246, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 212, 170, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(34, 211, 238, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

section, nav, footer { position: relative; z-index: 1; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

.brand-ciso {
  color: #38bdf8;
  -webkit-text-fill-color: currentColor;
  transition: color 0.2s ease;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-teal {
  background: linear-gradient(135deg, #00d4aa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GLASSMORPHISM CARDS ===== */
.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}
a.glass-card { color: inherit; }

/* Gradient border shimmer */
.shimmer-border {
  position: relative;
  overflow: hidden;
}
.shimmer-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 30%, rgba(139,92,246,0.4) 50%, rgba(0,212,170,0.4) 60%, transparent 70%);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.shimmer-border:hover::before {
  opacity: 1;
  animation: shimmer 2s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  padding: 10px 0;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: #e2e8f0;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #00d4aa);
  border-radius: 1px;
}

.navbar a:hover .brand-ciso,
.navbar a:focus-visible .brand-ciso {
  color: #00d4aa;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  transform: translateY(-2px);
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

/* ===== HERO MOCKUP ===== */
.hero-mockup-wrapper {
  perspective: 1200px;
}
.hero-mockup {
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(139, 92, 246, 0.2), 0 0 60px rgba(0, 212, 170, 0.08);
}
.hero-mockup:hover {
  transform: rotateY(-2deg) rotateX(1deg);
}
.browser-chrome {
  background: #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot-red { background: #ff5f57; }
.browser-dot-yellow { background: #ffbd2e; }
.browser-dot-green { background: #28c840; }
.browser-url {
  flex: 1;
  margin-left: 8px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.7rem;
  color: #64748b;
  font-family: 'Inter', monospace;
}

/* ===== SECTION SPACING ===== */
.section-padding {
  /* Use rem so this scales up proportionally on large screens (see large-screen media queries below) */
  padding: 6.25rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #94a3b8;
  max-width: 40rem; /* 640px at 16px base; scales proportionally on large screens */
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FEATURE CARD IMAGE ===== */
.feature-img-wrapper {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  position: relative;
}
.feature-img-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.glass-card:hover .feature-img-wrapper img {
  transform: scale(1.04);
}

/* ===== PAIN CARDS ===== */
.pain-card {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 85, 102, 0.15);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 102, 0.35);
}
.pain-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}
.pain-icon-red { background: rgba(255,85,102,0.1); color: #ff5566; }
.pain-icon-amber { background: rgba(255,170,0,0.1); color: #ffaa00; }
.pain-icon-purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }

/* ===== COMPLIANCE BADGES ===== */
.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e2e8f0;
  transition: border-color 0.3s, transform 0.2s;
}
.compliance-badge:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}
.compliance-badge .badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* ===== INTEGRATION CARDS ===== */
.integration-card {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.integration-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.35);
}
.integration-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
}

/* ===== SECURITY CARDS ===== */
.security-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s;
}
.security-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.4);
}
.security-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* ===== COUNTER STATS ===== */
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/cta-background.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #020617 0%, rgba(2,6,23,0.7) 50%, #020617 100%);
  z-index: 1;
}

/* Lightning bolt pulse */
.lightning-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.1);
  border: 2px solid rgba(0, 212, 170, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}
.lightning-pulse svg {
  width: 40px;
  height: 40px;
  color: #00d4aa;
  filter: drop-shadow(0 0 12px rgba(0, 212, 170, 0.6));
}
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.15);
    border-color: rgba(0, 212, 170, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.3), 0 0 80px rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.6);
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== CAPABILITY PILLS ===== */
.cap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #c4b5fd;
  white-space: nowrap;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(24px);
  z-index: 200;
  padding: 80px 32px 32px;
  transition: right 0.35s ease;
  border-left: 1px solid rgba(139, 92, 246, 0.15);
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== AI ENGINE DIAGRAM ===== */
.ai-engine-img {
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-padding { padding: 3.75rem 0; }
  .hero-mockup { transform: none !important; }
  .hero-mockup-wrapper { perspective: none; margin-top: 40px; }
  .stat-value { font-size: 2.2rem; }
}

/* ===== LARGE SCREEN SCALING ===== */
/*
 * On 4K / ultra-wide monitors at 100% zoom the site looks too sparse because
 * Tailwind's max-w-7xl (80rem = 1280px) leaves huge gutters on a 2560px+
 * viewport. Increasing html { font-size } scales ALL rem-based Tailwind
 * utilities proportionally (max-widths, spacing, typography) without touching
 * any HTML. Screens below 1920px are completely unaffected.
 */
@media (min-width: 1920px) {
  html {
    /* 18px base: max-w-7xl → ~1440px, still comfortable on a 1920px screen */
    font-size: 18px;
  }
}

@media (min-width: 2560px) {
  html {
    /* 21px base: max-w-7xl → ~1680px, filling ~65% of a 4K viewport */
    font-size: 21px;
  }
}

@media (min-width: 3200px) {
  html {
    /* 24px base: max-w-7xl → ~1920px, appropriate for very large 4K+ displays */
    font-size: 24px;
  }
}

/* ===== FOOTER ===== */
footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: #e2e8f0; }

/* Divider gradient */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), rgba(0,212,170,0.2), transparent);
  margin: 0 auto;
  max-width: 800px;
}

/* ===== UTILITY CLASSES (replacing inline styles) ===== */
.color-inherit { color: inherit; }
.btn-reset {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.honeypot-trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.d-none { display: none; }

/* ===== DEMO MODAL ===== */
.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.demo-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-container {
  width: 100%;
  max-width: 640px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.demo-modal-backdrop.open .demo-modal-container {
  transform: translateY(0);
}

.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.05);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 1.1rem;
}
.demo-modal-close:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #e2e8f0;
}

.demo-modal-header {
  text-align: center;
  margin-bottom: 32px;
}
.demo-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a78bfa;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.demo-modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.demo-modal-header p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.demo-form-row.single {
  grid-template-columns: 1fr;
}

.demo-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}
.demo-form-group label .required {
  color: #f87171;
  margin-left: 2px;
}
.demo-form-group input,
.demo-form-group select,
.demo-form-group textarea {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.demo-form-group input::placeholder,
.demo-form-group textarea::placeholder {
  color: #475569;
}
.demo-form-group input:focus,
.demo-form-group select:focus,
.demo-form-group textarea:focus {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.demo-form-group input.error,
.demo-form-group select.error {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}
.demo-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.demo-form-group select option {
  background: #0f172a;
  color: #e2e8f0;
}
.demo-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.demo-newsletter-section {
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0 16px;
}
.demo-newsletter-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 12px;
}
.demo-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.demo-checkbox-label input[type="checkbox"] {
  display: none;
}
.demo-checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  background: rgba(2, 6, 23, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.demo-checkbox-box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
}
.demo-checkbox-label input:checked + .demo-checkbox-box {
  background: #7c3aed;
  border-color: #7c3aed;
}
.demo-checkbox-label input:checked + .demo-checkbox-box svg {
  opacity: 1;
}

.demo-privacy-section {
  background: rgba(0, 212, 170, 0.03);
  border: 1px solid rgba(0, 212, 170, 0.12);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
}
.demo-privacy-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 212, 170, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #00d4aa;
  font-size: 1rem;
}
.demo-privacy-section p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}
.demo-privacy-section strong {
  color: #cbd5e1;
}
.demo-privacy-section a {
  color: #00d4aa;
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 170, 0.3);
}
.demo-privacy-section a:hover {
  text-decoration-color: #00d4aa;
}

.demo-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.demo-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}
.demo-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.demo-submit-btn .demo-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: demo-spin 0.6s linear infinite;
}
.demo-submit-btn.loading .demo-spinner { display: block; }
.demo-submit-btn.loading .demo-btn-text { display: none; }
@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

.demo-error-msg {
  display: none;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
}
.demo-error-msg.show { display: block; }
.demo-error-msg a {
  color: #a78bfa;
  text-decoration: underline;
}

.demo-success {
  text-align: center;
  padding: 20px 0;
}
.demo-success-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.1);
  border: 2px solid rgba(0, 212, 170, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: demo-pop 0.4s ease;
}
.demo-success-check svg {
  width: 36px;
  height: 36px;
  color: #00d4aa;
}
@keyframes demo-pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.demo-success h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.demo-success > p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 24px;
}
.demo-success-points {
  text-align: left;
  list-style: none;
  padding: 0;
  max-width: 420px;
  margin: 0 auto 28px;
}
.demo-success-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.demo-success-points li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #00d4aa;
  margin-top: 2px;
}
.demo-success-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
  color: #c4b5fd;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.demo-success-close:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
}

@media (max-width: 640px) {
  .demo-form-row { grid-template-columns: 1fr; }
  .demo-modal-container { padding: 28px 20px; }
  .demo-modal-header h2 { font-size: 1.35rem; }
}
