@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

/* ==========================================
   DESIGN TOKENS & VARIABLES
   ========================================== */
:root {
  --color-bg-dark: #070b13; /* Deep midnight navy */
  --color-bg-navy: #0b1224; /* Slate navy */
  --color-bg-card: #131c31; /* Card slate navy */
  --color-bg-card-hover: #1a2542; /* Card hover */
  
  --color-primary: #ff6a00; /* Safety Orange */
  --color-primary-hover: #e05c00;
  --color-primary-light: rgba(255, 106, 0, 0.12);
  --color-primary-glow: rgba(255, 106, 0, 0.45);
  
  --color-accent: #ef4444; /* Safety Red as sub-accent */
  --color-accent-light: rgba(239, 68, 68, 0.1);
  
  --color-text-heading: #f8fafc;
  --color-text-main: #94a3b8; /* Slate Gray */
  --color-text-muted: #64748b;
  --color-text-white: #ffffff;
  
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(255, 106, 0, 0.25);
  
  --color-success: #10b981;
  --color-success-light: rgba(16, 185, 129, 0.12);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-orange: 0 0 25px rgba(255, 106, 0, 0.3);
  --shadow-orange-glow: 0 0 40px rgba(255, 106, 0, 0.5);
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   GLOBAL RESET & STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-bg-dark);
}

.section-navy {
  background-color: var(--color-bg-navy);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.text-center { text-align: center; }
.text-orange { color: var(--color-primary); }
.text-red { color: var(--color-accent); }
.text-white { color: var(--color-text-white); }
.text-muted { color: var(--color-text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text-heading);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  border-radius: 6px;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(255, 106, 0, 0.2);
}

.badge-red {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.section-header h2 {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(7, 11, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.header-scrolled {
  padding: 0.4rem 0;
  background-color: rgba(7, 11, 19, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--transition-fast);
}

.header-scrolled .nav-container {
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-text-white);
  letter-spacing: -0.8px;
}

.logo span {
  color: var(--color-primary);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-text-white);
}

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

.nav-actions {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  padding-top: 11rem;
  padding-bottom: 7.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 90vh;
}

.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background-color: var(--color-primary);
  top: -120px;
  right: -50px;
}

.hero-glow-2 {
  width: 450px;
  height: 450px;
  background-color: var(--color-accent);
  bottom: -80px;
  left: -120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -1.2px;
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(to right, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .accent-text {
  background: linear-gradient(to right, #ff6a00, #ff8b38);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.8rem;
  color: var(--color-text-main);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.2rem;
  padding: 1.3rem 2rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-heading);
}

.trust-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ==========================================
   PHONE MOCKUP & GRAPHIC (HERO)
   ========================================== */
.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup-wrapper {
  position: relative;
  z-index: 2;
}

.phone-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;
  height: 105%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.phone-mockup {
  width: 320px;
  height: 560px;
  border-radius: 40px;
  background-color: #0d1222;
  border: 9px solid #334155;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Phone Screen Header */
.phone-header {
  padding: 1.25rem 1rem 0.85rem 1rem;
  background-color: #131a31;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  border: 1px solid rgba(255, 106, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.8rem;
}

.phone-header-info {
  flex: 1;
}

.phone-header-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.phone-header-status {
  font-size: 0.72rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-success);
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.phone-body {
  flex: 1;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  background: radial-gradient(circle at bottom, rgba(255, 106, 0, 0.03), transparent);
}

/* Chat Dialogues */
.bubble {
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  position: relative;
  animation: slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bubble-left {
  background-color: #1e293b;
  color: #f1f5f9;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}

.bubble-right {
  background-color: var(--color-primary-light);
  color: var(--color-text-heading);
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}

.bubble-transfer {
  background-color: var(--color-success-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--color-text-heading);
  align-self: center;
  text-align: center;
  max-width: 95%;
  border-radius: 10px;
}

.bubble-delay-1 { animation-delay: 0.5s; }
.bubble-delay-2 { animation-delay: 2.2s; }
.bubble-delay-3 { animation-delay: 4.2s; }
.bubble-delay-4 { animation-delay: 6s; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Phone Screen Footer status */
.phone-footer {
  padding: 0.85rem;
  background-color: #131a31;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.phone-call-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connector line */
.how-grid::after {
  content: '';
  position: absolute;
  top: 55px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--color-primary) 0%, 
    #ff953f 33%,
    var(--color-accent) 66%, 
    var(--color-success) 100%
  );
  z-index: 0;
  opacity: 0.12;
}

.how-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem 1.8rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.how-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 0, 0.3);
  background-color: var(--color-bg-card-hover);
  box-shadow: var(--shadow-md);
}

.how-step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-bg-dark);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text-heading);
  margin-bottom: 1.8rem;
  z-index: 2;
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.2);
}

