/* ==========================================================================
   METABOLIQ — Shared Design System
   Brand: Deep Obsidian / Electric Teal / Soft Sand
   ========================================================================== */

:root {
  --obsidian: #0A0D0F;
  --obsidian-soft: #12171B;
  --obsidian-line: #232B30;
  --teal: #14E0BC;
  --teal-dark: #0AA98C;
  --teal-deep: #086F5C;
  --sand: #F4EFE4;
  --sand-soft: #FAF7F0;
  --white: #FFFFFF;
  --ink: #10151A;
  --ink-muted: #5B6670;
  --ink-faint: #8B949C;
  --line: #E7E1D3;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 60px -20px rgba(10, 13, 15, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(10, 13, 15, 0.15);

  --font-head: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--ink-muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}

.eyebrow.on-dark { color: var(--teal); }

section { position: relative; }

.section-pad { padding: 110px 0; }
.section-pad-sm { padding: 72px 0; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--obsidian);
  box-shadow: 0 10px 30px -8px rgba(20, 224, 188, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(20, 224, 188, 0.65); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-dark {
  background: var(--obsidian);
  color: var(--white);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.btn-outline {
  background: transparent;
  color: var(--obsidian);
  border-color: var(--obsidian);
}
.btn-outline:hover { background: var(--obsidian); color: var(--white); }

.btn-block { width: 100%; }

/* ---------------- Navbar ---------------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

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

.navbar.scrolled {
  background: rgba(10, 13, 15, 0.92);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 8px 30px -10px rgba(0,0,0,0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.brand .mark { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  color: rgba(255,255,255,0.78);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Navbar over a bone-coloured hero (e.g. the homepage): swap text/icons to
   obsidian for contrast while unscrolled. Once scrolled, .scrolled kicks in
   with a solid dark bar, so the default white styling is correct again. */
.navbar.on-light:not(.scrolled) .brand,
.navbar.on-light:not(.scrolled) .nav-links a,
.navbar.on-light:not(.scrolled) .nav-toggle {
  color: var(--obsidian);
}
.navbar.on-light:not(.scrolled) .nav-links a:hover,
.navbar.on-light:not(.scrolled) .nav-links a.active {
  color: var(--obsidian);
}
.navbar.on-light:not(.scrolled) .nav-toggle {
  border-color: rgba(10,13,15,0.28);
}
.navbar.on-light:not(.scrolled) .btn-ghost {
  color: var(--obsidian);
  border-color: rgba(10,13,15,0.25);
}
.navbar.on-light:not(.scrolled) .btn-ghost:hover {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--obsidian);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 26px 32px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu .close-btn {
  align-self: flex-end;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 50px;
}
.mobile-menu nav a {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu .btn { margin-top: 30px; }

/* ---------------- Hero (bone) ---------------- */

.hero {
  background: radial-gradient(ellipse 90% 70% at 15% 0%, var(--sand-soft) 0%, var(--sand) 55%), var(--sand);
  color: var(--ink);
  padding: 190px 0 130px;
  overflow: hidden;
  position: relative;
}

.page-hero {
  background: radial-gradient(ellipse 80% 60% at 85% 0%, #10201D 0%, var(--obsidian) 55%), var(--obsidian);
  color: var(--white);
  padding: 170px 0 100px;
  position: relative;
  overflow: hidden;
}

.page-hero h1, .page-hero h2, .page-hero h3 {
  color: var(--white);
}

/* ---------------- Section headers ---------------- */

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: 16px; }

/* ---------------- Cards ---------------- */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.icon-badge {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--obsidian);
}
.icon-badge svg { width: 26px; height: 26px; }

.icon-badge.dark {
  background: var(--obsidian);
  color: var(--teal);
}

/* ---------------- Grids ---------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------------- Stats ---------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 60px;
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--teal-dark);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* ---------------- Footer ---------------- */

footer {
  background: var(--obsidian);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}
footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
footer .brand { margin-bottom: 18px; }
footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer ul li { margin-bottom: 12px; }
footer a { color: rgba(255,255,255,0.65); font-size: 0.95rem; transition: color 0.2s ease; }
footer a:hover { color: var(--teal); }
.foot-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-desc { font-size: 0.95rem; max-width: 320px; color: rgba(255,255,255,0.55); }
.foot-social { display: flex; gap: 12px; }
.foot-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.foot-social a:hover { border-color: var(--teal); }

/* ---------------- Tag pills ---------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(20, 224, 188, 0.1);
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
}
.pill.on-dark { background: rgba(20,224,188,0.12); color: var(--teal); }

/* ---------------- Reveal animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- Timeline (How It Works) ---------------- */

.timeline {
  position: relative;
  padding-left: 50px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--line));
}
.timeline-item {
  position: relative;
  padding-bottom: 50px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -50px;
  top: 4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--obsidian);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  border: 3px solid var(--teal);
}

/* ---------------- Team ---------------- */

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); }
.team-avatar {
  height: 210px;
  background: linear-gradient(150deg, var(--obsidian) 0%, var(--obsidian-soft) 60%, var(--teal-deep) 140%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-avatar .initials {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.05em;
}
.team-body { padding: 26px 28px 30px; }
.team-role { color: var(--teal-dark); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }

/* ---------------- Pricing ---------------- */

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 40px 34px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.price-card.featured {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--white);
  transform: scale(1.04);
}
.price-card.featured:hover { transform: scale(1.04) translateY(-6px); }
.price-card.featured p, .price-card.featured .price-note { color: rgba(255,255,255,0.65); }
.price-card.featured li { color: rgba(255,255,255,0.85); }
.price-tag {
  position: absolute;
  top: -14px; right: 34px;
  background: var(--teal);
  color: var(--obsidian);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}
.price-amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; margin: 14px 0 4px; }
.price-amount span { font-size: 1rem; font-weight: 600; color: var(--ink-faint); }
.price-card.featured .price-amount span { color: rgba(255,255,255,0.5); }
.price-list { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--ink-muted); }
.price-list svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--teal-dark); margin-top: 2px; }
.price-card.featured .price-list svg { color: var(--teal); }

/* ---------------- Forms ---------------- */

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 14px; }

/* ---------------- Accordion (FAQ) ---------------- */

.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.accordion-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); background: var(--teal); border-color: var(--teal); }
.accordion-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.open .accordion-a { max-height: 260px; padding-bottom: 26px; }

/* ---------------- Utility ---------------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 60px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-16 { gap: 16px; }
.bg-sand { background: var(--sand); }
.bg-obsidian { background: var(--obsidian); color: var(--white); }
.bg-obsidian h3 { color: var(--white); }
.bg-obsidian p { color: rgba(255,255,255,0.68); }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  footer .foot-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: scale(1); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-pad { padding: 76px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  footer .foot-grid { grid-template-columns: 1fr; }
  .hero, .page-hero { padding-top: 150px; }
  .container { padding: 0 22px; }
  .timeline { padding-left: 40px; }
  .timeline-dot { left: -40px; width: 30px; height: 30px; font-size: 0.78rem; }
}
