/* ==========================================================================
   Don Alfred - Landing Page Stylesheet (Pure White Mockup Legibility)
   ========================================================================== */

/* Design Tokens & Spec Kit AAA Color Variables */
:root {
  /* Brand Colors - Verified AAA Ratios */
  --primary-green: #25D366;
  --primary-emerald: #10B981;
  --emerald-dark: #047857;      
  --emerald-deep: #065F46;      
  --emerald-light: #ECFDF5;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --btn-text-dark: #03170D;     
  
  --navy-dark: #0F172A;        
  --navy-card: #1E293B;
  --navy-border: #334155;
  --navy-text-muted: #E2E8F0;  

  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --border-light: #CBD5E1;     
  
  --text-dark: #0F172A;
  --text-medium: #1E293B;      
  --text-muted: #334155;       
  --text-white: #FFFFFF;

  --accent-amber: #B45309;     
  --accent-blue: #1D4ED8;      
  --accent-purple: #6D28D9;    
  --accent-rose: #BE123C;      

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.2);
  --shadow-emerald: 0 16px 36px rgba(37, 211, 102, 0.3);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--navy-dark);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

p {
  color: var(--text-medium);
}

.text-center { text-align: center; }
.text-white { color: var(--text-white) !important; }

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #25D366 0%, #10B981 100%);
  color: var(--btn-text-dark);
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 42px rgba(37, 211, 102, 0.45);
  background: linear-gradient(135deg, #2ce873 0%, #059669 100%);
  color: var(--btn-text-dark);
}

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

