/* =====================================================================
   Sporthive — Colors & Type
   Source of truth: brand-guidelines.html + flutterflow_theme.dart
   ===================================================================== */


:root {
  /* ── CORE PALETTE ──────────────────────────────────────────────── */
  --sh-primary:        #22453B; /* forest green — primary surface */
  --sh-tertiary:       #3A715F; /* mid green */
  --sh-alternate:      #4C927A; /* light green — gradient stops */
  --sh-accent-lime:    #B9FD00; /* neon lime — THE accent. CTAs only. */

  /* Dark / surfaces */
  --sh-bg-deep:        #0A1410; /* near-black green */
  --sh-deep-green:     #19332B; /* dark surface (accent3) */
  --sh-bg-light:       #F5F5F7; /* off-white */
  --sh-white:          #FFFFFF;

  /* Text */
  --sh-fg1:            #FFFFFF;          /* primary text on dark */
  --sh-fg2:            #C7C1B5;          /* warm grey, secondary */
  --sh-fg3:            rgba(255,255,255,0.55); /* tertiary / desc */
  --sh-fg4:            rgba(255,255,255,0.35); /* quaternary / meta */
  --sh-fg-on-light:    #0A1410;          /* on light surface */

  /* Status / semantic */
  --sh-success:        #00DC82;
  --sh-warning:        #FFCC00;
  --sh-error:          #FF3B30;
  --sh-info:           #007AFF;
  --sh-available:      #00B96D; /* "online / available" dot */
  --sh-ai:             #7C3AED; /* AI / LLM responses ONLY */
  --sh-warning-accent: #FFA500;
  --sh-deep-error:     #74130C;

  /* ── GLASS / SURFACES ──────────────────────────────────────────── */
  --sh-glass-fill:        rgba(255,255,255,0.08); /* standard */
  --sh-glass-fill-soft:   rgba(255,255,255,0.04); /* subtle */
  --sh-glass-fill-strong: rgba(255,255,255,0.10);
  --sh-glass-border:      rgba(255,255,255,0.14); /* standard */
  --sh-glass-border-soft: rgba(255,255,255,0.08);
  --sh-glass-border-strong: rgba(255,255,255,0.20);
  --sh-glass-blur:        24px; /* standard backdrop blur */
  --sh-glass-blur-nav:    40px; /* navbar / overlays */
  --sh-glass-saturate:    1.3;

  /* ── SIGNATURE GRADIENTS ──────────────────────────────────────── */
  /* Cover gradient — used on hero / splash / cover */
  --sh-grad-cover:
    linear-gradient(160deg, #0A1410 0%, #22453B 40%, #3A715F 70%, #4C927A 90%);
  /* App background — used behind every main screen */
  --sh-grad-app:
    linear-gradient(225deg, #4C927A 0%, #22453B 35%, #000000 95%);
  /* Glass demo / Bento backdrop */
  --sh-grad-glass:
    linear-gradient(135deg, #22453B 0%, #3A715F 100%);
  /* Lime glow — used as accent radial under cover logo */
  --sh-glow-lime:
    radial-gradient(circle, rgba(185,253,0,0.15) 0%, transparent 70%);

  /* ── RADII ─────────────────────────────────────────────────────── */
  --sh-radius-pill:    9999px;     /* nav bubble, pills */
  --sh-radius-nav:     50px;       /* glass bubble navbar */
  --sh-radius-card:    24px;       /* bento cards */
  --sh-radius-inner:   16px;       /* inner panels, chips */
  --sh-radius-tight:   12px;       /* small chips, status */
  --sh-radius-button:  14px;       /* buttons */
  --sh-radius-icon:    8px;

  /* ── ELEVATION (subtle — Apple-esque) ─────────────────────────── */
  --sh-shadow-flat:    0 1px 0 rgba(255,255,255,0.05) inset;
  --sh-shadow-card:    0 2px 10px rgba(0,0,0,0.35);
  --sh-shadow-glass:   0 2px 10px rgba(0,0,0,0.20),
                       inset 0 1px 0 rgba(255,255,255,0.08);
  --sh-shadow-lift:    0 12px 40px rgba(0,0,0,0.45);
  --sh-shadow-cover:   0 30px 80px rgba(0,0,0,0.50);

  /* ── SPACING (4-pt rhythm) ────────────────────────────────────── */
  --sh-space-1:  4px;
  --sh-space-2:  8px;
  --sh-space-3:  12px;
  --sh-space-4:  16px;
  --sh-space-5:  20px;
  --sh-space-6:  24px;
  --sh-space-8:  32px;
  --sh-space-10: 40px;
  --sh-space-12: 48px;
  --sh-space-16: 64px;
  --sh-space-20: 80px;

  /* ── MOTION ───────────────────────────────────────────────────── */
  --sh-ease-spring: cubic-bezier(0.32, 1.32, 0.36, 1);    /* spring-y */
  --sh-ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);    /* fluid */
  --sh-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --sh-dur-fast:    180ms;
  --sh-dur-normal:  300ms;
  --sh-dur-slow:    500ms;

  /* ── TYPE — FAMILY + SCALE ─────────────────────────────────────── */
  --sh-font:         'Inter Tight', -apple-system, BlinkMacSystemFont,
                     'Segoe UI', Helvetica, Arial, sans-serif;

  /* font sizes — match flutter_flow_theme.dart */
  --sh-fs-display-lg:  64px;
  --sh-fs-display-md:  44px;
  --sh-fs-display-sm:  36px;
  --sh-fs-headline-lg: 32px;
  --sh-fs-headline-md: 28px;
  --sh-fs-headline-sm: 24px;
  --sh-fs-title-lg:    20px;
  --sh-fs-title-md:    18px;
  --sh-fs-title-sm:    16px;
  --sh-fs-body-lg:     16px;
  --sh-fs-body-md:     14px;
  --sh-fs-body-sm:     12px;
  --sh-fs-label-lg:    16px;
  --sh-fs-label-md:    14px;
  --sh-fs-label-sm:    12px;

  /* tracking — display sizes get tighter tracking */
  --sh-track-display:  -0.02em;
  --sh-track-headline: -0.01em;
  --sh-track-eyebrow:   0.20em; /* uppercase eyebrow labels */
  --sh-track-section:   0.40em; /* section labels — wide */
}

/* =====================================================================
   Base typography — utility classes for the scale.
   Use these on <h1>/<p>/<span> as drop-ins.
   ===================================================================== */

.sh-font          { font-family: var(--sh-font); -webkit-font-smoothing: antialiased; }

.sh-display-lg   { font: 600 var(--sh-fs-display-lg)/1.05  var(--sh-font); letter-spacing: var(--sh-track-display); }
.sh-display-md   { font: 600 var(--sh-fs-display-md)/1.08  var(--sh-font); letter-spacing: var(--sh-track-display); }
.sh-display-sm   { font: 600 var(--sh-fs-display-sm)/1.1   var(--sh-font); letter-spacing: var(--sh-track-display); }
.sh-headline-lg  { font: 600 var(--sh-fs-headline-lg)/1.15 var(--sh-font); letter-spacing: var(--sh-track-headline); }
.sh-headline-md  { font: 600 var(--sh-fs-headline-md)/1.2  var(--sh-font); letter-spacing: var(--sh-track-headline); }
.sh-headline-sm  { font: 600 var(--sh-fs-headline-sm)/1.25 var(--sh-font); }
.sh-title-lg     { font: 600 var(--sh-fs-title-lg)/1.3     var(--sh-font); }
.sh-title-md     { font: 600 var(--sh-fs-title-md)/1.35    var(--sh-font); }
.sh-title-sm     { font: 600 var(--sh-fs-title-sm)/1.4     var(--sh-font); }
.sh-body-lg      { font: 400 var(--sh-fs-body-lg)/1.5      var(--sh-font); }
.sh-body-md      { font: 400 var(--sh-fs-body-md)/1.55     var(--sh-font); }
.sh-body-sm      { font: 400 var(--sh-fs-body-sm)/1.6      var(--sh-font); }
.sh-label-lg     { font: 400 var(--sh-fs-label-lg)/1.4     var(--sh-font); color: var(--sh-fg2); }
.sh-label-md     { font: 400 var(--sh-fs-label-md)/1.4     var(--sh-font); color: var(--sh-fg2); }
.sh-label-sm     { font: 400 var(--sh-fs-label-sm)/1.4     var(--sh-font); color: var(--sh-fg2); }

/* Eyebrow labels — section markers, all caps */
.sh-eyebrow {
  font: 600 11px/1 var(--sh-font);
  letter-spacing: var(--sh-track-eyebrow);
  text-transform: uppercase;
  color: var(--sh-accent-lime);
}
.sh-section-label {
  font: 600 11px/1 var(--sh-font);
  letter-spacing: var(--sh-track-section);
  text-transform: uppercase;
  color: var(--sh-fg4);
}

/* Wordmark — "Sport" white + "hive" lime */
.sh-wordmark {
  font: 700 var(--sh-fs-display-md)/1 var(--sh-font);
  letter-spacing: var(--sh-track-display);
  color: var(--sh-fg1);
}
.sh-wordmark > .hive { color: var(--sh-accent-lime); }

/* =====================================================================
   Semantic element defaults — opt-in by setting class="sh-base" on body
   ===================================================================== */
.sh-base {
  font-family: var(--sh-font);
  background: var(--sh-bg-deep);
  color: var(--sh-fg1);
  -webkit-font-smoothing: antialiased;
}
.sh-base h1 { font: 600 var(--sh-fs-display-sm)/1.1   var(--sh-font); letter-spacing: var(--sh-track-display); margin: 0; }
.sh-base h2 { font: 600 var(--sh-fs-headline-lg)/1.15 var(--sh-font); letter-spacing: var(--sh-track-headline); margin: 0; }
.sh-base h3 { font: 600 var(--sh-fs-headline-md)/1.2  var(--sh-font); letter-spacing: var(--sh-track-headline); margin: 0; }
.sh-base h4 { font: 600 var(--sh-fs-title-lg)/1.3     var(--sh-font); margin: 0; }
.sh-base h5 { font: 600 var(--sh-fs-title-md)/1.35    var(--sh-font); margin: 0; }
.sh-base p  { font: 400 var(--sh-fs-body-md)/1.55     var(--sh-font); color: var(--sh-fg2); margin: 0; }
.sh-base small { font-size: var(--sh-fs-body-sm); color: var(--sh-fg4); }

/* =====================================================================
   Glass / Bento card — the signature surface
   ===================================================================== */
.sh-glass {
  background: var(--sh-glass-fill);
  -webkit-backdrop-filter: blur(var(--sh-glass-blur)) saturate(var(--sh-glass-saturate));
          backdrop-filter: blur(var(--sh-glass-blur)) saturate(var(--sh-glass-saturate));
  border: 1px solid var(--sh-glass-border);
  border-radius: var(--sh-radius-card);
  box-shadow: var(--sh-shadow-glass);
}
.sh-glass--soft   { background: var(--sh-glass-fill-soft); border-color: var(--sh-glass-border-soft); }
.sh-glass--strong { background: var(--sh-glass-fill-strong); border-color: var(--sh-glass-border-strong); }
.sh-glass--nav    {
  -webkit-backdrop-filter: blur(var(--sh-glass-blur-nav)) saturate(var(--sh-glass-saturate));
          backdrop-filter: blur(var(--sh-glass-blur-nav)) saturate(var(--sh-glass-saturate));
  border-radius: var(--sh-radius-nav);
  border-width: 2px;
  background: rgba(255,255,255,0.10);
}

/* =====================================================================
   Buttons — lime CTA + glass secondary + ghost
   ===================================================================== */
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--sh-radius-button);
  font: 600 var(--sh-fs-body-lg)/1 var(--sh-font);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--sh-dur-fast) var(--sh-ease-spring),
              background-color var(--sh-dur-fast) var(--sh-ease-out),
              box-shadow var(--sh-dur-normal) var(--sh-ease-out);
  user-select: none;
}
.sh-btn:active { transform: scale(0.97); }
.sh-btn--primary {
  background: var(--sh-accent-lime);
  color: var(--sh-fg-on-light);
  box-shadow: 0 8px 24px rgba(185,253,0,0.25);
}
.sh-btn--primary:hover { background: #C9FF1A; }
.sh-btn--secondary {
  background: var(--sh-glass-fill);
  color: var(--sh-fg1);
  border-color: var(--sh-glass-border);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.sh-btn--secondary:hover { background: rgba(255,255,255,0.14); }
.sh-btn--ghost {
  background: transparent; color: var(--sh-fg1);
  border-color: var(--sh-glass-border-soft);
}
.sh-btn--ghost:hover { background: var(--sh-glass-fill-soft); }
.sh-btn--small { padding: 8px 14px; font-size: var(--sh-fs-body-md); }
/* =====================================================================
   Sporthive marketing site - page styles (sits on top of colors_and_type.css)
   ===================================================================== */

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sh-font);
  background: var(--sh-bg-deep);
  color: var(--sh-fg1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
* { box-sizing: border-box; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Material Symbols utility */
.msr {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* =====================================================================
   Page-wide ambient background - 3-layer Sporthive stack
   ===================================================================== */
.page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% 0%, rgba(76,146,122,0.35) 0%, transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(58,113,95,0.25) 0%, transparent 60%),
    radial-gradient(1100px 700px at 50% 110%, rgba(185,253,0,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #07100C 0%, #0A1410 40%, #0A1410 100%);
}
.page-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: url(site/assets/page-bg-texture.png);
  background-size: cover; background-position: center;
  opacity: 0.08; mix-blend-mode: overlay;
}

/* Subtle film grain - omitted in standalone build; inline SVG data-URI
   parsing conflicts with our HTML bundler. The forest-green gradient
   carries the mood on its own. */
.page-grain { display: none; }

main { position: relative; z-index: 2; }

/* =====================================================================
   Layout containers
   ===================================================================== */
.container {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* =====================================================================
   Nav bar - floating glass pill, top-center (Novu vibe)
   ===================================================================== */
.nav {
  position: fixed; top: 16px; left: 0; right: 0;
  z-index: 50; display: flex; justify-content: center;
  padding: 0 16px; pointer-events: none;
}
.nav-inner {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 22px;
  background: rgba(10, 20, 16, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
          backdrop-filter: blur(28px) saturate(1.4);
  border-radius: 9999px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4),
              inset 0 1px 0 rgba(255,255,255,0.06);
  pointer-events: auto;
  max-width: 980px; width: 100%;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  margin-right: auto; font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-brand .hex { width: 22px; height: 22px; }
.nav-brand .hive { color: var(--sh-accent-lime); }
.nav-links {
  display: flex; gap: 4px;
}
.nav-link {
  padding: 10px 14px; border-radius: 9999px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.72);
  transition: color .2s ease, background .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 9999px;
  background: var(--sh-accent-lime); color: var(--sh-fg-on-light);
  font-weight: 600; font-size: 14px; letter-spacing: -0.005em;
  border: none; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .15s var(--sh-ease-spring), background .2s ease;
}
.nav-cta:hover { background: #C9FF1A; }
.nav-cta:active { transform: scale(0.97); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-inner { padding: 6px 6px 6px 18px; }
}

/* =====================================================================
   Eyebrow / dot
   ===================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sh-accent-lime);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sh-accent-lime);
  box-shadow: 0 0 12px rgba(185,253,0,0.6);
}

/* Display heading utility */
.display {
  font-family: var(--sh-font);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.display.xl  { font-size: clamp(48px, 7vw, 88px); }
.display.lg  { font-size: clamp(40px, 5.5vw, 64px); }
.display.md  { font-size: clamp(32px, 4vw, 44px); }

.subhead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.45; color: rgba(255,255,255,0.65);
  max-width: 540px;
  text-wrap: pretty;
}

/* =====================================================================
   Buttons (page-wide; cleaner than the global .sh-btn)
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 9999px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--sh-ease-spring),
              background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--sh-accent-lime); color: var(--sh-fg-on-light);
  box-shadow: 0 8px 24px rgba(185,253,0,0.20),
              inset 0 -1px 0 rgba(0,0,0,0.10);
}
.btn-primary:hover { background: #C9FF1A; }
.btn-secondary {
  background: rgba(255,255,255,0.06); color: #fff;
  border-color: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.10); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn .msr { font-size: 18px; }

/* =====================================================================
   Glass surface
   ===================================================================== */
.glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
          backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2),
              inset 0 1px 0 rgba(255,255,255,0.06);
}

/* =====================================================================
   Animated ambient lime spotlight (Novu vibe)
   ===================================================================== */
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}
.spot {
  position: absolute; pointer-events: none; z-index: 0;
  filter: blur(60px); opacity: 0.7;
  animation: drift 18s ease-in-out infinite;
}

/* Section header pattern */
.sec-head {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 64px; max-width: 720px;
}
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* Reveal - content fades + lifts in when entering viewport.
   Hidden by default; `.in` is added by the React Reveal component. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .85s var(--sh-ease-out),
    transform .9s var(--sh-ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { transition: none; opacity: 1; transform: none; }
}

/* Hide scrollbars on horizontal scrollers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 0 32px;
  position: relative; z-index: 2;
  margin-top: 64px;
}
.footer-row {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start;
  justify-content: space-between;
}
.footer-meta { color: rgba(255,255,255,0.45); font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 13px; }
.footer-links a:hover { color: #fff; }


@keyframes blink { 50% { opacity: 0; } }
@keyframes dot   { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(4px); opacity: 1; }
}
