:root {
  --navy: #102d52;
  --navy-deep: #06192f;
  --cyan: #55c6f3;
  --cyan-deep: #1e8dca;
  --panel: #ffffff;
  --line: #c8d8e8;
  --shell: #eef4fa;
  --text: #16304a;
  --muted: #5d7288;
  --success: #107e3e;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--shell); }
body.auth-body { background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 12px clamp(18px, 4vw, 56px); background: rgba(6,25,47,.94); border-bottom: 1px solid rgba(85,198,243,.22); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.brand img { width: 58px; height: 38px; object-fit: cover; border-radius: 4px; border: 1px solid rgba(85,198,243,.32); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: #d9efff; padding: 9px 11px; border-radius: 4px; font-size: 14px; font-weight: 700; }
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(85,198,243,.16); text-decoration: none; }
.site-nav .nav-cta { color: #06192f; background: var(--cyan); }
.menu-toggle { display: none; min-height: 38px; border: 1px solid rgba(85,198,243,.35); border-radius: 4px; color: #fff; background: rgba(255,255,255,.08); padding: 8px 10px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr); align-items: center; gap: clamp(24px, 4vw, 58px); min-height: calc(100vh - 72px); padding: clamp(32px, 6vw, 78px); background: radial-gradient(circle at 76% 24%, rgba(85,198,243,.24), transparent 30%), linear-gradient(145deg, var(--navy-deep), var(--navy) 58%, #123d6b); color: #fff; }
.hero-copy h1, .page-hero h1 { margin: 8px 0 14px; max-width: 850px; font-size: clamp(40px, 6vw, 74px); line-height: 1.02; letter-spacing: 0; }
.hero-copy p, .page-hero p { max-width: 720px; color: #d9efff; line-height: 1.65; font-size: 18px; }
.eyebrow, .transaction-code { margin: 0; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-actions, .center-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--cyan-deep); border-radius: 4px; padding: 10px 16px; font-weight: 800; cursor: pointer; }
.button.primary, button { color: #06192f; background: linear-gradient(180deg, var(--cyan), #2ca7dd); }
.button.secondary { color: #eaf8ff; background: rgba(255,255,255,.08); border-color: rgba(85,198,243,.38); }
.hero-media { border: 1px solid rgba(85,198,243,.3); border-radius: 10px; padding: 10px; background: rgba(3,17,34,.3); box-shadow: 0 26px 70px rgba(0,0,0,.32); }
.hero-media img { border-radius: 6px; }

.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(85,198,243,.2); border-bottom: 1px solid var(--line); background: #fff; }
.metric-strip div { min-height: 98px; padding: 20px clamp(16px, 3vw, 34px); border-right: 1px solid var(--line); }
.metric-strip strong, .metric-strip span { display: block; }
.metric-strip strong { color: var(--navy); font-size: 18px; }
.metric-strip span { margin-top: 6px; color: var(--muted); }
.section { padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 56px); }
.section-title { max-width: 860px; margin-bottom: 24px; }
.section-title h2, .split h2 { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.section-title p, .split p { color: var(--muted); line-height: 1.65; }
.card-grid { display: grid; gap: 14px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-height: 210px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 26px rgba(16,45,82,.08); }
.card.featured { border-color: rgba(85,198,243,.8); box-shadow: 0 16px 42px rgba(30,141,202,.18); }
.card-code { color: var(--cyan-deep); font-weight: 900; }
.card h3 { margin: 10px 0 8px; color: var(--navy); font-size: 22px; }
.card p { color: var(--muted); line-height: 1.58; }

.band { background: linear-gradient(135deg, rgba(6,25,47,.96), rgba(16,45,82,.94)), var(--navy); color: #fff; }
.band p, .band .process-list span { color: #d6ecfb; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 24px; align-items: start; }
.process-list { display: grid; gap: 10px; }
.process-list div { padding: 14px; border: 1px solid rgba(85,198,243,.32); border-radius: 6px; background: rgba(255,255,255,.06); }
.process-list strong, .process-list span { display: block; }
.process-list span { margin-top: 4px; }
.page-hero { padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px); background: radial-gradient(circle at 82% 28%, rgba(85,198,243,.22), transparent 26%), linear-gradient(145deg, var(--navy-deep), var(--navy)); color: #fff; }

.contact-form { max-width: 760px; display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.contact-form label, .login-form label, .stack-form label { display: grid; gap: 6px; color: var(--text); font-size: 13px; font-weight: 800; }
input, textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; background: #fff; color: var(--text); }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--cyan-deep); outline: 2px solid rgba(85,198,243,.24); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px clamp(18px, 4vw, 56px); color: #d9efff; background: var(--navy-deep); }
.site-footer p { margin: 6px 0 0; color: #9fc7df; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr); }
.login-brand { background: radial-gradient(circle at 58% 36%, rgba(85,198,243,.28), transparent 28%), linear-gradient(145deg, var(--navy-deep), var(--navy) 58%, #123b67); color: #fff; padding: 42px; display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow: hidden; }
.brand-lockup { width: min(100%, 620px); border: 1px solid rgba(121,205,244,.28); border-radius: 8px; padding: 10px; background: rgba(3,17,34,.3); box-shadow: 0 18px 46px rgba(0,0,0,.24); }
.brand-lockup img { border-radius: 4px; }
.login-brand h1 { max-width: 620px; margin: 0; font-size: 36px; line-height: 1.12; }
.brand-copy { max-width: 560px; margin: 0; color: #dbefff; line-height: 1.6; }
.system-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.system-strip span, .state-pill { border: 1px solid rgba(121,205,244,.46); border-radius: 4px; padding: 7px 10px; font-size: 12px; font-weight: 700; background: rgba(3,17,34,.22); }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 52px min(7vw, 92px); background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,251,255,.98)); }
.panel-header h2, .work-card h1, .workspace-header h1 { margin: 6px 0; font-size: 30px; }
.panel-header p, .work-card p, .workspace-header p, .setup-card p { color: var(--muted); line-height: 1.5; }
.login-form, .stack-form { display: grid; gap: 10px; margin-top: 22px; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
.check-line { display: inline-flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px; color: var(--muted); }
.check-line input { width: auto; min-height: auto; }
.mfa-card, .status-box, .work-card, .setup-card { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); box-shadow: 0 1px 2px rgba(27,43,58,.08); }
.mfa-card { margin-top: 18px; padding: 16px; }
.mfa-card h3 { margin: 5px 0; }
.mfa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.status-box { margin-top: 18px; padding: 12px; color: var(--muted); background: #f7fafd; font-size: 13px; }

.simple-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--shell); }
.work-card { width: min(520px, 100%); padding: 24px; }
.erp-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.side-nav { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); border-right: 1px solid var(--line); padding: 18px; color: #fff; }
.brand-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; flex-direction: column; }
.nav-logo { width: 100%; max-width: 210px; border: 1px solid rgba(121,205,244,.24); border-radius: 6px; background: rgba(3,17,34,.28); }
.side-nav nav { display: grid; gap: 4px; }
.side-nav a { display: block; padding: 10px; border-radius: 4px; color: #d9efff; }
.side-nav a.active, .side-nav a:hover { background: rgba(85,198,243,.16); color: #fff; text-decoration: none; }
.workspace { padding: 22px; }
.workspace-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; border: 1px solid var(--line); padding: 18px; border-radius: 6px; background: linear-gradient(90deg, rgba(17,47,86,.08), transparent); }
.state-pill { color: var(--success); border-color: #b8d8c4; background: #eef8f1; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.setup-card { padding: 16px; }
.setup-card.required { border-left: 4px solid var(--cyan); }
.setup-card span { color: var(--cyan-deep); font-size: 12px; font-weight: 800; }
.setup-card h2 { margin: 6px 0; font-size: 19px; }
dt { margin-top: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
dd { margin: 3px 0 0; }

@media (max-width: 980px) {
  .hero, .split, .login-shell, .erp-shell, .setup-grid { grid-template-columns: 1fr; }
  .metric-strip, .card-grid.three, .card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .hero { min-height: auto; padding: 28px 18px; }
  .metric-strip, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .login-brand { padding: 26px 18px; }
  .login-panel { padding: 28px 18px; }
  .mfa-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