.btn-login {
  background: var(--bg-white);
  color: var(--navy-dark);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-login:hover {
  background: var(--bg-light);
  border-color: var(--emerald-dark);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.mobile-login {
  display: none;
}

.btn-large {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-whatsapp-direct {
  background: #047857;
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
}

.btn-whatsapp-direct:hover {
  background: #065F46;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Announcement Bar - Ultra High Contrast (AAA Pass) */
.announcement-bar {
  background-color: #0F172A;
  color: #FFFFFF !important;
  padding: 0.75rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid #1E293B;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.announcement-bar p {
  color: #FFFFFF !important;
  font-weight: 500;
  margin: 0;
}

.announcement-bar p strong {
  color: #FFFFFF !important;
  font-weight: 800;
}

.badge {
  background: #25D366;
  color: #03170D !important;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.announcement-link {
  color: #25D366 !important;
  text-decoration: none;
  font-weight: 800;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-link:hover {
  color: #34D399 !important;
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 1.1rem 0;
  transition: all var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-icon-wrapper {
  transform: scale(1.08) rotate(-4deg);
}

.logo-text {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-don {
  color: var(--navy-dark);
}

.logo-alfred {
  color: var(--emerald-dark);
}

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

.nav-item {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--emerald-dark);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--navy-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 6rem;
  background: 
    radial-gradient(circle at 85% 15%, rgba(37, 211, 102, 0.14) 0%, rgba(248, 250, 252, 0) 55%),
    radial-gradient(circle at 15% 85%, rgba(15, 23, 42, 0.05) 0%, rgba(248, 250, 252, 0) 55%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--emerald-light);
  color: var(--emerald-deep);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.6rem;
  border: 1px solid rgba(4, 120, 87, 0.25);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--emerald-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(4, 120, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 1.4rem;
  letter-spacing: -0.04em;
  color: var(--navy-dark);
}

.highlight-text {
  background: linear-gradient(135deg, #047857 0%, #065F46 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-medium);
  margin-bottom: 2.2rem;
  line-height: 1.65;
  max-width: 580px;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-dark);
}

.check-icon {
  color: #047857;
  background: var(--emerald-light);
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-quick-form {
  display: flex;
  gap: 0.6rem;
  background-color: var(--bg-white);
  padding: 0.45rem;
  border-radius: var(--radius-full);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border: 2px solid var(--border-light);
  max-width: 540px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-quick-form:focus-within {
  border-color: var(--emerald-dark);
  box-shadow: 0 16px 40px rgba(4, 120, 87, 0.25);
}

.hero-quick-form input {
  flex: 1;
  border: none;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-main);
  font-size: 0.98rem;
  outline: none;
  color: var(--navy-dark);
  border-radius: var(--radius-full);
}

.hero-guarantee {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   PHONE & TABLET MOCKUPS - STRICT PURE WHITE TEXT OVERRIDE (#FFFFFF !important)
   ========================================================================== */

.phone-frame,
.demo-screen,
.demo-widget-wrapper {
  background-color: #0B141A;
  border-radius: 44px;
  color: #FFFFFF !important;
}

.phone-frame {
  width: 100%;
  max-width: 370px;
  padding: 14px;
  box-shadow: var(--shadow-lg), 0 30px 60px -15px rgba(15, 23, 42, 0.35);
  border: 5px solid #1F2937;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.8deg); }
}

.whatsapp-app-bar,
.demo-chat-header {
  background-color: #1F2C34;
  color: #FFFFFF !important;
  padding: 12px 16px;
  border-radius: 14px 14px 0 0;
}

.profile-name,
.profile-status,
.demo-bot-info strong,
.demo-bot-info small {
  color: #FFFFFF !important;
  font-weight: 700;
}

.whatsapp-actions,
.whatsapp-actions span {
  color: #FFFFFF !important;
}

.whatsapp-body,
.demo-chat-messages {
  background-color: #0B141A;
  background-image: radial-gradient(#182229 1.2px, transparent 0);
  background-size: 18px 18px;
  height: 430px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #FFFFFF !important;
}

.chat-date {
  align-self: center;
  background-color: #1F2C34;
  color: #FFFFFF !important;
  font-size: 0.76rem;
  padding: 5px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.message {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  color: #FFFFFF !important;
}

.message p,
.message strong,
.message em,
.message span,
.message div {
  color: #FFFFFF !important;
}

.msg-resident {
  align-self: flex-start;
  background-color: #1F2C34;
  border-top-left-radius: 2px;
  border: 1px solid #334155;
}

.msg-alfred {
  align-self: flex-end;
  background-color: #005C4B;
  border-top-right-radius: 2px;
  border: 1px solid #00796B;
}

.msg-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.72rem;
  color: #FFFFFF !important;
  margin-top: 6px;
  font-weight: 700;
  opacity: 0.95;
}

.whatsapp-footer {
  background-color: #1F2C34;
  padding: 10px 14px;
  border-radius: 0 0 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input-simulated {
  flex: 1;
  background-color: #2A3942;
  color: #FFFFFF !important;
  padding: 9px 16px;
  border-radius: 24px;
  font-size: 0.84rem;
  font-weight: 600;
}

.chat-input-simulated span {
  color: #FFFFFF !important;
}

.mic-button {
  width: 36px;
  height: 36px;
  background-color: #00A884;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  font-size: 0.9rem;
}

/* Simulator Scenario Buttons Override - Pure White Text */
.scenario-btn {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  background-color: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  color: #FFFFFF !important;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scenario-text strong,
.scenario-text span {
  color: #FFFFFF !important;
}

.scenario-btn.active {
  background-color: rgba(37, 211, 102, 0.22);
  border-color: #25D366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

/* Stats Section */
.stats-section {
  background-color: var(--navy-dark);
  color: var(--text-white);
  padding: 3.5rem 0;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-size: 3.2rem;
  color: var(--primary-green);
  margin-bottom: 0.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-label {
  color: #FFFFFF !important;
  font-size: 0.96rem;
  font-weight: 700;
}

/* Features Section */
.features-section {
  padding: 7rem 0;
  background-color: var(--bg-light);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 4.5rem;
}

.section-tag {
  color: var(--emerald-deep);
  background-color: var(--emerald-light);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
  border: 1px solid rgba(4, 120, 87, 0.3);
}

.tag-light {
  color: #25D366;
  background-color: rgba(37, 211, 102, 0.2);
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1.1rem;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(4, 120, 87, 0.15);
  border-color: var(--emerald-dark);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.bg-emerald { background-color: rgba(4, 120, 87, 0.14); color: var(--emerald-dark); }
.bg-navy { background-color: rgba(15, 23, 42, 0.1); color: var(--navy-dark); }
.bg-amber { background-color: rgba(180, 83, 9, 0.14); color: var(--accent-amber); }
.bg-blue { background-color: rgba(29, 78, 216, 0.14); color: var(--accent-blue); }
.bg-purple { background-color: rgba(109, 40, 217, 0.14); color: var(--accent-purple); }
.bg-rose { background-color: rgba(190, 18, 60, 0.14); color: var(--accent-rose); }

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.feature-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Demo Section */
.demo-section {
  padding: 7rem 0;
  background-color: var(--bg-white);
}

.demo-widget-wrapper {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.2rem;
  background-color: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--navy-border);
}

.demo-scenarios-selector {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.demo-screen {
  background-color: #0B141A;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 420px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 10px #25D366;
}

/* Comparison Table Section - Spec Kit Enhanced */
.comparison-section {
  padding: 7rem 0;
  background-color: var(--bg-light);
}

.comparison-table-wrapper {
  overflow-x: auto;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.98rem;
  vertical-align: middle;
}

.comparison-table tr:hover td,
.comparison-table tbody tr:hover th {
  background-color: rgba(15, 23, 42, 0.02);
}

.comparison-table tr:hover td.highlight-column {
  background-color: rgba(4, 120, 87, 0.12);
}

.comparison-table th {
  background-color: #E2E8F0;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.05rem;
  position: relative;
}

.comparison-table tbody th {
  background-color: var(--bg-white);
  font-size: 0.98rem;
}

.comparison-table th.col-feature {
  width: 32%;
}

.comparison-table th.col-traditional {
  width: 34%;
}

.comparison-table th.col-alfred {
  width: 34%;
  padding-top: 2rem;
}

.comparison-table th small {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.recommended-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #047857 0%, #10B981 100%);
  color: #FFFFFF !important;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.9rem;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.comparison-table th.highlight-column,
.comparison-table td.highlight-column {
  background-color: rgba(4, 120, 87, 0.08);
  border-left: 3px solid var(--emerald-dark);
  border-right: 3px solid var(--emerald-dark);
  color: var(--navy-dark);
}

.comparison-table th.highlight-column {
  background-color: rgba(4, 120, 87, 0.16);
  color: var(--emerald-deep);
}

.status-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: var(--emerald-light);
  color: var(--emerald-dark);
  border-radius: 50%;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.status-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: #FEE2E2;
  color: #DC2626;
  border-radius: 50%;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

/* Lead Section & Enhanced Form - Spec Kit Upgrade */
.lead-section {
  padding: 7rem 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: var(--text-white);
  position: relative;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.lead-title {
  color: #FFFFFF !important;
  font-size: 2.6rem;
  margin-bottom: 1.3rem;
}

.lead-text {
  color: #FFFFFF !important;
  font-size: 1.15rem;
  margin-bottom: 2.2rem;
}

.lead-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lead-checklist li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: #FFFFFF !important;
}

.lead-form-card {
  background-color: var(--bg-white);
  color: var(--text-dark);
  padding: 2.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-header-badge {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.trust-pill {
  background-color: var(--emerald-light);
  color: var(--emerald-deep);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(4, 120, 87, 0.25);
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: var(--navy-dark);
}

.form-subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy-dark);
}

/* Input with Prefix Icon Wrapper */
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.input-icon-wrapper input,
.input-icon-wrapper select {
  width: 100%;
  padding: 0.88rem 1.1rem 0.88rem 2.8rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--navy-dark);
  outline: none;
  transition: all var(--transition-fast);
  background-color: #FAFAFA;
}

.input-icon-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus {
  border-color: var(--emerald-dark);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.2);
}

.input-icon-wrapper:focus-within .input-icon {
  color: var(--emerald-dark);
}

.main-submit-btn:hover .arrow-btn-icon {
  transform: translateX(4px);
}

.arrow-btn-icon {
  transition: transform var(--transition-fast);
}

.form-privacy {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: #070D19;
  color: #FFFFFF !important;
  padding: 4.5rem 0 2.2rem;
  border-top: 1px solid var(--navy-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .footer-desc {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  max-width: 340px;
  color: #FFFFFF !important;
}

.footer-links h4,
.footer-contact h4 {
  color: #FFFFFF !important;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-green) !important;
}

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: #FFFFFF !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.8rem;
  font-size: 0.9rem;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-tagline {
  color: #FFFFFF !important;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--navy-dark);
  color: white !important;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--primary-green);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast span {
  color: white !important;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Accessibility Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  background: var(--navy-dark);
  color: #FFFFFF;
  font-weight: 800;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary-emerald);
  outline-offset: 3px;
}

.hero-quick-form input:focus-visible {
  outline: none; /* the wrapper shows focus via :focus-within */
}

/* Nav actions & hamburger → X */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Chat entry animation (staggered) */
.fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 { animation-delay: 0.6s; }
.delay-2 { animation-delay: 1.2s; }
.delay-3 { animation-delay: 1.8s; }

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

.typing-indicator p {
  font-style: italic;
}

/* Simulator header & scenario icons */
.demo-bot-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-bot-info > div:last-child {
  display: flex;
  flex-direction: column;
}

.demo-bot-info small {
  font-weight: 500 !important;
}

.scenario-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.scenario-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.scenario-text span {
  font-size: 0.85rem;
}

.scenario-btn:hover:not(.active) {
  border-color: #475569;
  background-color: #263449;
}

/* How It Works Section */
.steps-section {
  padding: 7rem 0 5rem;
  background-color: var(--bg-white);
}

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  counter-reset: none;
}

.step-card {
  position: relative;
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--emerald-light) 0%, var(--bg-white) 60%);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.3rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* FAQ Section */
.faq-section {
  padding: 7rem 0;
  background-color: var(--bg-white);
}

.faq-container {
  max-width: 820px;
}

.faq-section .section-header {
  margin-bottom: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--emerald-dark);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius-md);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-dark);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.3rem;
  color: var(--text-muted);
}

/* Toast variants */
.toast {
  max-width: min(420px, calc(100vw - 32px));
  flex-wrap: wrap;
}

.toast span {
  flex: 1;
}

.toast-error {
  border-left-color: #F87171;
}

.toast-action {
  color: var(--primary-green);
  font-weight: 800;
  text-decoration: underline;
  margin-left: 38px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid,
  .lead-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .demo-widget-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 1240px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .desktop-login {
    display: none;
  }

  .mobile-login {
    display: inline-flex;
    width: 100%;
    max-width: 20rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-quick-form {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .hero-quick-form input {
    background-color: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .steps-section,
  .features-section,
  .demo-section,
  .comparison-section,
  .faq-section,
  .lead-section {
    padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title,
  .lead-title {
    font-size: 1.85rem;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .nav-cta {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }

  .demo-widget-wrapper {
    padding: 1.2rem;
  }

  .lead-form-card {
    padding: 1.8rem 1.3rem;
  }

  .hero-quick-form input {
    font-size: 1rem;
  }

  /* Comparison table: horizontal scroll with sticky criteria column */
  .comparison-table {
    min-width: 680px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 1.1rem 1.1rem;
  }

  .comparison-table th.col-feature,
  .comparison-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 2px 0 6px rgba(15, 23, 42, 0.08);
  }

  .comparison-table thead th.col-feature {
    background-color: #E2E8F0;
  }

  .footer-bottom-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 420px) {
  .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