.how-card:nth-child(2) .how-step-num { border-color: #ff953f; box-shadow: 0 0 15px rgba(255, 149, 63, 0.2); }
.how-card:nth-child(3) .how-step-num { border-color: var(--color-accent); box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
.how-card:nth-child(4) .how-step-num { border-color: var(--color-success); box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }

.how-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.how-card p {
  font-size: 0.98rem;
  color: var(--color-text-main);
  line-height: 1.5;
  margin-top: auto;
}

/* ==========================================
   MISSED CALL COST CALCULATOR
   ========================================== */
.calc-container {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.calc-inputs {
  padding: 3.8rem;
  border-right: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.005);
}

.calc-outputs {
  padding: 3.8rem;
  background-color: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-input-group {
  margin-bottom: 2.2rem;
}

.calc-input-group:last-child {
  margin-bottom: 0;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.calc-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-heading);
}

.calc-value-badge {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
}

/* Custom styled ranges */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #1e293b;
  outline: none;
  transition: background var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.6);
  border: 2px solid var(--color-text-heading);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--color-text-white);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.8);
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.6);
  border: 2px solid var(--color-text-heading);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: var(--color-text-white);
}

/* Outputs Details */
.calc-outputs-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.roi-showcase {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.roi-val {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary);
  text-shadow: 0 0 30px rgba(255, 106, 0, 0.25);
  transition: transform 0.25s ease;
}

.roi-val.updating {
  animation: pulse-update 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roi-lbl {
  font-size: 0.82rem;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-heading);
  margin-top: 0.8rem;
}

.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.98rem;
  color: var(--color-text-main);
}

.breakdown-row span:last-child {
  font-weight: 600;
  color: var(--color-text-heading);
}

.breakdown-subtext {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* Animation for updating values */
@keyframes pulse-update {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: var(--color-text-white); text-shadow: 0 0 40px rgba(255, 106, 0, 0.5); }
  100% { transform: scale(1); }
}

/* ==========================================
   WHY AI AGENT BEATS VOICEMAIL
   ========================================== */
.why-ai-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 5rem;
}

.why-ai-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.bullet-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.bullet-list svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.stat-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 2.2rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-primary);
}

.stat-card-red::before {
  background-color: var(--color-accent);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-size: 1.05rem;
  color: var(--color-text-heading);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--color-text-main);
  line-height: 1.4;
}

/* Comparison Box Styles */
.comparison-box {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comp-header {
  background-color: rgba(255, 255, 255, 0.015);
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--color-text-heading);
  font-size: 1.1rem;
}

.comp-header svg {
  color: var(--color-primary);
}

.comp-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comp-row-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  color: var(--color-text-heading);
}

.comp-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.bar-roofify {
  background-color: var(--color-primary-light);
  border: 1px solid rgba(255, 106, 0, 0.25);
  color: var(--color-text-white);
  width: 100%;
}

.bar-industry {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  width: 38%;
}

.bar-industry-fail {
  width: 18%;
  background-color: var(--color-accent-light);
  border-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 4rem 3rem;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 106, 0, 0.25);
}

.pricing-card.popular {
  border-color: var(--color-primary);
  background: radial-gradient(circle at top right, rgba(255, 106, 0, 0.06), var(--color-bg-card) 65%);
  box-shadow: 0 15px 45px -10px rgba(255, 106, 0, 0.2);
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 2.2rem;
  transform: translateY(-50%);
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3);
}

.pricing-name {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.pricing-desc {
  font-size: 0.98rem;
  color: var(--color-text-main);
  margin-bottom: 2.2rem;
  line-height: 1.5;
  min-height: 48px;
}

.pricing-price-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 2.5rem;
}

.pricing-currency {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-heading);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-text-heading);
  line-height: 1;
}

.pricing-period {
  font-size: 1.05rem;
  color: var(--color-text-main);
  margin-left: 0.5rem;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 3.2rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--color-text-heading);
}

.pricing-features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Guarantee strip */
.guarantee-box {
  max-width: 960px;
  margin: 4rem auto 0 auto;
  background-color: rgba(255, 106, 0, 0.04);
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 18px;
  padding: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.guarantee-icon {
  background-color: var(--color-primary);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-white);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.35);
}

.guarantee-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.guarantee-content p {
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

/* ==========================================
   FINAL CTA / CONTACT FORM
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5.5rem;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 2.8rem;
  color: var(--color-text-main);
}

.contact-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.c-stat-item {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.c-stat-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.c-stat-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--color-text-heading);
}

.c-stat-text p {
  font-size: 0.92rem;
  color: var(--color-text-main);
  margin-bottom: 0;
}

/* Form Styling */
.form-box {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 4rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

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

.form-group {
  margin-bottom: 1.6rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.6rem;
  color: var(--color-text-heading);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background-color: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-heading);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.18);
}

