@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0a0a0c;
  --bg-2: #0e0e12;
  --panel: #15151b;
  --panel-2: #1c1c24;
  --panel-3: #232330;
  --line: #2a2a34;
  --line-soft: #20202a;
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --faint: #6b6b76;
  --accent: #f59e0b;        /* forged amber */
  --accent-hot: #fb7a18;    /* forge fire */
  --accent-dim: #b45309;    /* deep amber */
  --high: #f0564a;
  --warn: #f5a524;
  --info: #4cc3ff;
  --optimal: #2fd07a;
  --radius: 14px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  --glow: 0 8px 26px -8px rgba(245, 122, 24, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(245, 122, 24, 0.10), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(245, 158, 11, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}
h1, h2, h3, h4 { font-family: var(--font-display); }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hot); }
img, svg { max-width: 100%; }
::selection { background: rgba(245, 122, 24, 0.3); color: #fff; }
::placeholder { color: var(--faint); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #26262f; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #34343f; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 48px 22px 90px; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Header ---- */
header { text-align: center; margin-bottom: 8px; }
.brand h1 {
  font-family: var(--font-display);
  font-size: 2.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin: 0; font-weight: 700; line-height: 1.05;
}
.brand h1 .accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-hot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px rgba(245, 122, 24, 0.35);
}
.brand .kicker { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.34em; text-transform: uppercase; margin: 0 0 6px; }
.tagline { color: var(--muted); font-size: 1.02rem; margin: 16px auto 0; max-width: 60ch; line-height: 1.65; }
.pills { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  border-radius: 999px; font-size: 0.76rem; font-weight: 600;
  background: rgba(47,208,122,0.08); border: 1px solid rgba(47,208,122,0.3); color: var(--optimal);
}
.pill.amber { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.32); color: var(--accent); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---- Featured (Bloodwork) ---- */
.featured {
  margin-top: 38px; padding: 30px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--accent-dim); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.featured .eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 8px; }
.featured h2 { font-size: 1.7rem; margin: 0 0 8px; letter-spacing: 0.02em; }
.featured p { color: var(--muted); margin: 0; font-size: 0.96rem; max-width: 54ch; }

/* ---- Tool grid ---- */
.sec-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 40px 0 14px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-dim); }
.card .tname { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: 0.02em; margin: 0 0 8px; color: var(--text); }
.card .tdesc { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; flex: 1; line-height: 1.6; }
.card .tag { display: inline-block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-dim); margin-bottom: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(100deg, var(--accent), var(--accent-hot));
  color: #1a1407; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 12px 22px; border-radius: 10px; font-size: 0.86rem; border: none; cursor: pointer;
  align-self: flex-start; transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); color: #1a1407; }
.featured .btn { align-self: center; white-space: nowrap; }

/* ---- Email capture ---- */
.notify {
  margin-top: 40px; padding: 28px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center;
}
.notify h3 { margin: 0 0 6px; font-size: 1.2rem; }
.notify p { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.notify form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.notify input {
  flex: 1; min-width: 240px; max-width: 360px;
  background: var(--panel-3); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 13px 15px; font-size: 0.95rem; font-family: var(--font-body);
}
.notify input:focus { outline: none; border-color: var(--accent); }
.notify .msg { margin-top: 14px; font-size: 0.88rem; color: var(--optimal); min-height: 1.2em; }
.notify .msg.err { color: var(--high); }

/* ---- Footer ---- */
footer { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 24px; color: var(--faint); font-size: 0.78rem; line-height: 1.65; text-align: center; }
footer b { color: var(--muted); }
footer .legal { max-width: 70ch; margin: 0 auto 14px; }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  .featured { grid-template-columns: 1fr; text-align: center; }
  .featured p { margin: 0 auto; }
  .featured .btn { align-self: center; }
  .brand h1 { font-size: 2rem; }
}
