/* CSS reset and variables */
* { box-sizing: border-box; }
html { 
  -webkit-text-size-adjust: 100%; 
  scroll-behavior: smooth;
}
:root {
  /* Dark theme (default) */
  --bg-1: #101736;
  --bg-2: #090f1d;
  --bg-3: #080c18;
  --surface: #11162a;
  --surface-2: #0e1426;
  --text: #e6ebff;
  --muted: #a7b1d6;
  --primary: #2f54eb;
  --primary-600: #2346dc;
  --accent: #00e0b8;
  --card: #12172b;
  --border: #1a2140;
  --ring: #3853ff55;
  --radius: 14px;
  --line-dim: #1d2750;
  --header-bg: linear-gradient(to bottom, rgba(9, 14, 30, 0.85), rgba(9, 14, 30, 0.55));
  --footer-bg: #090f1d;
  --input-bg: #0c1228;
  --input-border: #26305a;
}

@media (prefers-color-scheme: light) {
  :root {
    /* Light theme (system preference) */
    --bg-1: #f8faff;
    --bg-2: #f3f6fd;
    --bg-3: #eef2fb;
    --surface: #ffffff;
    --surface-2: #f8faff;
    --text: #0b1020;
    --muted: #4a5678;
    --primary: #2f54eb;
    --primary-600: #2346dc;
    --accent: #00a68e;
    --card: #ffffff;
    --border: #e5e9f5;
    --ring: #4f6bff44;
    --line-dim: #e1e7fb;
    --header-bg: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
    --footer-bg: #f7f9ff;
    --input-bg: #ffffff;
    --input-border: #cdd6ee;
  }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 1200px at 75% 0%, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  line-height: 1.6;
  color-scheme: dark light;
}

img, svg { display: block; max-width: 100%; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* A11y helpers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus { left: 12px; top: 12px; background: var(--primary); color: white; padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(20px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(47, 84, 235, 0.05) 0%, rgba(0, 224, 184, 0.02) 100%);
  pointer-events: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
  z-index: 1;
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 15px rgba(47, 84, 235, 0.3);
  transition: all 0.3s ease;
}

.logo-icon img {
  filter: brightness(0) invert(1);
  width: 24px;
  height: 24px;
}

.logo:hover .logo-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(47, 84, 235, 0.4);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
}

.header-tagline {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 52px;
  opacity: 0.8;
}

