/* =====================================================================
   Team Hatch — Shared styles v9
   Dark-first. Geist + Montserrat. Design system tokens.
   ===================================================================== */

:root {
  --th-blue: #7CCBF8; --th-lilac: #DDA0F1; --th-purple: #9E6EE5; --th-pink: #FA75F8;
  --th-sky: #5CC3FA; --th-gold: #FACC69; --th-peach: #FCBA89; --th-rose: #FF91A5;
  --th-green: #62CC7B; --th-coral: #E5675C;

  --bg-primary: #000000; --bg-alt: #141214; --bg-overlay: rgba(0, 0, 0, 0.6);
  --glass-fill: rgba(255, 255, 255, 0.08);
  --glass-fill-hover: rgba(255, 255, 255, 0.12);
  --glass-fill-active: rgba(255, 255, 255, 0.15);

  --border-weak: rgba(255, 255, 255, 0.10);
  --border-mid: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-max: rgba(255, 255, 255, 0.20);

  --fg-1: rgba(255, 255, 255, 1.00);
  --fg-2: rgba(255, 255, 255, 0.80);
  --fg-3: rgba(255, 255, 255, 0.70);
  --fg-4: rgba(255, 255, 255, 0.30);

  --grad-brand: linear-gradient(90deg, #9E6EE5 0%, #FA75F8 100%);
  --grad-cta: linear-gradient(126deg, #DDA0F1 24%, #7CCBF8 100%);

  --r-4: 4px; --r-8: 8px; --r-12: 12px; --r-16: 16px; --r-24: 24px; --r-pill: 50px;
  --s-4: 4px; --s-8: 8px; --s-10: 10px; --s-12: 12px; --s-16: 16px; --s-24: 24px;
  --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-88: 88px; --s-96: 96px;

  --section-py: 96px;
  --blur-card: 20px;

  --dur-fast: 0.2s; --dur-base: 0.3s; --dur-slow: 0.6s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: "Geist", Inter, Arial, Helvetica, sans-serif;
  --font-body: "Geist", Inter, Arial, Helvetica, sans-serif;
  --font-wordmark: "Montserrat", Inter, Arial, Helvetica, sans-serif;

  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  --wordmark-tracking: 0.15em;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

::selection { background: rgba(158, 110, 229, 0.4); color: #fff; }
a { color: inherit; text-decoration: none; }

/* ===== Ambient orb fog ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(60vw 60vw at 12% 8%, rgba(158,110,229,0.28) 0%, rgba(250,117,248,0.16) 38%, transparent 72%),
    radial-gradient(55vw 55vw at 92% 30%, rgba(250,117,248,0.22) 0%, rgba(124,203,248,0.12) 46%, transparent 76%),
    radial-gradient(65vw 65vw at 6% 72%, rgba(124,203,248,0.22) 0%, rgba(221,160,241,0.12) 44%, transparent 74%),
    radial-gradient(50vw 50vw at 96% 92%, rgba(250,204,105,0.18) 0%, rgba(252,186,137,0.10) 44%, transparent 74%);
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Buttons ===== */
.th-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: 15px;
  border-radius: var(--r-pill); padding: 12px 24px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  text-decoration: none;
  transition: opacity var(--dur-base) var(--ease-soft), background var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft), border-color var(--dur-base) var(--ease-soft);
}
.th-btn-primary { background: var(--grad-cta); color: #000; border: none; }
.th-btn-primary:hover { opacity: 0.92; }
.th-btn-ghost { background: transparent; color: var(--fg-1); border: 1px solid var(--border-mid); }
.th-btn-ghost:hover { background: var(--glass-fill); border-color: var(--border-strong); }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--th-blue);
  font-size: 14px; font-weight: 600;
  transition: gap var(--dur-base) var(--ease-soft), color var(--dur-base) var(--ease-soft);
}
.btn-link:hover { gap: 10px; color: var(--th-lilac); }

/* ===== Nav ===== */
.nav-wrap { position: sticky; top: 18px; z-index: 50; padding: 0 24px; }
.nav {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 20px;
  background: rgba(20, 18, 20, 0.55);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-weak);
  border-radius: var(--r-pill);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.brand .wm {
  font-family: var(--font-wordmark); font-weight: 700;
  letter-spacing: 0.15em; font-size: 13px; color: #fff;
}
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 14px; }
.nav-links a { color: var(--fg-3); transition: color var(--dur-base) var(--ease-soft); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ===== Mobile hamburger + menu (CSS-only) ===== */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  transition: background var(--dur-fast) var(--ease-soft);
}
.hamburger:hover { background: rgba(255,255,255,0.12); }
.hamburger span {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-soft);
}
.nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  flex-direction: column; gap: 4px;
  background: rgba(20, 18, 20, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  padding: 14px;
}
.mobile-menu a {
  display: block;
  color: var(--fg-2); font-weight: 500; font-size: 15px;
  padding: 12px 14px; border-radius: 10px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.mobile-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-menu .mobile-cta {
  background: var(--grad-cta); color: #000 !important; font-weight: 600;
  text-align: center; margin-top: 6px;
}
.mobile-menu .mobile-cta:hover { opacity: 0.92; background: var(--grad-cta); }

/* ===== Section scaffolding ===== */
.section {
  position: relative; z-index: 1;
  padding: var(--section-py) 24px;
  max-width: 1200px; margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-body); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--th-lilac); margin-bottom: 18px;
}

