/* ============================================================
   Anneal Metals - global stylesheet
   Light industrial theme. No build step required.
   ============================================================ */

:root {
  --ink: #14171a;
  --ink2: #3d444c;
  --ink3: #6b7480;
  --ink4: #98a1ab;

  --line: #e3e7ea;
  --line2: #cbd3da;

  --bg: #ffffff;
  --bg2: #f7f8fa;
  --bg3: #eef1f5;

  --dark: #0d1116;
  --dark2: #161c23;
  --dark-line: #262f39;

  --accent: #1a4f75;
  --accent2: #2f7fb8;
  --accent-soft: #eaf2f8;

  --ok: #12704f;
  --ok-soft: #e7f4ee;

  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 24, .05);
  --shadow: 0 1px 2px rgba(16, 20, 24, .05), 0 10px 28px rgba(16, 20, 24, .07);

  --wrap: 1180px;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', 'Courier New', monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p { margin: 0 0 1em; }

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

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.lead { font-size: 18px; line-height: 1.6; color: var(--ink2); }
.muted { color: var(--ink3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }

section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tint { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  font-family: inherit;
}
.btn:hover { border-color: var(--ink3); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #17445f; border-color: #17445f; color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .28); color: #eef2f5; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- topbar ---------- */
.topbar { background: var(--dark); color: #9aa6b2; font-size: 12.5px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #cfd8e0; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; align-items: center; white-space: nowrap; }
@media (max-width: 860px) { .topbar-cert { display: none; } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.brand-text em { font-style: normal; font-size: 10px; letter-spacing: .28em; color: var(--ink3); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav > a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--line2); }
.nav > a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 16px 0 0; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(13, 17, 22, .96), rgba(13, 17, 22, .98)),
    repeating-linear-gradient(90deg, #1b232c 0 1px, transparent 1px 68px);
  color: #e9eef3;
  padding: clamp(64px, 8vw, 108px) 0 clamp(48px, 6vw, 72px);
}
.hero h1 { color: #fff; max-width: 16em; }
.hero .lead { color: #a9b6c2; max-width: 44em; font-size: 17.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero-eyebrow { color: #6fa8d0; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(48px, 6vw, 72px);
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stat { background: var(--dark2); padding: 22px 20px; }
.hero-stat b { display: block; font-size: 26px; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.hero-stat span { font-size: 12.5px; color: #8d9aa6; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- trust strip ---------- */
.strip { background: var(--bg2); border-bottom: 1px solid var(--line); padding: 20px 0; }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.strip-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink4); }
.chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}

/* ---------- grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--line2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-flat:hover { transform: none; box-shadow: none; }

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 30px; height: 30px; }

.card-numbers { list-style: none; margin: 16px 0 0; padding: 0; font-size: 13.5px; }
.card-numbers li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--ink3);
}
.card-numbers li b { color: var(--ink); font-weight: 600; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- spec table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
table.spec th, table.spec td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th {
  background: var(--bg3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink2);
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: var(--bg2); }
table.spec td code { font-family: var(--mono); font-size: 13px; background: var(--bg3); padding: 2px 6px; border-radius: 5px; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 24px 0 24px 62px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 24px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  width: 38px; height: 26px;
  display: grid; place-items: center;
  border-radius: 6px;
}
.steps h3 { margin-bottom: 4px; font-size: 16px; }
.steps p { margin: 0; color: var(--ink3); font-size: 14.5px; }

.side-box .steps { margin-top: 4px; }
.side-box .steps li { padding-top: 14px; padding-bottom: 14px; padding-left: 50px; }
.side-box .steps li::before { top: 14px; width: 34px; height: 24px; font-size: 12px; }
.side-box .steps h3 { font-size: 14px; margin-bottom: 2px; }
.side-box .steps p { font-size: 13px; }

/* ---------- filter bar ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.filterbar .filter-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink4); margin-right: 4px; }
.fbtn {
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  padding: 8px 15px;
  border: 1px solid var(--line2);
  background: var(--bg);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink2);
  transition: all .15s;
}
.fbtn:hover { border-color: var(--ink3); color: var(--ink); }
.fbtn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty-note { padding: 34px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--radius-lg); color: var(--ink3); }

/* ---------- callout ---------- */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--ink2);
}
.callout strong { color: var(--ink); }
.callout-warn { border-left-color: #b07b1a; background: #fdf6e7; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.field label .req { color: #b4241f; }
.field .hint { font-size: 12px; color: var(--ink4); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: var(--bg);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(47, 127, 184, .14);
}
.field .err { font-size: 12.5px; color: #b4241f; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b4241f; }
.field.has-error .err { display: block; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink2); }
.check input { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-note { font-size: 12.5px; color: var(--ink4); }

.form-success {
  display: none;
  border: 1px solid #bfe0d1;
  background: var(--ok-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-success.is-visible { display: block; }
.form-success h3 { color: var(--ok); }
.form-success .mailto-fallback { margin-top: 18px; font-size: 13.5px; }

/* ---------- sidebar boxes ---------- */
.side-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--bg2); }
.side-box + .side-box { margin-top: 18px; }
.side-box h4 { margin-bottom: 12px; }
.side-box ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink2); }
.side-box li { margin-bottom: 7px; }
.side-box li:last-child { margin-bottom: 0; }

/* ---------- cta band ---------- */
.cta-band { background: var(--dark); color: #e9eef3; padding: clamp(48px, 6vw, 72px) 0; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #9aa6b2; margin: 0; }
.cta-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band .hero-actions { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #8d9aa6; padding: 64px 0 28px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--dark-line); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand-mark { background: #fff; color: var(--dark); }
.site-footer .brand-text em { color: #7b8794; }
.footer-about { margin: 18px 0 0; max-width: 32em; color: #8d9aa6; }
.footer-col h4 { color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #8d9aa6; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 24px; font-size: 12.5px; color: #6f7c89; }
.footer-bottom a { color: #8d9aa6; }

.footer-legal {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--dark-line);
  font-size: 12.5px;
  line-height: 1.7;
  color: #7b8794;
}
.footer-legal p { margin: 0 0 6px; max-width: 86em; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal strong { color: #b9c4ce; font-weight: 500; }

/* ---------- cookie banner ---------- */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--dark2);
  color: #cbd5de;
  border-top: 1px solid var(--dark-line);
  padding: 16px 0;
  display: none;
}
.cookie-bar.is-visible { display: block; }
.cookie-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; }
.cookie-in p { margin: 0; max-width: 62em; }
.cookie-in .btn { padding: 9px 16px; font-size: 13px; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .card { transition: none; }
}

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--ink4); padding: 20px 0 0; }
.crumbs a { color: var(--ink3); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; }

/* ---------- page hero ---------- */
.page-hero { background: var(--dark); color: #e9eef3; padding: clamp(40px, 5vw, 64px) 0 clamp(36px, 4vw, 52px); }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.page-hero p { color: #a9b6c2; max-width: 46em; margin: 0; font-size: 16.5px; }

/* ---------- misc ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }
.stat-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--bg); }
.stat-box b { display: block; font-size: 24px; letter-spacing: -.02em; }
.stat-box span { font-size: 13px; color: var(--ink3); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tag { font-size: 12.5px; font-weight: 500; background: var(--bg3); color: var(--ink2); border-radius: 6px; padding: 4px 10px; }

.bar-list { list-style: none; margin: 0; padding: 0; }
.bar-list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; display: flex; gap: 14px; align-items: baseline; }
.bar-list li:last-child { border-bottom: 1px solid var(--line); }
.bar-list .k { flex: 0 0 44%; color: var(--ink3); font-size: 13.5px; }