/* Hamburger */
.hamburger { 
  display: none;
  flex-direction: column;
  width: 44px; 
  height: 44px; 
  align-items: center; 
  justify-content: center; 
  border-radius: 12px; 
  border: 1px solid var(--border); 
  background: var(--surface-2); 
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.hamburger .bar { 
  width: 20px; 
  height: 2px; 
  background: var(--text); 
  display: block;
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.primary-nav { 
  display: flex;
  align-items: center;
}

.primary-nav .nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0; 
  margin: 0;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-cta {
  margin-left: 8px;
}

.nav-cta .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Mobile menu behavior */
@media (max-width: 1024px) {
  .header-tagline {
    display: none;
  }
  
  .hamburger { 
    display: flex; 
  }
  
  .primary-nav { 
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--surface-2);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    padding: 80px 24px 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
  
  .primary-nav .nav-list { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 8px;
    height: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .nav-cta {
    margin: 24px 0 0;
  }
  
  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 16px;
  }
  
  #nav-toggle:checked ~ .primary-nav { 
    transform: translateX(0); 
  }
  
  /* Backdrop */
  #nav-toggle:checked ~ .primary-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

/* Hide hamburger on wide screens */
@media (min-width: 1025px) {
  .hamburger { display: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #2b386b; }

/* Hero */
.hero { padding: clamp(60px, 8vw, 100px) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-copy h1 { 
  line-height: 1.2; 
  font-size: clamp(24px, 5.4vw, 48px); 
  margin: 0; 
}

.lead { 
  color: var(--muted); 
  font-size: clamp(15px, 2.2vw, 18px); 
  max-width: 60ch; 
  margin: 0; 
  line-height: 1.6; 
}

.hero-actions { 
  display: flex; 
  gap: 16px; 
  margin: 0; 
  flex-wrap: wrap; 
}
.hero-trust { display: grid; grid-template-columns: 1fr; gap: 8px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
@media (min-width: 680px) { .hero-trust { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Mobile spacing adjustments */
@media (max-width: 768px) {
  .hero {
    padding: clamp(40px, 6vw, 60px) 0;
  }
  
  .hero-grid {
    gap: 32px;
  }
  
  .hero-copy {
    gap: 20px;
  }
  
  .hero-actions {
    gap: 12px;
  }
}

.hero-visual { display: none; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-visual { display: block; }
}

.visual-card {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #131a36, #0b1022);
  border: 1px solid var(--border);
  padding: 18px;
  min-height: 280px;
  box-shadow: 0 16px 35px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.35);
}
.visual-badge {
  position: absolute; right: 14px; top: 14px;
  background: linear-gradient(135deg, var(--accent), #5be6ff);
  color: #06121a; font-weight: 800; border-radius: 10px; padding: 6px 10px; box-shadow: 0 8px 28px #00e0b84a;
}
.visual-lines { display: grid; gap: 10px; margin-top: 24px; }
.visual-lines span { display: block; height: 10px; background: var(--line-dim); border-radius: 8px; }
.visual-lines span:nth-child(2) { width: 85%; }
.visual-lines span:nth-child(3) { width: 70%; }
.visual-lines span:nth-child(4) { width: 60%; }
.visual-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; color: var(--muted); }

/* Sections */
.section { padding: clamp(40px, 5vw, 60px) 0; }
.section-compact { padding: clamp(40px, 5vw, 60px) 0; }
.section-alt { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); margin-top: -6px; }

.grid { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card, .feature, .price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.35); }
.card h3, .feature h3 { margin-top: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: step; padding-left: 0; }
.steps > li { list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: -10px; top: -10px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--primary); color: #fff; border-radius: 50%; box-shadow: 0 10px 25px rgba(0,0,0,0.25); font-weight: 700; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Testimonials */
.testimonials { display: grid; gap: 16px; grid-template-columns: 1fr; }
.quote { margin: 0; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.35); color: var(--muted); }
.quote blockquote { margin: 0 0 8px; color: var(--text); }

/* Pricing */
.pricing { grid-template-columns: 1fr; }
.price-card { 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
}
.price-card header { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; }
.price-card .badge { background: #1b2552; color: var(--accent); font-weight: 700; padding: 4px 8px; border-radius: 999px; border: 1px solid #24306a; }
@media (prefers-color-scheme: light) { .price-card .badge { background: #e9efff; border-color: #ced8fb; } }
.price-card .price { margin: 6px 0 0; color: var(--muted); }
.price-card .price span { font-size: 28px; color: var(--text); font-weight: 800; }
.price-list { margin: 14px 0; padding: 0 0 0 18px; color: var(--muted); flex-grow: 1; }
.price-card .btn { 
  margin-top: auto; 
  align-self: flex-end; 
  width: fit-content; 
}

/* Primary color glow border for price cards */
.price-card {
  border: 2px solid #2f54eb !important;
  box-shadow: 
    0 0 15px rgba(47, 84, 235, 0.2),
    0 0 30px rgba(47, 84, 235, 0.15),
    0 10px 25px rgba(0,0,0,0.35), 
    0 2px 8px rgba(0,0,0,0.35) !important;
  transition: all 0.3s ease;
}

.price-card:hover {
  box-shadow: 
    0 0 20px rgba(47, 84, 235, 0.3),
    0 0 40px rgba(47, 84, 235, 0.2),
    0 15px 35px rgba(0,0,0,0.45), 
    0 4px 12px rgba(0,0,0,0.35) !important;
  transform: translateY(-2px);
}

.price-card.popular { 
  outline: 2px solid var(--primary); 
  box-shadow: 
    0 0 18px rgba(47, 84, 235, 0.25),
    0 0 35px rgba(47, 84, 235, 0.18),
    0 0 0 6px var(--ring), 
    0 16px 35px rgba(0,0,0,0.45), 
    0 4px 12px rgba(0,0,0,0.35) !important; 
}

/* Muted green buttons inside price cards */
.price-card .btn {
  background: #16a34a !important;
  color: white !important;
  border-color: #16a34a !important;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.25) !important;
  transition: all 0.3s ease;
}

.price-card .btn:hover {
  background: #15803d !important;
  border-color: #15803d !important;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3) !important;
  transform: translateY(-1px);
}

.price-card .btn-ghost {
  background: #16a34a !important;
  color: white !important;
  border-color: #16a34a !important;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.25) !important;
}

.price-card .btn-ghost:hover {
  background: #15803d !important;
  color: white !important;
  border-color: #15803d !important;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3) !important;
}

@media (min-width: 960px) { 
  .pricing { 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    align-items: stretch;
  }
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] { outline: 1px solid #283468; }

/* CTA */
.section-cta .container { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  min-height: 200px;
}

/* Phone Call Card */
.phone-call-card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 32px; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.35);
  max-width: 500px;
  width: 100%;
}

.phone-call-button {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.phone-call-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(47, 84, 235, 0.2);
  border-color: var(--primary);
}

.phone-icon-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  border-radius: 16px;
  color: white;
  box-shadow: 0 6px 20px rgba(47, 84, 235, 0.4);
  flex-shrink: 0;
}

.phone-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.phone-number-large {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.phone-description {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.copy-button-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-button-large:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.copy-button-large svg {
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .phone-call-card {
    padding: 24px;
  }
  
  .phone-call-button {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  
  .phone-icon-large {
    width: 56px;
    height: 56px;
  }
  
  .phone-number-large {
    font-size: 20px;
  }
}

/* Legacy form styles (kept for reference) */
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.35); }
.form-row { display: grid; gap: 6px; margin-bottom: 12px; }
input, select, textarea { width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); box-shadow: 0 0 0 6px var(--ring); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  background: var(--footer-bg); 
  padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 40px);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}

.footer-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.contact-item:hover {
  color: var(--text);
}

.contact-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}

.footer-column h4 {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 0.2px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--border);
}

.footer-copyright {
  color: var(--muted);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--text);
}

/* Desktop layout */
@media (min-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-contact {
    flex-direction: row;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .footer-main {
    grid-template-columns: 1.2fr 1.8fr;
    align-items: start;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .footer-main {
    gap: 24px;
  }
  
  .footer-links {
    gap: 20px;
  }
  
  .footer-column h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .footer-column a {
    font-size: 14px;
  }
  
  .footer-legal {
    gap: 16px;
  }
  
  .footer-legal a {
    font-size: 13px;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Misc */
.muted { color: var(--muted); } 
