/*
 * GoGrab Pulse — shared marketing chrome
 * Aligned with deploy/gograb-landing/latest/assets/landing.css tokens & patterns.
 * Consumed by: /index.html + /landing/features/*.html
 * Bump ?v= on links when editing.
 */

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

:root {
  --void: #000000;
  --deep: #080818;
  --surface: #0d0d26;
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);

  --purple: #7c3aed;
  --purple-l: #a78bfa;
  --blue: #3b82f6;
  --blue-l: #60a5fa;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --amber: #fbbf24;

  --grad-primary: linear-gradient(135deg, #7c3aed, #ec4899);
  --grad-pulse: linear-gradient(135deg, #6366f1 0%, #a855f7 45%, #ec4899 100%);
  --grad-header: linear-gradient(90deg, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
  --grad-text: linear-gradient(135deg, #a78bfa, #60a5fa);

  --text-1: #ffffff;
  --text-2: rgba(255, 255, 255, 0.68);
  --text-3: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.08);

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.65;
}

/* ====== Background (gograb-landing parity) ====== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -10;
  background: radial-gradient(ellipse at 25% -10%, #1a0a2e 0%, #000010 55%);
}

.nebula-container {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  overflow: hidden;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.nebula.n1 {
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14) 0%, transparent 72%);
  top: -220px;
  right: -120px;
  animation: drift 34s ease-in-out infinite;
}

.nebula.n2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
  bottom: 0;
  left: -140px;
  animation: drift 28s ease-in-out infinite reverse;
}

.nebula.n3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  top: 42%;
  left: 38%;
  animation: drift 38s ease-in-out infinite;
  animation-delay: -12s;
}

.nebula.n4 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, transparent 70%);
  top: 68%;
  right: 12%;
  animation: drift 30s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(18px, -24px) scale(1.03);
  }
  66% {
    transform: translate(-22px, 14px) scale(0.97);
  }
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -8;
  pointer-events: none;
}

.sl {
  position: absolute;
  inset: 0;
}

.sl-s {
  background-image:
    radial-gradient(1px 1px at 18px 28px, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 52px 82px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 108px 40px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 160px 110px, rgba(255, 255, 255, 0.55), transparent);
  background-size: 200px 200px;
  animation: twinkle 7s ease-in-out infinite;
}

.sl-m {
  background-image:
    radial-gradient(1.5px 1.5px at 90px 130px, white, transparent),
    radial-gradient(2px 2px at 240px 55px, rgba(255, 255, 255, 0.85), transparent);
  background-size: 320px 320px;
  animation: twinkle 10s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ====== Ribbon (below fixed stack) ====== */
.pulse-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  color: #fff;
  text-align: center;
  padding: 10px 48px 10px 40px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.pulse-ribbon a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.pulse-ribbon-dismiss {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.pulse-ribbon-dismiss:hover {
  opacity: 1;
}

/* Fixed header below ribbon */
body.has-pulse-ribbon header {
  top: 44px;
}

body:not(.has-pulse-ribbon) header {
  top: 0;
}

header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(5, 5, 18, 0.72);
  backdrop-filter: blur(22px) saturate(175%);
  border-bottom: 1px solid var(--border);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-header);
  opacity: 0.35;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 26px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-1);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--grad-pulse);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-move 8s ease infinite;
}

@keyframes grad-move {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-1);
  background: var(--surface-1);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(124, 58, 237, 0.55);
}

.nav-menu-btn {
  display: none;
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-1);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-menu-icon {
  width: 22px;
  height: 22px;
}

.nav-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.nav-menu-overlay.is-open {
  display: block;
}

.nav-menu-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 380px);
  height: 100%;
  background: #0a0a18;
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.nav-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.nav-menu-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-2);
}

.nav-menu-close {
  background: transparent;
  border: 0;
  color: var(--text-1);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.nav-menu-scroll {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-menu-scroll .nav-link {
  padding: 12px 14px;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }
  .nav-menu-btn {
    display: inline-flex;
  }
}

/* ====== Hero ====== */
main {
  position: relative;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 150px 26px 100px;
}

body.has-pulse-ribbon .hero {
  padding-top: 195px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  padding: 8px 20px;
  border-radius: 40px;
  margin-bottom: 28px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.35);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-title-line1 {
  display: block;
  background: var(--grad-pulse);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-move 7s ease infinite;
}

.hero-title-line2 {
  display: block;
  font-size: 52%;
  font-weight: 600;
  margin-top: 10px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typewriter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px auto 22px;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 2vw, 1.05rem);
  color: var(--text-2);
  max-width: 900px;
}

.tw-prefix {
  color: var(--cyan);
  font-weight: 600;
}

.tw-text {
  color: var(--text-1);
  border-right: 2px solid var(--cyan);
  padding-right: 4px;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%,
  100% {
    border-right-color: var(--cyan);
  }
  50% {
    border-right-color: transparent;
  }
}

.hero-sub {
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-sub strong {
  color: var(--amber);
  font-weight: 600;
}

.pulse-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: left;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--text-2);
  font-size: 0.95rem;
}

.pulse-pill-tag {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.25);
  color: var(--purple-l);
}

.pulse-pill em {
  color: var(--purple-l);
  font-style: normal;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 28px rgba(236, 72, 153, 0.4);
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(124, 58, 237, 0.55);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 840px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hstat {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}

.hstat-val {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.hstat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.35;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.3;
    transform: translateY(10px);
  }
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 0 auto;
  max-width: 900px;
}

/* ====== Sections ====== */
.section {
  padding: 100px 0;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 22px;
  line-height: 1.15;
}

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

.section-lead {
  font-size: 1.12rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 48px;
}

/* Pillar grid */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  text-align: left;
}

.pillar-card {
  display: block;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-1);
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-3);
  line-height: 1.55;
}

.pillar-more {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pink);
}

/* Inner pages */
.page-article {
  padding: 130px 0 100px;
}

body.has-pulse-ribbon .page-article {
  padding-top: 165px;
}

.article-hero {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}

.article-hero h1 .grad {
  background: var(--grad-pulse);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.7;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 48px 0 16px;
  color: var(--text-1);
}

.article-body p {
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.75;
}

.article-body ul {
  margin: 12px 0 24px 1.2em;
  color: var(--text-2);
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Hub cards (features index) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.hub-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.12) 0%, rgba(12, 12, 28, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s, box-shadow 0.22s;
}

.hub-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.2);
}

.hub-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.hub-card p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
footer.site-footer {
  padding: 56px 26px;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer.site-footer p {
  color: var(--text-3);
  font-size: 0.88rem;
}

footer.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

footer.site-footer a:hover {
  text-decoration: underline;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