.s-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 16px;
}

.s-sub {
  color: var(--fg-3); font-size: 17px; line-height: 28px;
  max-width: 560px; margin-bottom: 56px; font-weight: 400;
}

.s-head-center { text-align: center; }
.s-head-center .s-sub { margin-left: auto; margin-right: auto; }

/* ===== Generic hero ===== */
.page-hero {
  position: relative; z-index: 1;
  padding: 88px 24px 48px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 auto 20px; max-width: 900px;
}

.page-hero p {
  color: var(--fg-2); font-size: 19px; line-height: 30px;
  max-width: 560px; margin: 0 auto 32px;
  font-weight: 400;
}

.page-hero-ctas {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Final CTA (single shape, no double-layer) ===== */
.final {
  position: relative; z-index: 1;
  margin: 0 auto 96px;
  max-width: 1152px;
  padding: 0 24px;
}

.final-inner {
  position: relative;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(126deg, #9E6EE5 0%, #FA75F8 60%, #7CCBF8 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}

.final-inner .text-col { flex: 1; }

.final-inner h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1;
  letter-spacing: -0.02em; color: #fff;
  margin-bottom: 14px;
}

.final-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px; line-height: 26px;
  max-width: 480px; margin: 0;
}

.final-actions {
  display: flex; flex-direction: column; gap: 12px; flex-shrink: 0;
}

.btn-white {
  background: #fff; color: #000;
  padding: 14px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
  transition: opacity var(--dur-base) var(--ease-soft);
  text-align: center; display: inline-block; white-space: nowrap;
}
.btn-white:hover { opacity: 0.9; }

.btn-white-ghost {
  background: rgba(255, 255, 255, 0.12); color: #fff;
  padding: 14px 28px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-soft);
  text-align: center; display: inline-block;
  backdrop-filter: blur(10px); white-space: nowrap;
}
.btn-white-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== Footer ===== */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border-weak);
  padding: 56px 24px 40px;
  color: var(--fg-3);
  font-size: 14px; line-height: 20px;
  max-width: 1200px; margin: 0 auto;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}

.footer h5 {
  color: #fff; font-weight: 500; font-size: 13px; line-height: 18px;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px;
}

.footer a {
  color: var(--fg-3); display: block; padding: 4px 0;
  font-weight: 400;
  transition: color var(--dur-base) var(--ease-soft);
}
.footer a:hover { color: #fff; }

.footer-brand { display: flex; flex-direction: column; }
.footer-brand .wm {
  font-family: var(--font-wordmark); font-weight: 700;
  letter-spacing: 0.15em; color: #fff; font-size: 14px;
  display: flex; gap: 10px; align-items: center; margin-bottom: 16px;
}
.footer-brand .wm img { height: 22px; width: auto; }
.footer-brand p { max-width: 320px; font-size: 13px; line-height: 22px; margin: 0; }

.footer-bottom {
  padding-top: 24px; margin-top: 40px;
  border-top: 1px solid var(--border-weak);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--fg-4); font-size: 12px; flex-wrap: wrap; gap: 16px;
}

.footer-partners {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border-weak);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg-4);
  flex-wrap: wrap;
}
.footer .footer-partners a {
  display: inline-flex !important; align-items: center; gap: 6px;
  padding: 0 !important;
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500; text-decoration: none;
  transition: color var(--dur-base) var(--ease-soft);
}
.footer .footer-partners a:hover {
  color: #fff !important;
}
.footer .footer-partners a img {
  height: 14px !important; width: auto !important;
  display: inline-block !important;
  vertical-align: middle;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ===== Responsive base ===== */
@media (max-width: 1024px) {
  .final-inner { flex-direction: column; padding: 48px 28px; text-align: center; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-toggle:checked ~ .mobile-menu { display: flex; }
  .nav { padding: 8px 8px 8px 16px; border-radius: 28px; }
  .section { padding: 64px 20px; }
  .page-hero { padding: 56px 20px 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .final-actions { width: 100%; }
  .final-actions a { width: 100%; }
}
