/* ============================================================
   Earthminds — static site styles
   "Neural Earth" palette carried over from the original site,
   simplified into plain CSS custom properties.
   ============================================================ */

:root {
  /* Core palette (HSL) */
  --primary: 215 85% 25%;      /* deep earth blue */
  --primary-glow: 215 85% 35%;
  --teal: 175 85% 40%;         /* electric teal */
  --orange: 25 95% 55%;        /* vibrant orange */
  --purple: 270 75% 60%;       /* creative purple */

  --bg: 220 15% 98%;
  --fg: 215 28% 16%;
  --muted-fg: 215 15% 42%;
  --card: 0 0% 100%;
  --border: 220 22% 89%;

  /* Gradients */
  --gradient-neural: linear-gradient(135deg, hsl(215 85% 25%), hsl(175 85% 42%));
  --gradient-earth: linear-gradient(135deg, hsl(175 85% 42%), hsl(25 95% 55%));
  --gradient-innovation: linear-gradient(135deg, hsl(25 95% 55%), hsl(270 75% 60%));

  --radius: 0.85rem;
  --shadow-sm: 0 1px 3px hsl(215 25% 15% / 0.06), 0 1px 2px hsl(215 25% 15% / 0.04);
  --shadow-md: 0 8px 24px -8px hsl(215 45% 20% / 0.14);
  --shadow-lg: 0 18px 40px -14px hsl(215 55% 20% / 0.22);

  --maxw: 1080px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: hsl(var(--fg));
  background: hsl(var(--bg));
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 700;
  color: hsl(var(--fg));
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: hsl(var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

.text-gradient {
  background: var(--gradient-neural);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: hsl(var(--muted-fg)); }
.center { text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--bg) / 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: 'Poppins', sans-serif; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: hsl(var(--fg) / 0.8); font-weight: 500; font-size: 0.97rem;
  padding: 0.25rem 0; position: relative;
}
.nav-links a:hover { color: hsl(var(--primary)); text-decoration: none; }
.nav-links a.current { color: hsl(var(--primary)); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--gradient-earth); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.current::after { transform: scaleX(1); }
.nav-links a.subtle { color: hsl(var(--muted-fg)); font-weight: 400; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem;
  color: hsl(var(--fg)); border-radius: 8px;
}
.nav-toggle:hover { background: hsl(var(--primary) / 0.08); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: hsl(var(--bg) / 0.98);
    border-bottom: 1px solid hsl(var(--border));
    padding: 0.5rem 1rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.25rem; border-bottom: 1px solid hsl(var(--border)); }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 1rem; font-family: 'Inter', sans-serif;
  padding: 0.72rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: hsl(var(--primary)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: hsl(var(--primary-glow)); color: #fff; }
.btn-accent { background: var(--gradient-earth); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent:hover { color: #fff; }
.btn-outline { background: transparent; border-color: hsl(var(--primary) / 0.35); color: hsl(var(--primary)); }
.btn-outline:hover { background: hsl(var(--primary) / 0.06); }
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.05rem; }

/* ---------- Sections ---------- */
main { padding-top: 64px; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.75rem 0; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: hsl(var(--teal)); margin-bottom: 0.75rem;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: hsl(var(--teal) / 0.12); color: hsl(var(--primary));
  border: 1px solid hsl(var(--teal) / 0.3);
  padding: 0.35rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 3.5rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: 0.09;
  background:
    radial-gradient(circle at 25% 15%, hsl(var(--primary-glow)) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, hsl(var(--teal)) 0%, transparent 45%);
}
.hero > * { position: relative; z-index: 1; }
.hero .lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: hsl(var(--fg) / 0.9); font-weight: 500; max-width: 720px; margin: 0 auto 1.25rem; }
.hero .sub { font-size: 1.05rem; color: hsl(var(--muted-fg)); max-width: 640px; margin: 0 auto 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.4rem; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 1rem; color: #fff;
}
.icon-neural { background: var(--gradient-neural); }
.icon-earth { background: var(--gradient-earth); }
.icon-innovation { background: var(--gradient-innovation); }
.icon svg { width: 26px; height: 26px; }
.card .arrow-link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; margin-top: 0.75rem;
}
.card .arrow-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card .arrow-link:hover { text-decoration: none; }
.card .arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { text-align: center; padding: 1.75rem 1rem; }
.stat .num { font-family: 'Poppins', sans-serif; font-size: 2.8rem; font-weight: 700; line-height: 1; }
.stat .label { color: hsl(var(--muted-fg)); margin-top: 0.5rem; }
.stat.blue .num { color: hsl(var(--primary)); }
.stat.teal .num { color: hsl(var(--teal)); }
.stat.orange .num { color: hsl(var(--orange)); }

/* ---------- Quote ---------- */
.quote-band {
  background: hsl(var(--teal) / 0.06); border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border)); text-align: center;
}
.quote-band blockquote {
  font-family: 'Poppins', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500; margin: 0 auto 1rem; max-width: 800px; line-height: 1.4;
}
.quote-band cite { color: hsl(var(--muted-fg)); font-style: normal; font-weight: 500; }

