/* ============================================================
   SeedGator — dark/modern theme tokens + components
   Supplements Tailwind (loaded via CDN). Hand-written utilities
   for gradients, glass surfaces, glows and entrance animations.
   ============================================================ */

:root {
  /* base surfaces */
  --bg:        #07080a;
  --bg-2:      #0a0b0e;
  --surface:   #111317;
  --border:    rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text:      #e7e9ee;
  --muted:     #9aa3b2;
  --faint:     #6b7280;

  /* brand */
  --green:     #4caf2f;
  --green-300: #22c55e;
  --green-400: #34d36b;
  --purple:    #7c3aed;
  --blue:      #2563eb;

  /* gradients */
  --grad-accent: linear-gradient(135deg, #34d36b 0%, #22c55e 35%, #6d6bf5 75%, #2563eb 100%);
  --grad-purple: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --grad-green:  linear-gradient(135deg, #4caf2f 0%, #22c55e 100%);

  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ---- ambient page background glows ---- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 15% -5%, rgba(34, 197, 94, 0.12), transparent 60%),
    radial-gradient(55rem 40rem at 95% 0%, rgba(99, 102, 241, 0.14), transparent 60%),
    radial-gradient(50rem 50rem at 50% 120%, rgba(37, 99, 235, 0.10), transparent 60%),
    var(--bg);
}
.page-bg::after {  /* subtle grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
}

/* ---- gradient text ---- */
.text-gradient {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-purple {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- glass surfaces ---- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 107, 0.45);
  box-shadow: 0 18px 40px -22px rgba(34, 197, 94, 0.55);
}

/* gradient border (for featured plan) */
.gradient-border {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gradient {
  color: #06210f;
  background: var(--grad-green);
  box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.6);
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(34, 197, 94, 0.75);
}
.btn-purple {
  color: #fff;
  background: var(--grad-purple);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.6);
}
.btn-purple:hover { transform: translateY(-2px); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(52, 211, 107, 0.5); background: rgba(255, 255, 255, 0.05); }

/* ---- navbar ---- */
.nav-blur {
  background: rgba(8, 9, 11, 0.6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-link {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--grad-accent);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---- chips (apps) ---- */
.app-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.app-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 107, 0.5);
  background: rgba(34, 197, 94, 0.06);
}

/* green check bullet used in pricing/app lists */
.check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  position: relative;
}
.check::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid #34d36b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* feature icon tile (uses --c as "r,g,b") */
.feat-ico {
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: rgba(var(--c), 0.12);
  border: 1px solid rgba(var(--c), 0.3);
}

/* small label */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-400);
}

/* divider used in footer */
.grad-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 107, 0.5), rgba(99, 102, 241, 0.5), transparent);
}

/* ---- entrance animations ---- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Only hide pre-reveal when JS is active (html.js), so content is never
   permanently invisible if JS is disabled or the observer doesn't fire. */
.js .reveal { opacity: 0; }
.js .reveal.in { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; animation: none !important; }
  .glass-card:hover, .btn:hover, .app-chip:hover { transform: none; }
}

/* prose for legal pages */
.prose p { color: var(--muted); line-height: 1.8; margin: 0 0 1.1rem; }
.prose ol, .prose ul { color: var(--muted); line-height: 1.9; padding-left: 1.4rem; margin: 0 0 1.1rem; }
.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }
.prose strong { color: var(--text); }
.prose h2 { color: var(--text); font-size: 1.25rem; margin: 2rem 0 0.75rem; }
