/* Remove nav border for seamless look */
.standard-nav {
  border-bottom: none;
}

/* TRUE 100vh Hero Section Layout */
.hero {
  height: calc(100vh - 65px); /* Forces exact 100vh minus navbar */
  min-height: 600px; /* Safety net for very small screens */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.hero-content-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-text-content {
  text-align: left;
  z-index: 2; /* Keep above image shadow */
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
}

.tagline ion-icon {
  color: #ffb703;
  font-size: 1.1rem;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn-large {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
}

/* ---- MASSIVE OUT-OF-BOUNDS HERO IMAGE TRICK ---- */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 600px; 
  display: flex;
  align-items: center;
}

.hero-image-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  width: 180%; /* MASSIVE width to bleed far off the screen */
  transform: translateY(-50%) translateX(5%);
  border-radius: 12px;
  overflow: hidden;
}

/* Perfect inner shadow overlay that matches the page background */
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -1px; /* Eliminates thin borders */
  box-shadow: 
    inset 150px 0 100px -20px var(--bg),  /* Massive fade Left */
    inset 0 100px 100px -20px var(--bg),  /* Fade Top */
    inset 0 -100px 100px -20px var(--bg); /* Fade Bottom */
  pointer-events: none;
}

/* Specificity fix to ensure only ONE image shows depending on the theme */
.hero-image-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.hero-image-wrapper img.hero-image-light { display: block; }
.hero-image-wrapper img.hero-image-dark { display: none; }

[data-theme="dark"] .hero-image-wrapper img.hero-image-light { display: none; }
[data-theme="dark"] .hero-image-wrapper img.hero-image-dark { display: block; }

/* Stats Section (Seamless) */
.stats-banner {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  padding: 40px 20px;
  background: var(--bg);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-item span { font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 5px; }
.stat-item h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.5px; }

/* Common Sections */
.section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  letter-spacing: -1px;
  font-weight: 600;
}

/* Enhanced Steps with Connecting Line */
.steps-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.steps-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background-image: linear-gradient(to right, var(--border) 50%, transparent 50%);
  background-size: 15px 2px;
  z-index: 0;
  transform: translateY(-50%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.step-card {
  position: relative;
  padding: 40px 30px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.step-num {
  position: absolute; 
  top: -20px; 
  left: 50%; 
  transform: translateX(-50%);
  width: 40px; 
  height: 40px;
  background: var(--primary); 
  color: var(--primary-invert);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 600; font-size: 1.2rem;
  border: 4px solid var(--bg);
}

.step-card h3 { text-align: center; font-size: 1.2rem; margin-bottom: 12px; font-weight: 600; }
.step-card p { text-align: center; color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* Audience Grid (Who is it for) */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.audience-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.audience-card:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}
.audience-card ion-icon {
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 15px;
}
.audience-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.audience-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FLATTER & SIMPLER CODE SHOWCASE */
.code-showcase {
  max-width: 750px;
  margin: 0 auto;
  background: #111111; /* Simpler dark background */
  overflow: hidden;
  border: 1px solid #333;
}
.code-header {
  background: #1a1a1a; /* Flat flat header */
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}
.mac-dots {
  display: flex;
  gap: 6px;
}
.mac-dots .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.code-header .filename { 
  margin-left: 15px; /* Left Aligned */
  color: #aaa; 
  font-size: 0.85rem; 
  font-family: var(--font-code); 
}
.code-showcase pre { 
  margin: 0; 
  padding: 20px; 
  overflow-x: auto; 
  background: transparent; 
  border: none;
  font-weight: 300 !important;
}
.code-showcase code { 
  color: #e0e0e0; 
  font-family: var(--font-code); 
  font-size: 0.9rem; 
  line-height: 1.6; 
  border: none; 
  background: transparent;
}
.code *{
  font-family: var(--font-code) !important;
  font-weight: 300 !important;
}
/* Simple Syntax Highlighting Colors */
.sh-keyword { color: #c678dd; font-weight: 600;} /* Purple */
.sh-func { color: #61afef; } /* Blue */
.sh-string { color: #98c379; } /* Green */
.sh-prop { color: #d19a66; } /* Orange */
.sh-class { color: #e5c07b; } /* Yellow */

/* ACCORDION FAQ SECTION */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
}
.faq-details summary {
  padding: 20px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-details summary:hover { background: var(--bg-hover); }
.faq-details summary::-webkit-details-marker { display: none; }
.faq-details summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 300;
  transition: transform 0.3s;
}
.faq-details[open] summary::after {
  transform: rotate(45deg);
  color: var(--text);
}
.faq-content {
  padding: 0 20px 20px 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

/* Bottom CTA */
.bottom-cta { text-align: center; padding: 100px 20px; }
.bottom-cta h2 { font-size: 3rem; letter-spacing: -1px; margin-bottom: 15px; }
.bottom-cta p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.cta-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* FIXED FOOTER */
.footer {
  padding: 60px 4% 20px;
  width: 100%;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col .logo { margin-bottom: 15px; }
.footer-col p { color: var(--text-muted); max-width: 250px; font-size: 0.9rem; line-height: 1.6;}
.footer-col h4 { font-weight: 600; font-size: 0.9rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { color: var(--text-muted); }

/* Entrance Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
  .hero { height: auto; padding: 60px 20px; }
  .hero-content-grid { grid-template-columns: 1fr; text-align: center; }
  
  /* FLIP ORDER: Text Above, Image Below */
  .hero-text-content { order: 1 !important; margin-top: 20px; }
  .hero-image-container { order: 2 !important; height: auto; margin-top: 10px; }
  
  /* Fix Image wrapping for mobile */
  .hero-image-wrapper { position: relative; width: 130%; transform: translateX(10%); left: auto; }
  .hero-image-wrapper::after { box-shadow: inset 80px 0 80px -20px var(--bg), inset 0 60px 60px -20px var(--bg), inset 0 -60px 60px -20px var(--bg); }

  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }

  .steps-wrapper::before { display: none; /* Hide line on mobile */ }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-hide-mobile { display: none; }
  .standard-nav { padding: 0 20px; }
  
  .hero h1 { font-size: 2.8rem; letter-spacing: -1px; }
  .hero p { font-size: 1.05rem; }
  
  .section { padding: 80px 20px; }
  .section-title { font-size: 2.2rem; margin-bottom: 40px; }
  
  .stats-banner { flex-direction: column; gap: 30px; }

  /* Ensure footer grid collapses cleanly */
  .footer { padding: 60px 20px 20px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col p { margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  
  .hero-btns, .cta-btns { flex-direction: column; width: 100%; align-items: stretch; }
  .btn-large { width: 100%; justify-content: center; }
  
  .bottom-cta h2 { font-size: 1.8rem; }
  .code-showcase pre { padding: 15px; font-size: 0.8rem; }
}