:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --panel-strong: #f8fafb;
  --text: #17212b;
  --muted: #61707d;
  --line: #dce3e8;
  --navy: #17324d;
  --navy-soft: #e8eef3;
  --teal: #0d9689;
  --teal-soft: #dff4f0;
  --orange: #ec882b;
  --orange-soft: #fff0df;
  --shadow: 0 18px 46px rgba(25, 46, 64, 0.09);
}

:root[data-theme="dark"] {
  --bg: #111820;
  --panel: #1a242e;
  --panel-strong: #202c37;
  --text: #f2f6f8;
  --muted: #a9b7c2;
  --line: #354451;
  --navy: #8ec0e9;
  --navy-soft: #243848;
  --teal: #4ed2c1;
  --teal-soft: #173d3a;
  --orange: #ffad60;
  --orange-soft: #4a3320;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 5%, rgba(13, 150, 137, 0.10), transparent 28rem),
    radial-gradient(circle at 4% 52%, rgba(236, 136, 43, 0.08), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: color 180ms ease, background-color 180ms ease;
}

button { font: inherit; }

.app-shell {
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 34px;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup, .top-actions, .powered-by, .solutions-by, .metric-card, .network-node, .section-heading, .module-top, .module-footer {
  display: flex;
  align-items: center;
}

.brand-lockup { gap: 18px; min-width: 0; }

.brand-plate {
  display: grid;
  place-items: center;
  width: 185px;
  height: 58px;
  padding: 7px 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6e9eb;
  box-shadow: 0 8px 24px rgba(19, 37, 51, 0.07);
}

.brand-plate img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }

.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-copy strong { font-size: 19px; letter-spacing: -0.02em; }

.eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.top-actions { gap: 9px; }

.utility-button {
  min-width: 43px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.utility-button:hover, .utility-button:focus-visible { border-color: var(--teal); outline: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.6fr);
  gap: 54px;
  align-items: center;
  padding: 66px 0 54px;
}

.hero-copy { max-width: 760px; }

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 21px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px var(--teal-soft);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 800px;
  margin-bottom: 21px;
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.network-card {
  padding: 26px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.network-title {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.network-flow { padding: 4px; }

.network-node {
  gap: 13px;
  padding: 17px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #17324d, #0d655f);
}

.node-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  font-size: 20px;
}

.network-node div { display: grid; gap: 3px; }
.network-node strong { font-size: 15px; }
.network-node small { color: rgba(255,255,255,0.72); font-size: 11px; }

.flow-line { height: 42px; display: flex; justify-content: center; }
.flow-line span { width: 1px; height: 100%; background: var(--line); position: relative; }
.flow-line span::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 74%; height: 1px; transform: translateX(-50%); background: var(--line); }

.store-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.store-node { display: grid; gap: 3px; padding: 14px 8px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-strong); }
.store-node strong { color: var(--navy); font-size: 13px; }
.store-node small { color: var(--muted); font-size: 10px; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 62px; }

.metric-card {
  gap: 15px;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.metric-card > div { display: grid; gap: 4px; }
.metric-card strong { font-size: 14px; }
.metric-card small { color: var(--muted); font-size: 11px; line-height: 1.35; }

.metric-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 900;
}

.metric-icon.teal { color: var(--teal); background: var(--teal-soft); }
.metric-icon.orange { color: var(--orange); background: var(--orange-soft); }
.metric-icon.navy { color: var(--navy); background: var(--navy-soft); }

.workspace { padding-bottom: 58px; }
.section-heading { justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading > div { display: grid; gap: 7px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.035em; }

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.secure-label > span:first-child { color: var(--teal); font-size: 10px; }

.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

.module-card {
  min-height: 302px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(24, 46, 65, 0.04);
}

.module-card.ready { border-top: 4px solid var(--teal); padding-top: 18px; }
.module-card.next { border-top: 4px solid var(--orange); padding-top: 18px; }

.module-top { justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.module-number { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; }

.pill {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill.upcoming { color: var(--orange); background: var(--orange-soft); }

.module-card h3 { margin-bottom: 12px; font-size: 19px; line-height: 1.18; letter-spacing: -0.025em; }
.module-card p { margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.62; }
.module-footer { gap: 9px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--teal); font-size: 10px; font-weight: 800; line-height: 1.4; }
.module-footer.muted { color: var(--orange); }
.check { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--teal); font-size: 11px; }

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.powered-by, .solutions-by { gap: 10px; }
.powered-by img { width: 84px; height: 28px; object-fit: contain; padding: 4px 7px; border-radius: 7px; background: #fff; }
.solutions-by img { width: 75px; height: 25px; object-fit: contain; padding: 4px 7px; border-radius: 7px; background: #fff; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr 350px; gap: 30px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .app-shell { padding: 0 18px; }
  .topbar { min-height: 80px; }
  .brand-plate { width: 145px; height: 49px; }
  .brand-copy { display: none; }
  .theme-label { display: none; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 43px 0 36px; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-copy p { font-size: 15px; }
  .network-card { padding: 19px; }
  .metrics { grid-template-columns: 1fr; margin-bottom: 48px; }
  .section-heading { align-items: flex-end; }
  .secure-label { max-width: 110px; text-align: right; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0; }
}

@media (max-width: 420px) {
  .app-shell { padding: 0 14px; }
  .brand-plate { width: 128px; }
  .top-actions { gap: 6px; }
  .utility-button { min-width: 39px; height: 38px; padding: 0 10px; }
  .store-row { gap: 6px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .secure-label { max-width: none; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
