/* ============================================
   BerwynAI - Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --primary-medium: #0f3460;
  --accent: #4361ee;
  --accent-light: #6b83f2;
  --accent-dark: #3451d1;
  --cta: #ff6b35;
  --cta-hover: #e85a2a;
  --cta-light: rgba(255, 107, 53, 0.1);
  --success: #06d6a0;
  --warning: #ffd166;
  --danger: #ef476f;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --medium-gray: #adb5bd;
  --dark-gray: #495057;
  --text-primary: #1a1a2e;
  --text-secondary: #495057;
  --text-light: #6c757d;
  --text-on-dark: #e9ecef;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(67, 97, 238, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

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

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

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

a:hover { color: var(--accent-dark); }

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

ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--cta-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(67, 97, 238, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* --- Section Utilities --- */
.section {
  padding: var(--section-padding);
}

.section-dark {
  background: var(--primary);
  color: var(--text-on-dark);
}

.section-light {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--cta-light);
  color: var(--cta);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-dark .section-header .badge {
  background: rgba(67, 97, 238, 0.2);
  color: var(--accent-light);
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-dark .section-header p {
  color: var(--medium-gray);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.nav-logo:hover { color: var(--white); }

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.nav-cta {
  padding: 10px 24px !important;
  background: var(--cta) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--cta-hover) !important;
  transform: translateY(-1px);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-medium) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.hero-bg .orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-bg .orb-2 {
  width: 400px;
  height: 400px;
  background: var(--cta);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
}

.hero-bg .orb-3 {
  width: 300px;
  height: 300px;
  background: var(--success);
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

/* Grid pattern overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(67, 97, 238, 0.15);
  border: 1px solid rgba(67, 97, 238, 0.3);
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--cta), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-bottom: 36px;
  max-width: 560px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

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

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   PROBLEM / PAIN SECTION
   ============================================ */
.problems {
  background: var(--off-white);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-base);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(67, 97, 238, 0.2);
}

.problem-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.problem-icon.red {
  background: rgba(239, 71, 111, 0.1);
  color: var(--danger);
}

.problem-icon.orange {
  background: rgba(255, 107, 53, 0.1);
  color: var(--cta);
}

.problem-icon.yellow {
  background: rgba(255, 209, 102, 0.1);
  color: #e6a800;
}

.problem-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.urgency-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-medium));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--white);
}

