/**
 * GroundingGeo marketing site
 * Brand: cool slate / teal — not purple, not cream/serif/terracotta.
 */
:root {
  --bg-top: #0b1f24;
  --bg-mid: #12343c;
  --bg-bottom: #1a4a52;
  --ink: #f2f7f6;
  --muted: #b7ccc8;
  --accent: #2dd4bf;
  --accent-deep: #0d9488;
  --line: rgba(242, 247, 246, 0.14);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 90% 60% at 80% -10%, rgba(45, 212, 191, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 110%, rgba(13, 148, 136, 0.18), transparent 50%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #5eead4;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-content: center;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -8% -20% 35%;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%232dd4bf' stop-opacity='0.35'/%3E%3Cstop offset='1' stop-color='%230d9488' stop-opacity='0.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M80 420 C220 180 360 520 520 220 C640 40 720 280 760 160' fill='none' stroke='url(%23g)' stroke-width='28' stroke-linecap='round'/%3E%3Ccircle cx='520' cy='220' r='18' fill='%232dd4bf' fill-opacity='0.55'/%3E%3Ccircle cx='220' cy='300' r='10' fill='%23f2f7f6' fill-opacity='0.35'/%3E%3C/svg%3E")
      right center / min(52vw, 34rem) no-repeat;
  opacity: 0.95;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-1.5%, 2%, 0) scale(1.03);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.75rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
  animation: rise 0.9s ease-out both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  color: var(--muted);
  animation: rise 0.9s ease-out 0.12s both;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: var(--muted);
  animation: rise 0.9s ease-out 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  animation: rise 0.9s ease-out 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #042f2e;
}

.btn-primary:hover {
  background: #5eead4;
  color: #042f2e;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(11, 31, 36, 0.35);
}

.btn-ghost:hover {
  border-color: rgba(242, 247, 246, 0.35);
  color: var(--ink);
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.page .lede {
  color: var(--muted);
  margin: 0 0 2rem;
}

.page .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-after-hero {
  max-width: 42rem;
  padding-top: 0;
}

.page .cta-row {
  margin: 0 0 2rem;
}

.waitlist-form {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
}

.waitlist-form label {
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.35rem;
}

.waitlist-form .optional {
  font-weight: 400;
  color: var(--muted);
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(11, 31, 36, 0.45);
  color: var(--ink);
  font: inherit;
}

.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder {
  color: rgba(183, 204, 200, 0.65);
}

.waitlist-form .honey {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.waitlist-form button {
  margin-top: 0.75rem;
  border: none;
  cursor: pointer;
  justify-self: start;
}

.waitlist-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-error {
  color: #fca5a5;
  margin: 0.25rem 0 0;
}

.form-footnote {
  font-size: 0.95rem;
}

.page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}

.page h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.25rem 0 0.45rem;
  color: var(--ink);
}

.page p,
.page li {
  color: var(--muted);
}

.page ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .hero::before {
    inset: auto 0 0 0;
    height: 42%;
    background-size: contain;
    background-position: center bottom;
    opacity: 0.55;
  }

  .hero {
    padding-bottom: 12rem;
  }
}
