/* ABMCOE AI Dashboard — shared styles */
:root {
  --navy: #0B1C3F;
  --navy-2: #112a5c;
  --navy-deep: #06142f;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e2da;
  --line-2: #d6d1c7;
  --bg: #f5f1ea;
  --card: #ffffff;
  --accent: oklch(0.64 0.15 30);
  --accent-2: oklch(0.72 0.13 55);
  --success: oklch(0.55 0.14 155);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
a { color: inherit; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  border-radius: 2px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 500;
}
.eyebrow .dot {
  width: 7px; height: 7px; background: var(--accent-2); border-radius: 50%;
  box-shadow: 0 0 0 4px oklch(0.72 0.13 55 / 0.18);
}

/* === Gate layout (login, forgot, reset pages) === */
.gate {
  position: fixed; inset: 0;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--bg);
}
.gate-art {
  position: relative;
  background:
    radial-gradient(700px 360px at 75% 25%, oklch(0.64 0.15 30 / 0.32), transparent 60%),
    radial-gradient(600px 400px at 20% 80%, oklch(0.72 0.13 55 / 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.gate-art::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  pointer-events: none;
}
.gate-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.gate-brand .t1 { font-size: 15px; font-weight: 600; color: #fff; }
.gate-brand .t2 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; }
.gate-lockup { position: relative; z-index: 1; max-width: 520px; }
.gate-lockup .eyebrow { margin-bottom: 22px; }
.gate-lockup h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 500; margin: 0 0 18px; color: #fff;
}
.gate-lockup h2 em { font-style: normal; color: oklch(0.82 0.09 30); font-weight: 400; }
.gate-lockup p {
  font-size: 15px; color: #cbd5e1; margin: 0;
  line-height: 1.6; font-weight: 300; max-width: 48ch;
}
.gate-foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #94a3b8; letter-spacing: 0.04em;
}
.gate-form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px; background: var(--bg); overflow-y: auto;
}
.gate-form { width: 100%; max-width: 440px; }
.gate-form .kicker {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.gate-form h3 {
  font-size: 30px; letter-spacing: -0.02em;
  font-weight: 500; margin: 0 0 10px; color: var(--navy);
}
.gate-form .lede {
  font-size: 14.5px; color: var(--ink-2); margin: 0 0 32px; line-height: 1.55;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.field input {
  font-family: inherit; font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  background: #fff; color: var(--ink);
  border-radius: 2px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px oklch(0.64 0.15 30 / 0.12);
}
.field input.err { border-color: var(--accent); }
.field input[readonly] { background: var(--bg); color: var(--muted); }
.gate-submit {
  width: 100%; background: var(--navy); color: #fff;
  border: none; padding: 14px 20px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; border-radius: 2px;
  transition: background 0.15s; margin-top: 6px;
}
.gate-submit:hover { background: var(--navy-2); }
.gate-msg {
  min-height: 22px; margin-top: 16px;
  font-size: 13px; color: var(--accent); font-weight: 500;
}
.gate-msg.success { color: var(--success); }
.gate-hint {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
}
.gate-links { margin-top: 14px; text-align: right; font-size: 13px; }
.gate-links a {
  color: var(--navy); text-decoration: none; font-weight: 500;
  border-bottom: 1px dotted var(--navy-2);
}
.gate-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.pw-req {
  font-size: 12px; color: var(--muted);
  margin-top: -8px; margin-bottom: 14px; line-height: 1.5;
}
@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .gate-art { padding: 32px; gap: 28px; }
  .gate-art .gate-lockup h2 { font-size: 28px; }
  .gate-form-wrap { padding: 40px 28px; }
}

/* === Dashboard layout === */
html { scroll-behavior: smooth; }
.page {
  background:
    radial-gradient(1200px 600px at 85% 8%, oklch(0.64 0.15 30 / 0.08), transparent 60%),
    radial-gradient(900px 500px at 10% 55%, oklch(0.72 0.13 55 / 0.07), transparent 60%),
    var(--bg);
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

header.nav {
  background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
header.nav .container {
  display: flex; align-items: center; gap: 40px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .t1 { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.brand-text .t2 { font-size: 11px; color: #94a3b8; letter-spacing: 0.1em; text-transform: uppercase; }

nav.primary { margin-left: auto; display: flex; gap: 2px; }
nav.primary a {
  color: #e2e8f0; text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 10px 16px; position: relative;
  transition: color 0.15s;
}
nav.primary a:hover { color: #fff; }
nav.primary a.active { color: #fff; }
nav.primary a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -20px;
  height: 2px; background: var(--accent);
}
.nav-cta {
  background: var(--accent); color: #fff; border: none;
  padding: 10px 20px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; border-radius: 2px;
  text-decoration: none; display: inline-block;
  transition: background 0.15s;
}
.nav-cta:hover { background: oklch(0.58 0.16 30); }

.hero {
  background:
    radial-gradient(800px 400px at 90% 20%, oklch(0.64 0.15 30 / 0.28), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%);
}
.hero .container { padding-top: 64px; padding-bottom: 96px; position: relative; z-index: 1; }
.hero-bleed {
  position: relative; margin-top: -72px; height: 72px;
  background: var(--bg);
  border-top-left-radius: 56px 40px; border-top-right-radius: 56px 40px;
  z-index: 2; pointer-events: none;
}
.hero .eyebrow { margin-bottom: 24px; }
h1.hero-title {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02; letter-spacing: -0.025em;
  font-weight: 500; margin: 0 0 24px; max-width: 960px;
}
h1.hero-title em { font-style: normal; color: oklch(0.82 0.09 30); font-weight: 400; }
.hero-lede {
  font-size: 19px; line-height: 1.55; color: #cbd5e1;
  max-width: 680px; margin: 0; font-weight: 300;
}
.hero-meta {
  margin-top: 64px; display: flex; gap: 64px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 900px; flex-wrap: wrap;
}
.meta-item .label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #94a3b8; margin-bottom: 8px;
}
.meta-item .value { font-size: 16px; color: #fff; font-weight: 500; }
.meta-item .value .mono { font-size: 13px; color: #cbd5e1; font-weight: 400; }

.flow { position: relative; padding: 8px 0 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 56px 0 28px; gap: 32px;
}
#tools.section-head { padding-top: 16px; }
.section-head .left { max-width: 680px; }
.section-head .kicker {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.02em; font-weight: 500;
  margin: 0 0 14px; color: var(--ink); line-height: 1.1;
}
.section-head p.sub { font-size: 16px; color: var(--ink-2); margin: 0; max-width: 560px; }
.section-head .right {
  font-size: 13px; color: var(--muted); padding-bottom: 6px; white-space: nowrap;
}
.section-head .right strong { color: var(--ink); font-weight: 600; }

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
a.tool-card, button.tool-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  padding: 32px 32px 28px;
  position: relative; overflow: hidden; border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  font-family: inherit; text-align: left; width: 100%; cursor: pointer;
}
a.tool-card::before, button.tool-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
a.tool-card:hover, button.tool-card:hover {
  border-color: var(--navy); transform: translateY(-3px);
  box-shadow: 0 24px 48px -24px rgba(11, 28, 63, 0.28);
}
a.tool-card:hover::before, button.tool-card:hover::before { transform: scaleX(1); }
.tool-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.tool-num {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--muted); letter-spacing: 0.06em;
}
.tool-badge {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; padding: 5px 11px;
  background: oklch(0.96 0.04 150);
  color: oklch(0.45 0.12 150);
  border: 1px solid oklch(0.72 0.1 150 / 0.35);
  border-radius: 2px;
}
.tool-glyph {
  width: 56px; height: 56px;
  border: 1px solid var(--line-2);
  margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--bg); border-radius: 2px;
}
.tool-card h3 {
  font-size: 26px; letter-spacing: -0.02em; font-weight: 500;
  margin: 0 0 8px; line-height: 1.15; color: var(--navy);
}
.tool-desc {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
  margin: 0 0 20px; max-width: 52ch;
}
.tool-bullets {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; gap: 8px;
}
.tool-bullets li {
  font-size: 13.5px; color: var(--ink-2);
  display: flex; align-items: flex-start; gap: 12px; line-height: 1.5;
}
.tool-bullets li::before {
  content: ""; width: 12px; height: 1px;
  background: var(--accent); flex-shrink: 0; margin-top: 10px;
}
.tool-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.tool-launch {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.01em;
}
.tool-launch .arrow { display: inline-block; transition: transform 0.25s ease; }
a.tool-card:hover .tool-launch .arrow,
button.tool-card:hover .tool-launch .arrow { transform: translateX(7px); }
.tool-meta-mini {
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11, 28, 63, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 6px;
  width: 100%; max-width: 520px;
  padding: 40px 44px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 22px; color: var(--muted);
  cursor: pointer; line-height: 1;
  width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%;
}
.modal-close:hover { background: var(--bg); color: var(--ink); }
.modal h3 {
  font-size: 24px; font-weight: 500; margin: 0 0 8px;
  color: var(--navy); letter-spacing: -0.01em;
}
.modal .lede { font-size: 14px; color: var(--ink-2); margin: 0 0 24px; line-height: 1.5; }
.modal .field { margin-bottom: 14px; }
.modal .field label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px;
}
.modal .field input {
  font-family: inherit; font-size: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  background: #fff; color: var(--ink);
  border-radius: 2px; outline: none; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal .field input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px oklch(0.64 0.15 30 / 0.12);
}
.modal-submit {
  width: 100%; background: var(--navy); color: #fff;
  border: none; padding: 13px 20px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; border-radius: 2px;
  margin-top: 8px; transition: background 0.15s;
}
.modal-submit:hover { background: var(--navy-2); }
.modal-msg {
  min-height: 20px; margin-top: 12px;
  font-size: 13px; font-weight: 500; color: var(--accent);
}
.modal-msg.success { color: var(--success); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before {
  content: ""; position: absolute; top: 34px; left: 0; right: 0;
  height: 1px; background: var(--line-2);
}
.step { padding-right: 28px; position: relative; }
.step .num {
  width: 68px; height: 68px;
  background: var(--bg); border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; color: var(--accent); font-weight: 600;
  margin-bottom: 24px; position: relative; z-index: 1;
  border-radius: 50%;
}
.step h4 { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: var(--ink); letter-spacing: -0.01em; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.55; }

.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.metric {
  padding: 40px 40px 40px 0; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.metric:nth-child(n+2) { padding-left: 40px; }
.metric:last-child { border-right: none; padding-right: 0; }
.metric .num {
  font-size: 44px; font-weight: 500; letter-spacing: -0.025em;
  color: var(--navy); line-height: 1; font-feature-settings: "tnum";
}
.metric .num sup {
  font-size: 16px; color: var(--accent); font-weight: 500;
  vertical-align: top; margin-left: 2px;
}
.metric .label { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; max-width: 32ch; }

footer { margin-top: 96px; background: var(--navy-deep); color: #94a3b8; padding: 56px 0 28px; }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand .mark { display: flex; align-items: center; gap: 12px; color: #fff; }
.foot-brand .mark .brand-mark { width: 32px; height: 32px; font-size: 12px; }
.foot-brand p { margin: 0; font-size: 13px; line-height: 1.6; color: #94a3b8; max-width: 32ch; }
.foot-col h5 {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #cbd5e1; margin: 0 0 18px; font-weight: 600;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col ul a { color: #94a3b8; text-decoration: none; font-size: 13.5px; }
.foot-col ul a:hover { color: #fff; }
.foot-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #64748b; flex-wrap: wrap; gap: 12px;
}
.foot-bottom a { color: #64748b; text-decoration: none; }
.foot-bottom a:hover { color: #cbd5e1; }
.foot-bottom-links { display: flex; gap: 24px; }

@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .tools { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .process::before { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0 !important; }
  .metric:last-child { border-bottom: none; }
  nav.primary { display: none; }
  .hero .container { padding-top: 48px; padding-bottom: 72px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
