/* ============================================
   ZoiStudio — Landing Page
     Styles
*============================================ */

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

:root {
  --cream: #FDF9F3;
  --cream-deep: #F5EDE2;
  --green-dark: #2D5B3D;
  --green-muted: #7A9E76;
  --green-light: #A8C4A0;
  --green-pale: #D4E4D2;
  --grey-border: #D8DFD2;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-hover: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.7);
  --shadow-soft: 0 8px 32px rgba(45, 91, 61, 0.08);
  --shadow-hover: 0 12px 40px rgba(45, 91, 61, 0.14);
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.4, 0.92);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--green-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--green-dark);
  opacity: 0.88;
  max-width: 34em;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth),
              transform 0.8s var(--transition-smooth);
}

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

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.25s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.35s; }

/* ============================================
   Navigation
*============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253, 249, 243, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 var(--grey-border);
  transition: background var(--transition-smooth),
              backdrop-filter var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--green-dark);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity var(--transition-smooth);
  font-weight: 450;
}

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

.nav-cta {
  background: var(--green-muted) !important;
  color: white !important;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  opacity: 1 !important;
  font-weight: 500 !important;
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(122, 158, 118, 0.3);
}

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.8px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform var(--transition-smooth),
              opacity var(--transition-smooth);
}

/* ============================================
   Hero Section
*============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-muted);
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  max-width: 42em;
  margin: 0 auto 2.5rem;
  opacity: 0.82;
  line-height: 1.65;
  font-weight: 400;
}

.hero-btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: var(--green-muted);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122, 158, 118, 0.32);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.45;
  animation: float-down 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 24px;
  height: 24px;
}

@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Sections (shared)
*============================================ */
.section {
  padding: 6rem 2rem;
  max-width: 750px;
  text-align: center;
  margin: 0 auto;
}

/* Wide sections that hold card grids — span full viewport width for centered rows */
.section--wide {
  max-width: 100%;
  overflow-x: auto;
}

.section h2 {
  margin-bottom: 1.2rem;
}

.section p {
  margin-bottom: 0;
}

.section-intro {
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 3rem;
}

.section-label {
  max-width: 36em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-muted);
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

/* ============================================
   Divider (hr between sections)
*============================================ */
.divider {
  width: 60px;
  height: 1px;
  background: var(--grey-border);
  margin: 0 auto;
  border: none;
}

/* ============================================
   Vision Section
*============================================ */
.vision-text p {
  margin-bottom: 1.2rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.72;
}

.vision-stat {
  display: inline-block;
  margin-top: 2rem;
  padding: 1.4rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.vision-stat p {
  font-size: 1rem !important;
  font-style: italic;
  opacity: 0.85 !important;
  max-width: none;
}

/* ============================================
   Cards (glassmorphism shared)
*============================================ */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.2rem;
  transition: background var(--transition-smooth),
              box-shadow var(--transition-smooth),
              transform var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-pale), var(--glass-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-muted);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ============================================
   Approach Section
*============================================ */
.approach-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.approach-item {
  padding: 2rem;
  border-left: 2px solid var(--green-pale);
}

.approach-item h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.approach-item p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ============================================
   Timeline / Roadmap
*============================================ */
.timeline {
  max-width: 640px;
  padding-left: 44px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: -4px;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-light), var(--green-pale), transparent);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot-wrap {
  flex-shrink: 0;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-muted);
  box-shadow: 0 0 0 4px rgba(122, 158, 118, 0.12);
}

.timeline-dot.empty {
  background: var(--green-pale);
  box-shadow: 0 0 0 4px rgba(212, 228, 210, 0.35);
}

.timeline-content {
  flex: 1;
}

.timeline-divider {
  border: none;
  height: 0;
  background: linear-gradient(to right, var(--green-pale), transparent);
  margin: 1.5rem 44px 2rem 44px;
}

.timeline-phase {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-muted);
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.timeline-item p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================
   Footer
*============================================ */
.footer {
  text-align: center;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  font-size: 0.82rem;
  opacity: 0.55;
  border-top: 1px solid var(--grey-border);
}

/* ============================================
   Contact Section
*============================================ */
.contact {
  text-align: center;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 4rem;
}

.contact h2 {
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.contact .section-intro {
  text-align: center;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2.2rem;
  background: var(--green-muted);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122, 158, 118, 0.32);
}

/* ============================================
   Mobile Nav Overlay
*============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(253, 249, 243, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  color: var(--green-dark);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--transition-smooth);
}

.mobile-menu a:hover {
  opacity: 1;
}

/* ============================================
   Responsive
*============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
    min-height: 90vh;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================================
   Selection Color
*============================================ */
::selection {
  background: var(--green-pale);
  color: var(--green-dark);
}
