/* ==========================================================================
   WP Forge — marketing site
   Palette sampled directly from the logo artwork.
   ========================================================================== */

:root {
  /* Brand — from the logo */
  --navy-900: #0A1C33;
  --navy-800: #142846;
  --navy-700: #1B3557;
  --navy-600: #285078;
  --blue-600: #145A96;
  --blue-500: #1E6FAF;
  --teal-500: #287896;
  --sky-200:  #AAD2E6;
  --gray-500: #6E7878;
  --ember:    #F07028;
  --ember-dk: #D45A18;
  --amber:    #F8B838;

  /* Neutrals */
  --ink:      #142846;
  --body:     #4A5765;
  --muted:    #6E7878;
  --line:     #E2E8F0;
  --surface:  #F4F7FA;
  --white:    #FFFFFF;

  /* Type */
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(20, 40, 70, .06);
  --shadow-md: 0 10px 30px rgba(20, 40, 70, .10);
  --shadow-lg: 0 24px 60px rgba(10, 28, 51, .18);
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue-600); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em; background: rgba(20, 40, 70, .06);
  padding: .1em .4em; border-radius: 4px; color: var(--navy-700);
}
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ember); color: #fff; padding: 12px 20px;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .95rem; letter-spacing: .01em; text-decoration: none;
  padding: 14px 30px; border-radius: 8px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-ember { background: var(--ember); color: #fff; box-shadow: 0 6px 18px rgba(240, 112, 40, .35); }
.btn-ember:hover { background: var(--ember-dk); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 190px; }

.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--navy-700); text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--ember); }
.site-nav .btn { color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 11px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 75% 8%, rgba(240, 112, 40, .22), transparent 60%),
    radial-gradient(700px 500px at 12% 92%, rgba(40, 120, 150, .30), transparent 62%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: clamp(64px, 11vw, 120px) 0 clamp(56px, 9vw, 100px);
}
/* faint forge-ember flecks */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 18% 30%, rgba(248, 184, 56, .55), transparent),
    radial-gradient(2px 2px at 62% 18%, rgba(240, 112, 40, .45), transparent),
    radial-gradient(1.5px 1.5px at 84% 62%, rgba(248, 184, 56, .40), transparent),
    radial-gradient(1.5px 1.5px at 35% 78%, rgba(240, 112, 40, .35), transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { color: #fff; }
.hero .hot {
  background: linear-gradient(95deg, var(--amber), var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px;
}
.eyebrow-dark { color: var(--ember); }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.25rem); color: rgba(255, 255, 255, .84); max-width: 60ch; }
.lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  list-style: none; margin: 44px 0 0; padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .92rem; color: rgba(255, 255, 255, .78);
}
.hero-points li { display: flex; align-items: center; gap: 9px; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ── Plugin cards ────────────────────────────────────────────────────── */
.tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-500); background: rgba(40, 120, 150, .10);
  padding: 5px 11px; border-radius: 100px; margin: 0 0 14px;
}
.tag-ember { color: var(--ember-dk); background: rgba(240, 112, 40, .12); }

.plugin {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plugin:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBD8E6; }
.plugin h3 { margin-bottom: .45em; }
.plugin-lede { color: var(--body); margin-bottom: 1rem; }
.plugin-note {
  font-size: .93rem; color: var(--muted);
  border-left: 3px solid var(--ember); padding: 2px 0 2px 14px; margin: 0 0 1.25rem;
}

.plugin-feature {
  border-top: 4px solid var(--ember);
  padding: clamp(30px, 4vw, 48px);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.plugin-feature h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.plugin-feature .plugin-lede { font-size: 1.12rem; max-width: 68ch; }

.plugin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* Tick lists */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 9px; font-size: .95rem; color: var(--body); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .5em;
  width: 7px; height: 12px; border: solid var(--ember);
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-3px);
}
.ticks-2 { columns: 2; column-gap: 40px; }
.ticks-2 li { break-inside: avoid; }

/* ── Why grid ────────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.why-icon { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.why-card h3 { font-size: 1.1rem; }
.why-card p { font-size: .93rem; margin: 0; color: var(--muted); }

.disclaimer {
  max-width: 800px; margin: clamp(40px, 6vw, 60px) auto 0;
  font-size: .9rem; line-height: 1.7; color: var(--muted);
  background: rgba(20, 40, 70, .035); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
}
.disclaimer strong { color: var(--navy-700); }

/* ── Support ─────────────────────────────────────────────────────────── */
.section-dark {
  background:
    radial-gradient(700px 380px at 85% 20%, rgba(240, 112, 40, .20), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.section-dark h2 { color: #fff; }
.support-inner { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
/* The logo artwork is drawn for light backgrounds — its wordmark is the same navy
   as this section. Sit it on a light tile so it stays legible instead of vanishing. */
.support-mark {
  background: #fff; border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow-lg); width: 100%; max-width: 250px;
}
.support-mark img { width: 100%; }
.support-copy .lede { margin-bottom: 28px; }
.support-meta { font-size: .88rem; color: rgba(255, 255, 255, .6); margin: 18px 0 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .6); padding: 56px 0 44px; }
.footer-inner { display: grid; gap: 26px; justify-items: center; text-align: center; }
.footer-logo { width: 168px; filter: brightness(0) invert(1); opacity: .82; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.footer-nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.footer-nav a:hover { color: var(--amber); }
.footer-legal { font-size: .8rem; line-height: 1.7; margin: 0; color: rgba(255, 255, 255, .45); }

/* ══ Tablet ══════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .support-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .support-mark { max-width: 190px; padding: 20px; }
  .support-copy .lede { margin-left: auto; margin-right: auto; }
}

/* ══ Mobile nav breakpoint ═══════════════════════════════════════════ */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav li:first-child { border-top: 0; }
  .site-nav a:not(.btn) { display: block; padding: 15px 0; }
  .site-nav .btn { display: block; text-align: center; margin: 14px 0 4px; }
  .site-nav li:has(.btn) { border-top: 0; }
}

/* ══ Small tablet / large phone ══════════════════════════════════════ */
@media (max-width: 760px) {
  .plugin-grid { grid-template-columns: 1fr; }
  .ticks-2 { columns: 1; }
}

/* ══ Phone ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .brand img { width: 158px; }
  .why-grid { grid-template-columns: 1fr; }
  .plugin { padding: 26px 22px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-points { gap: 10px; flex-direction: column; }
  .footer-nav { gap: 18px; }
}

/* ── Motion / print ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .plugin:hover { transform: none; }
}
@media print {
  .site-header, .hero-actions, .nav-toggle { display: none; }
  body { color: #000; }
  .hero, .section-dark { background: #fff; color: #000; }
  .hero h1, .section-dark h2 { color: #000; }
}
