/* AmForge marketing-site kit styles
   Built on top of ../../colors_and_type.css */
@import url("../../colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ============ LAYOUT ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--container-pad); }
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.dark { background: var(--af-flag-blue-ink); color: var(--af-paper); }
section.bone { background: var(--af-bone); }

/* ============ NAV ============ */
.kit-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.kit-nav .brand img { height: 38px; display: block; }
.kit-nav .links { display: flex; gap: 28px; }
.kit-nav .links a {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: none; border: none;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-standard);
}
.kit-nav .links a:hover, .kit-nav .links a.active { color: var(--af-flag-blue); }
@media (max-width: 820px) { .kit-nav .links { display: none; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: all var(--dur-fast) var(--ease-standard);
}
.btn-primary { background: var(--af-flag-blue); color: var(--af-paper); }
.btn-primary:hover { background: var(--af-flag-blue-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--af-flag-blue); border-color: var(--af-flag-blue); }
.btn-ghost:hover { background: rgba(27,63,160,0.06); }
.btn-on-dark { background: var(--af-flag-red); color: var(--af-paper); }
.btn-on-dark:hover { background: var(--af-flag-red-deep); }
.btn .arr { display: inline-block; transition: transform var(--dur-fast); }
.btn:hover .arr { transform: translateX(3px); }

/* ============ HERO ============ */
.hero { padding: 96px 0 80px; position: relative; }
.hero .eyebrow { color: var(--af-flag-red); display: block; margin-bottom: 20px; }
.hero h1 { font-size: clamp(56px, 9vw, 132px); font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.015em; margin: 0; color: var(--af-flag-blue-ink); }
.hero h1 .red { color: var(--af-flag-red); }
.hero h1 .blue { color: var(--af-flag-blue); }
.hero .sub { max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--fg-2); margin: 24px 0 36px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .stat-strip { margin-top: 80px; }

/* ============ STAT STRIP ============ */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-top-width: 4px; border-top-color: var(--af-flag-red);
}
.stat-strip .cell { background: var(--bg); padding: 24px 22px; }
.stat-strip .num { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(40px, 5.5vw, 64px); line-height: 1; letter-spacing: -0.02em; color: var(--af-flag-blue-ink); }
.stat-strip .unit { color: var(--af-flag-red); font-size: 0.45em; vertical-align: top; margin-left: 6px; }
.stat-strip .label { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 820px) { .stat-strip { grid-template-columns: 1fr 1fr; } }

/* ============ PILLARS ============ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--bg); border: 1px solid var(--border);
  border-top: 4px solid var(--af-flag-blue);
  border-radius: 6px;
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar.featured { border-top-color: var(--af-flag-red); }
.pillar .num { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 56px; line-height: 1; color: var(--af-flag-blue); margin-bottom: 4px; }
.pillar.featured .num { color: var(--af-flag-red); }
.pillar .eyebrow { color: var(--fg-3); }
.pillar h3 { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 24px; margin: 8px 0 12px; color: var(--af-flag-blue-ink); letter-spacing: -0.01em; }
.pillar p { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0 0 20px; }
.pillar .stats { margin-top: auto; display: flex; gap: 18px; padding-top: 18px; border-top: 1px solid var(--rule); }
.pillar .stat-row { display: flex; flex-direction: column; }
.pillar .stat-row .v { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 20px; color: var(--af-flag-blue-ink); }
.pillar .stat-row .l { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ============ THESIS ============ */
.thesis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.thesis-grid .copy h2 { font-size: clamp(36px, 5vw, 56px); }
.thesis-grid .copy p { font-size: 17px; line-height: 1.65; color: var(--fg-2); max-width: 52ch; }
.thesis-grid .visual { aspect-ratio: 1/1; background: var(--af-flag-blue-ink); border-radius: 8px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thesis-grid .visual img { max-width: 60%; opacity: 0.92; }
.thesis-grid .visual::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(to right, var(--af-flag-blue) 0 33.33%, var(--af-paper) 33.33% 66.66%, var(--af-flag-red) 66.66% 100%); }
@media (max-width: 820px) { .thesis-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============ SITE LIST ============ */
.site-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
.site-row { display: grid; grid-template-columns: 80px 1.4fr 1fr 1fr 1fr 100px; gap: 18px; padding: 22px 4px; align-items: center; border-bottom: 1px solid var(--border); transition: background var(--dur-fast); cursor: pointer; }
.site-row:hover { background: var(--af-bone); }
.site-row .id { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.site-row .name { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 18px; color: var(--af-flag-blue-ink); letter-spacing: -0.01em; }
.site-row .meta { font-size: 13px; color: var(--fg-2); }
.site-row .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor; }
.site-row .chip .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.site-row .arr { color: var(--af-flag-blue); text-align: right; }

/* ============ CONTACT ============ */
.contact-card { background: var(--af-flag-blue-ink); color: var(--af-paper); border-radius: 8px; padding: 56px clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(to right, var(--af-flag-blue) 0 33.33%, var(--af-paper) 33.33% 66.66%, var(--af-flag-red) 66.66% 100%); }
.contact-card h2 { color: var(--af-paper); font-size: clamp(36px, 5vw, 64px); }
.contact-card p { color: rgba(255,255,255,0.75); max-width: 50ch; font-size: 17px; }
.contact-card .form { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 12px; margin-top: 32px; }
.contact-card input { padding: 14px 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: var(--af-paper); font-family: var(--font-body); font-size: 14px; }
.contact-card input::placeholder { color: rgba(255,255,255,0.5); }
.contact-card input:focus { outline: 2px solid var(--af-amber); outline-offset: 2px; }
@media (max-width: 820px) { .contact-card .form { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.kit-footer { background: var(--af-flag-blue-ink); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.kit-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.kit-footer h5 { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--af-paper); margin: 0 0 14px; }
.kit-footer a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; border: none; font-size: 14px; padding: 4px 0; }
.kit-footer a:hover { color: var(--af-paper); }
.kit-footer .brand img { height: 44px; margin-bottom: 16px; }
.kit-footer .brand p { color: rgba(255,255,255,0.6); max-width: 30ch; font-size: 13px; }
.kit-footer .legal { display: flex; justify-content: space-between; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; }
@media (max-width: 820px) { .kit-footer .top { grid-template-columns: 1fr 1fr; } }

/* ============ SECTION HEADER ============ */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 40px; }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); max-width: 18ch; }
.section-head .desc { max-width: 38ch; color: var(--fg-2); font-size: 15px; line-height: 1.55; margin: 0; }
@media (max-width: 820px) { .section-head { flex-direction: column; align-items: flex-start; } }