/* ---------- Video ---------- */
.video {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 16/9; background: #ddd;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-thumb:hover img { transform: scale(1.05); }
.video-thumb::after {
  content: '▶'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 2rem; background: hsl(215 30% 10% / 0.35);
  transition: background 0.2s ease;
}
.video-thumb:hover::after { background: hsl(215 30% 10% / 0.2); }

/* ---------- Timeline / teams (details) ---------- */
.team, .faq-item {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team > summary, .faq-item > summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.35rem;
  display: flex; align-items: center; gap: 1rem; font-weight: 600;
}
.team > summary::-webkit-details-marker, .faq-item > summary::-webkit-details-marker { display: none; }
.team > summary .team-emoji { font-size: 1.9rem; line-height: 1; }
.team > summary .team-title { font-family: 'Poppins', sans-serif; font-size: 1.1rem; }
.team > summary .team-sub { display: block; font-weight: 400; font-size: 0.9rem; color: hsl(var(--muted-fg)); margin-top: 0.15rem; }
.team > summary .chev, .faq-item > summary .chev {
  margin-left: auto; transition: transform 0.2s ease; color: hsl(var(--muted-fg)); flex-shrink: 0;
}
.team[open] > summary .chev, .faq-item[open] > summary .chev { transform: rotate(180deg); }
.team-body { padding: 0 1.35rem 1.35rem; }
.note {
  padding: 0.85rem 1rem; border-radius: 0.6rem; border-left: 4px solid; margin-bottom: 0.85rem;
  font-size: 0.97rem;
}
.note strong { display: block; margin-bottom: 0.25rem; }
.note-problem { background: hsl(0 80% 96%); border-color: hsl(0 70% 55%); }
.note-solution { background: hsl(215 80% 96%); border-color: hsl(215 75% 50%); }
.note-learning { background: hsl(150 55% 94%); border-color: hsl(150 55% 42%); }

.faq-item > summary { font-family: 'Poppins', sans-serif; }
.faq-item .faq-body { padding: 0 1.35rem 1.25rem; color: hsl(var(--muted-fg)); }

/* ---------- Feature list (checks) ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.75rem; }
.checklist .tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 999px;
  background: hsl(var(--teal) / 0.15); color: hsl(var(--teal));
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; margin-top: 2px;
}

/* ---------- Panel (soft coloured block) ---------- */
.panel {
  border-radius: var(--radius); padding: 2rem;
  background: linear-gradient(135deg, hsl(var(--teal) / 0.08), hsl(var(--primary) / 0.06));
  border: 1px solid hsl(var(--teal) / 0.2);
}
.panel-dark {
  background: var(--gradient-neural); color: #fff; border: 0;
}
.panel-dark h2, .panel-dark h3 { color: #fff; }

/* ---------- Form ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; padding: 0.7rem 0.9rem; font: inherit; font-size: 0.97rem;
  border: 1px solid hsl(var(--border)); border-radius: 0.6rem; background: #fff;
  color: hsl(var(--fg)); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: hsl(var(--teal)); box-shadow: 0 0 0 3px hsl(var(--teal) / 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.footer {
  background: hsl(215 30% 12%); color: hsl(220 15% 78%);
  padding: 3rem 0 2rem; margin-top: 2rem;
}
.footer a { color: hsl(220 20% 88%); }
.footer a:hover { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer .brand span { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsl(220 20% 25%);
  font-size: 0.85rem; color: hsl(220 12% 60%);
}

/* ---------- Misc spacing ---------- */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.75rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-row.center { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
