/* =============================================
   LAYOUT.CSS — Page Structure, Sections, Grids
   NeoCodes Launch
============================================= */

/* --- Shared section padding --- */
section { padding: 6rem 6%; }

/* --- Nav --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 6%;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 6% 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

/* --- Education / Why Section --- */
.why-section { background: var(--dark2); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- How It Works --- */
.how-section { background: var(--dark); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

/* Connector line */
.how-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(255,255,255,0.1), var(--accent));
  opacity: 0.3;
}

/* --- Pricing Section (LIGHT) --- */
.pricing-section {
  background: var(--light);
  color: var(--dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

/* --- Demos Section (DARK) --- */
.demos-section { background: var(--dark); }

.demos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  max-width: 900px;
}

/* --- Contact Section (LIGHT) --- */
.contact-section {
  background: var(--light);
  color: var(--dark);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 3.5rem;
  align-items: start;
}

/* --- Footer --- */
footer {
  background: var(--dark);
  padding: 2.5rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 1rem;
}

footer p { font-size: 0.82rem; color: var(--muted); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .why-grid       { grid-template-columns: 1fr; }
  .how-steps      { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 420px; }
  .demos-grid     { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats     { gap: 2rem; }
}

@media (max-width: 600px) {
  nav     { padding: 1rem 5%; }
  section { padding: 4rem 5%; }
  .hero   { padding: 7rem 5% 4rem; }
  footer  { padding: 2rem 5%; flex-direction: column; }
  body    { padding-bottom: 0; }
}
