/* ==========================================================================
   GatherMind marketing site — tokens straight from docs/GatherMind Branding
   ========================================================================== */

:root {
  --ink: #232629;
  --ink-2: #35383B;      /* one step up from ink, for panels on the dark hero */
  --paper: #f6f7f5;
  --surface: #ffffff;
  --orange: #e8722a;
  --orange-bright: #ff9046;
  --slate: #62686d;
  --line: #e4e7e2;

  --font-display: "Saira", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 1px 2px rgba(35, 38, 41, 0.04), 0 12px 32px -16px rgba(35, 38, 41, 0.12);
  --shadow-float: 0 24px 64px -20px rgba(35, 38, 41, 0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

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

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

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

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow .chip {
  width: 8px;
  height: 8px;
  border-radius: 2.5px;
  background: var(--orange);
  flex: none;
}
.on-dark .eyebrow { color: var(--orange-bright); }

.lede {
  font-size: 1.1875rem;
  color: var(--slate);
  max-width: 46rem;
}
.on-dark .lede { color: rgba(246, 247, 245, 0.72); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: #d5661f; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--slate); }

.on-dark .btn-ghost {
  border-color: rgba(246, 247, 245, 0.24);
  color: var(--paper);
}
.on-dark .btn-ghost:hover { border-color: rgba(246, 247, 245, 0.5); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 245, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(35, 38, 41, 0.02);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo { height: 36px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 20px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 72px 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 247, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 247, 245, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 78%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 4.4vw + 1rem, 4rem);
  line-height: 1.05;
  margin-top: 20px;
}
.hero-copy h1 .accent { color: var(--orange-bright); }
.hero-copy .lede { margin-top: 22px; font-size: 1.25rem; }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
/* floating product panel — a real screenshot in a browser-frame (see
   Screenshots showcase below), just tilted and floated like a photo */
.hero-panel {
  position: relative;
  transform: rotate(1.2deg);
}
.hero-panel .browser-frame { box-shadow: var(--shadow-float); }

.hero-phone {
  position: absolute;
  right: -30px;
  top: 34%;
  transform: translateY(-50%) rotate(8deg);
  width: 126px;
  border-radius: 24px;
  box-shadow: 0 20px 50px -12px rgba(35, 38, 41, 0.35), 0 0 0 1px rgba(35, 38, 41, 0.08);
  z-index: 2;
}
.hero-phone .phone-frame {
  max-width: none;
  margin: 0;
  padding: 7px 6px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}
.hero-phone .phone-frame img { border-radius: 16px; }
.hero-phone .phone-frame::before { top: 4px; height: 4px; }

.hero-float-card {
  position: absolute;
  right: -18px;
  bottom: -22px;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  min-width: 178px;
}
.hero-float-card svg { flex: none; }
.hero-float-card .label { font-size: 0.7rem; color: rgba(246,247,245,0.6); }
.hero-float-card .value { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; margin: 0 auto; }
  .hero-float-card { right: 8px; }
}

/* ==========================================================================
   Highlights strip
   ========================================================================== */

.highlights { background: var(--surface); padding-bottom: 54px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.25rem);
  color: var(--ink);
  margin-top: 4px;
}
.stat-card p {
  color: var(--slate);
  font-size: 0.875rem;
  max-width: 30ch;
}

/* ==========================================================================
   Section shell
   ========================================================================== */

section { padding: 108px 0; }
@media (max-width: 640px) {
  section { padding: 72px 0; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 2.5rem);
  margin-top: 16px;
}
.section-head .lede { margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Screenshots showcase
   ========================================================================== */

.showcase { background: var(--surface); padding-top: 54px; }
.showcase-grid { display: flex; flex-direction: column; gap: 48px; }
.showcase-row { display: flex; gap: 28px; align-items: flex-start; }
@media (max-width: 760px) {
  .showcase-row { flex-direction: column; }
}

.showcase-item { display: flex; flex-direction: column; gap: 14px; }
.showcase-desktop-small { flex: 1 1 62%; min-width: 0; }
.showcase-phone { flex: 0 1 34%; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 760px) {
  .showcase-desktop-small, .showcase-phone { flex: 1 1 auto; width: 100%; }
}

.showcase-mobile-row { display: flex; gap: 24px; align-items: flex-start; }
.showcase-phone-sm { flex: 1 1 0; min-width: 0; align-items: center; }
.showcase-phone-sm .phone-frame { max-width: 200px; }
@media (max-width: 860px) {
  .showcase-mobile-row { flex-wrap: wrap; }
  .showcase-phone-sm { flex: 1 1 calc(50% - 12px); }
}
@media (max-width: 480px) {
  .showcase-phone-sm { flex: 1 1 100%; }
  .showcase-phone-sm .phone-frame { max-width: 240px; }
}

.showcase-caption {
  color: var(--slate);
  font-size: 0.9rem;
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
}

.browser-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: #ececea;
  border-bottom: 1px solid var(--line);
}
.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7d5d0;
}
.browser-frame img { display: block; width: 100%; height: auto; }

.phone-frame {
  position: relative;
  background: linear-gradient(155deg, #3d4147 0%, #232629 45%, #131416 100%);
  border-radius: 34px;
  padding: 12px 10px;
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  max-width: 240px;
  margin: 0 auto;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 32%;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  z-index: 1;
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  position: relative;
}


/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 32px;
}
.cta-band h2 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.6rem);
  max-width: 30ch;
  margin: 18px auto 0;
}
.cta-band .lede { margin: 16px auto 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 32px; }

@media (max-width: 640px) {
  .cta-band { margin: 0 20px; padding: 56px 24px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--slate);
}
.footer-logo { height: 32px; }
