/* DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Core Colors */
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --primary: 212 100% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --border: 214 32% 91%;
  
  /* Your Brand Colors */
  --signature-blue: #B8CEEE;
  --signature-blue-light: #d4e3f5;
  --gradient-indigo: #6366f1;
  --gradient-purple: #8B5CF6;
  --gradient-cyan: #06B6D4;
  
  /* Spacing & Effects */
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  
  /* Fonts */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  font-size: 1.0625rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-center { text-align: center; }

/* GRADIENT TEXT UTILITY */
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-indigo), var(--gradient-purple), var(--gradient-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-subtle {
  background: linear-gradient(135deg, var(--gradient-indigo), var(--gradient-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Signature Blue Accent */
.signature-accent {
  color: var(--signature-blue);
}

.signature-bg {
  background-color: var(--signature-blue);
}

/* LAYOUT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  padding-top: 90px;
}

/* HEADER */
.main-header {
  background: hsla(var(--background), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.logo-img {
  height: 70px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}

.main-nav a.active {
  color: var(--gradient-indigo);
  background: rgba(99, 102, 241, 0.1);
}

/* HERO SECTION */
.hero {
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, hsl(var(--secondary)) 0%, hsl(var(--background)) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 1.25rem;
}

.subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* HERO DEMO BOX */
.hero-demo {
  max-width: 700px;
  margin: 3rem auto 0;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.demo-header {
  background: hsl(var(--secondary));
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: hsl(var(--border));
}

.demo-dot.red { background: #ef4444; }
.demo-dot.yellow { background: #f59e0b; }
.demo-dot.green { background: #22c55e; }

.demo-content {
  padding: 2rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-placeholder {
  text-align: center;
  color: hsl(var(--muted-foreground));
}

.demo-placeholder .typing-text {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.5rem;
  background: var(--gradient-indigo);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-indigo), var(--gradient-purple));
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  background: hsl(var(--secondary));
  border-color: var(--signature-blue);
}

/* GENERIC SECTIONS */
.services-section, .schematic-section, .contact-info-section, .pricing-section, .why-section {
  padding: 6rem 0;
}

.section-divider {
  border-top: 1px solid hsl(var(--border));
}

.page-title-section {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, hsl(var(--secondary)) 0%, hsl(var(--background)) 100%);
}

.page-title-section h1 { 
  font-size: 3rem; 
  font-weight: 700; 
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 { 
  font-size: 2.5rem; 
  font-weight: 700; 
  margin-bottom: 1rem; 
}

.section-header p { 
  font-size: 1.125rem; 
  color: hsl(var(--muted-foreground)); 
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-indigo), var(--gradient-purple), var(--gradient-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card .card-number {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gradient-indigo);
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

/* PRICING SECTION */
.pricing-section {
  background: hsl(var(--secondary));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--gradient-purple);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.15);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gradient-indigo), var(--gradient-purple));
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.pricing-tier {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gradient-indigo);
  margin-bottom: 0.5rem;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-card .price-period {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--gradient-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-note {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

/* WHY US SECTION */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 1.5rem;
}

.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

/* SCHEMATIC & HOW-IT-WORKS SECTIONS */
.schematic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.schematic-text h2 { 
  font-size: 2.25rem; 
  font-weight: 700; 
  margin-bottom: 1.25rem; 
}

.schematic-text p {
  color: hsl(var(--muted-foreground));
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.schematic-text ul {
  list-style: none;
  margin-top: 1.5rem;
}

.schematic-text ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: hsl(var(--muted-foreground));
}

.schematic-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gradient-purple);
  border-radius: 50%;
}

/* IMAGE PLACEHOLDERS */
.image-placeholder {
  width: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, hsl(var(--secondary)) 0%, var(--signature-blue-light) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  padding: 2rem;
  text-align: center;
}

.image-placeholder .placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.image-placeholder .placeholder-text {
  font-family: var(--font-heading);
  font-weight: 500;
}

.image-placeholder .placeholder-suggestion {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* STEP SECTIONS */
.step-section {
  border-bottom: 1px solid hsl(var(--border));
}

.step-section:last-of-type {
  border-bottom: none;
}

.step-section.alt-layout .schematic-grid {
  grid-template-columns: 1fr 1fr;
}

.step-section.alt-layout .schematic-text {
  order: 2;
}

.schematic-text .step-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* CONTACT PAGE */
.contact-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 3rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--background));
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contact-card > p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.contact-card .email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.contact-card .email-link:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.contact-card .location-info {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0;
}

/* CTA SECTION */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--gradient-indigo), var(--gradient-purple));
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-secondary {
  background: white;
  color: var(--gradient-indigo);
  border: none;
}

.cta-section .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
.main-footer {
  background-color: hsl(var(--foreground));
  color: hsl(var(--secondary));
  padding: 3rem 0;
  margin-top: 0;
}

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

.main-footer p {
  opacity: 0.7;
}

.footer-nav a {
  color: hsl(var(--secondary));
  text-decoration: none;
  margin-left: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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

/* RESPONSIVENESS */
@media (max-width: 900px) {
  .schematic-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .step-section.alt-layout .schematic-text {
    order: 0;
  }
  
  .image-placeholder {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .schematic-text h2, .section-header h2 {
    font-size: 1.875rem;
  }
  
  .pricing-grid, .services-grid {
    grid-template-columns: 1fr;
  }
  
  .main-footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-nav a {
    margin: 0 0.75rem;
  }
}