/* Rich Modal Success State */
.form-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 11, 19, 0.96);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-success-overlay.active {
  display: flex;
  opacity: 1;
}

.success-card {
  background-color: var(--color-bg-card);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(16, 185, 129, 0.2);
  padding: 4.5rem 3.5rem;
  border-radius: 24px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  transform: translateY(25px);
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-overlay.active .success-card {
  transform: translateY(0);
}

.success-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-color: var(--color-success-light);
  border: 2px solid var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.2rem auto;
  color: var(--color-success);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.success-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.20rem;
  font-weight: 800;
}

.success-card p {
  color: var(--color-text-main);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background-color: #04070d;
  border-top: 1px solid var(--color-border);
  padding: 4.5rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2.2rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.footer-links a:hover {
  color: var(--color-text-white);
}

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

/* ==========================================
   ANIMATIONS & SCROLL REVEAL
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  .section-header h2 {
    font-size: 2.3rem;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust-strip {
    justify-content: center;
  }
  .hero-graphic {
    margin-top: 1rem;
  }
  .why-ai-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .calc-container {
    grid-template-columns: 1fr;
  }
  .calc-inputs {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 3rem;
  }
  .calc-outputs {
    padding: 3rem;
  }
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-grid::after {
    display: none;
  }
  .pricing-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  .section-header h2 {
    font-size: 2.1rem;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 0;
    transform: translateY(-130%);
    transition: transform var(--transition-normal);
    z-index: 99;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 1rem 0;
  }
  .nav-actions {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .form-box {
    padding: 2.8rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-box {
    padding: 2rem 1.5rem;
  }
  .calc-inputs, .calc-outputs {
    padding: 2rem 1.25rem;
  }
  .pricing-card {
    padding: 3rem 1.8rem;
  }
  .guarantee-box {
    flex-direction: column;
    text-align: center;
    padding: 1.8rem;
  }
}

/* ==========================================
   DEMO MODAL STYLES
   ========================================== */
.demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 11, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.demo-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.demo-modal-card {
  background-color: var(--color-bg-card);
  border: 1px solid rgba(255, 106, 0, 0.25);
  box-shadow: var(--shadow-lg), var(--shadow-orange-glow);
  border-radius: 24px;
  width: 95%;
  max-width: 500px;
  height: 85vh;
  max-height: 750px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform var(--transition-normal);
}

.demo-modal-overlay.active .demo-modal-card {
  transform: translateY(0);
}

.demo-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-heading);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.demo-modal-close:hover {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  border-color: var(--color-accent);
  transform: rotate(90deg);
}

.demo-modal-header {
  padding: 1.8rem 2.2rem 1.2rem 2.2rem;
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(7, 11, 19, 0.2);
}

.demo-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.demo-header-title h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.demo-header-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-main);
}

.demo-modal-body {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d1222;
  position: relative;
}

/* Pre-launch card (replaces old iframe) */
.demo-prelaunch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  width: 100%;
}

/* Animated waveform */
.demo-waveform {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
}

.wv-bar {
  display: block;
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-accent) 0%, #ff9a44 100%);
  animation: waveform 1.2s ease-in-out infinite;
}

.wv-bar:nth-child(1) { height: 20px; animation-delay: 0.0s; }
.wv-bar:nth-child(2) { height: 34px; animation-delay: 0.1s; }
.wv-bar:nth-child(3) { height: 48px; animation-delay: 0.2s; }
.wv-bar:nth-child(4) { height: 52px; animation-delay: 0.3s; }
.wv-bar:nth-child(5) { height: 40px; animation-delay: 0.2s; }
.wv-bar:nth-child(6) { height: 28px; animation-delay: 0.1s; }
.wv-bar:nth-child(7) { height: 16px; animation-delay: 0.0s; }

@keyframes waveform {
  0%, 100% { transform: scaleY(1);   opacity: 0.7; }
  50%       { transform: scaleY(1.5); opacity: 1;   }
}

.demo-prelaunch-text {
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.6;
}

.demo-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
}

.demo-launch-btn:hover svg {
  animation: pulse-icon 0.6s ease infinite alternate;
}

@keyframes pulse-icon {
  from { transform: scale(1);    opacity: 1; }
  to   { transform: scale(1.15); opacity: 0.85; }
}

.demo-prelaunch-hint {
  font-size: 0.78rem;
  color: var(--color-text-main);
  opacity: 0.6;
}

/* Shrink modal height since we no longer need iframe space */
.demo-modal-card {
  max-height: 480px;
  height: auto;
}

@media (max-width: 480px) {
  .demo-modal-card {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
  }
  .demo-modal-header {
    padding: 1.25rem 1.5rem 0.85rem 1.5rem;
  }
  .demo-modal-close {
    top: 1rem;
    right: 1rem;
  }
}