.urgency-banner p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.urgency-banner strong {
  color: var(--cta);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card.online::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.service-card.onsite::before {
  background: linear-gradient(90deg, var(--cta), var(--warning));
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card .service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.service-card.online .service-icon {
  background: rgba(67, 97, 238, 0.1);
  color: var(--accent);
}

.service-card.onsite .service-icon {
  background: rgba(255, 107, 53, 0.1);
  color: var(--cta);
}

.service-card .service-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.service-card.online .service-label {
  background: rgba(67, 97, 238, 0.1);
  color: var(--accent);
}

.service-card.onsite .service-label {
  background: rgba(255, 107, 53, 0.1);
  color: var(--cta);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.service-card > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.service-features {
  margin-bottom: 32px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card.online .service-features li svg {
  color: var(--accent);
}

.service-card.onsite .service-features li svg {
  color: var(--cta);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--primary);
  color: var(--white);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step:nth-child(1) .step-number {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
}

.step:nth-child(2) .step-number {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--white);
}

.step:nth-child(3) .step-number {
  background: linear-gradient(135deg, var(--cta), var(--cta-hover));
  color: var(--white);
}

.step h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.step p {
  color: var(--medium-gray);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   SERVICE AREA
   ============================================ */
.service-area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.area-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-base);
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.area-card .area-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

.area-card h3 {
  margin-bottom: 8px;
}

.area-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.area-note {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.area-note strong {
  color: var(--accent);
}

/* ============================================
   ABOUT / TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-base);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: block;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.team-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.credential-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.team-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.team-social a:hover {
  color: var(--accent-dark);
}

.team-partnership {
  background: linear-gradient(135deg, var(--primary), var(--primary-medium));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--white);
}

.team-partnership p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--medium-gray);
}

.team-partnership strong {
  color: var(--white);
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card .plan-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing-card .plan-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-card .plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-card .plan-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-gray);
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--success);
  margin-top: 3px;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-medium) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-section .hero-bg {
  opacity: 0.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--medium-gray);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(67, 97, 238, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 4px;
  color: var(--white);
}

.contact-item p,
.contact-item a {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--accent-light);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.contact-form .btn {
  width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.form-success svg {
  color: var(--success);
  margin-bottom: 16px;
}

.form-success h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--medium-gray);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0d0d1a;
  color: var(--medium-gray);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: var(--medium-gray);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--medium-gray);
}

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

/* ============================================
   FLOATING CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  animation: fadeInUp 0.5s ease 2s both;
}

.floating-cta .btn {
  box-shadow: var(--shadow-xl);
  padding: 16px 28px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
}

.floating-cta .btn:hover {
  transform: translateY(-3px) scale(1.02);
}

/* ============================================
   ASSESSMENT PAGE
   ============================================ */
.assessment-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
}

.assessment-page .hero-bg {
  opacity: 0.5;
}

.assessment-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  position: relative;
  z-index: 1;
}

.assessment-header {
  text-align: center;
  margin-bottom: 40px;
}

.assessment-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.assessment-header p {
  color: var(--medium-gray);
  font-size: 1.05rem;
}

/* Progress Bar */
.progress-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  height: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  border-radius: 50px;
  transition: width 0.5s ease;
}

.progress-text {
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

/* Wizard Card */
.wizard-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-step h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.wizard-step .step-desc {
  color: var(--medium-gray);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Quiz Form Elements */
.quiz-group {
  margin-bottom: 24px;
}

.quiz-group label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.quiz-group select,
.quiz-group input[type="text"],
.quiz-group input[type="email"],
.quiz-group input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.quiz-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.quiz-group select option {
  background: var(--primary);
  color: var(--white);
}

.quiz-group input:focus,
.quiz-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.quiz-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Radio & Checkbox Options */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(67, 97, 238, 0.4);
}

.option-item.selected {
  background: rgba(67, 97, 238, 0.15);
  border-color: var(--accent);
}

.option-item input {
  display: none;
}

.option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.option-item.checkbox .option-check {
  border-radius: 6px;
}

.option-item.selected .option-check {
  background: var(--accent);
  border-color: var(--accent);
}

.option-check svg {
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.option-item.selected .option-check svg {
  opacity: 1;
}

.option-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* Range Slider */
.range-container {
  padding: 8px 0;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.4);
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.4);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--medium-gray);
}

.range-value {
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-light);
}

/* Wizard Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  gap: 16px;
}

.wizard-nav .btn {
  flex: 1;
}

.btn-back {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Results */
.results-container {
  display: none;
}

.results-container.show {
  display: block;
  animation: fadeIn 0.6s ease;
}

.score-gauge {
  text-align: center;
  margin-bottom: 40px;
}

.gauge-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) 0deg,
    var(--accent) calc(var(--score) * 3.6deg),
    rgba(255, 255, 255, 0.1) calc(var(--score) * 3.6deg),
    rgba(255, 255, 255, 0.1) 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
}

.gauge-circle::before {
  content: '';
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
}

.gauge-score {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
}

.gauge-score span {
  font-size: 1.2rem;
  color: var(--medium-gray);
}

.score-label {
  font-size: 1.1rem;
  color: var(--medium-gray);
}

.results-section {
  margin-bottom: 32px;
}

.results-section h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.recommendation-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
}

.recommendation-card h4 {
  color: var(--white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommendation-card p {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.results-cta {
  text-align: center;
  margin-top: 40px;
}

.results-cta p {
  color: var(--medium-gray);
  margin-bottom: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    transition: right var(--transition-base);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat .stat-number {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .problems-grid,
  .services-grid,
  .steps-container,
  .service-area-grid,
  .team-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .steps-container::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .wizard-card {
    padding: 32px 24px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
  }

  .floating-cta .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-stat .stat-number {
    font-size: 1.5rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .urgency-banner {
    padding: 24px;
  }

  .urgency-banner p {
    font-size: 1rem;
  }
}
