/* Shared styles for every page on the site. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1b1d1f;
  --muted: #5d636a;
  --line: #e2e3e0;
  --accent: #3f7a00;      /* brand green, dark enough for text on light surfaces */
  --accent-ink: #121417;
  --brand: #b8f03a;       /* FryePower lime: POWER, buttons, highlights on dark */
  --brand-ink: #121417;   /* text on the lime */
  --hero-bg: #121417;
  --hero-text: #f3f4f1;
  --radius: 14px;
  --max: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101316;
    --surface: #171b1f;
    --text: #e8eaec;
    --muted: #9aa1a8;
    --line: #262c32;
    --accent: #b8f03a;
    --accent-ink: #121417;
    --hero-bg: #0a0d10;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header / nav */
header.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--hero-bg) 92%, transparent);
  backdrop-filter: blur(6px);
  color: var(--hero-text);
}
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
/* Wordmark: the FRYE logo (inline SVG) + POWER in Michroma */
.brand { display: flex; align-items: flex-end; gap: 7px; text-decoration: none; color: var(--hero-text); flex-shrink: 0; }
.brand svg { width: 102px; height: 34px; display: block; }
.brand .power { font-family: Michroma, "Arial Narrow", sans-serif; font-size: 13px; line-height: 1; letter-spacing: .16em; color: var(--brand); padding-bottom: 1px; }
nav ul { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
nav a { text-decoration: none; opacity: .85; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; }
nav a[aria-current="page"] { color: var(--brand); }
nav a.nav-cta { opacity: 1; display: inline-block; line-height: 40px; padding: 0 16px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font-weight: 600; white-space: nowrap; }
nav a.nav-cta:hover { filter: brightness(1.08); }
nav a.nav-cta[aria-current="page"] { color: var(--brand-ink); }
@media (max-width: 640px) { nav ul { gap: 14px; } nav .hide-sm { display: none; } }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero.compact { padding: 56px 0 48px; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--brand); font-weight: 600; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; margin: 12px 0 18px; max-width: 16ch; }
.hero.compact h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: none; }
.hero p { font-size: 1.15rem; max-width: 52ch; opacity: .85; margin: 0 0 30px; }
.hero.compact p { margin-bottom: 0; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-ink) 18%, var(--brand)); }
.btn.ghost { border-color: color-mix(in srgb, currentColor 35%, transparent); background: transparent; color: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }

/* Sections and cards */
section { padding: 80px 0; }
section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.lead { color: var(--muted); max-width: 60ch; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card svg { width: 34px; height: 34px; color: var(--accent); }
.card h3 { margin: 14px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

.hero .badge { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }

footer { padding: 30px 0 40px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
