:root {
  --ink: #14233a;
  --muted: #64748b;
  --line: #dce5ee;
  --paper: #f5f8fb;
  --white: #ffffff;
  --navy: #0d2d4e;
  --navy-2: #173f67;
  --teal: #0e8a83;
  --teal-soft: #dff5f1;
  --blue: #2e67d1;
  --blue-soft: #e8f0ff;
  --amber: #b87312;
  --amber-soft: #fff2d9;
  --red: #c64242;
  --red-soft: #ffebeb;
  --shadow: 0 18px 50px rgba(13, 45, 78, 0.09);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 4%, rgba(14, 138, 131, 0.12), transparent 27rem),
    radial-gradient(circle at 5% 28%, rgba(46, 103, 209, 0.07), transparent 24rem),
    var(--paper);
}

button, a { font: inherit; }
a { color: inherit; }

.page-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(13, 45, 78, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.03rem; letter-spacing: 0.01em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 0.76rem; }

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  grid-template-columns: repeat(3, 6px);
  gap: 4px;
  border-radius: 13px;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(13, 45, 78, 0.22);
}

.brand-mark i { width: 6px; height: 19px; border-radius: 9px; background: #fff; }
.brand-mark i:nth-child(1) { height: 11px; margin-top: 8px; opacity: 0.6; }
.brand-mark i:nth-child(3) { height: 15px; margin-top: 4px; background: #45d0c1; }

.topbar-meta { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 0.82rem; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(14, 138, 131, 0.12); }

.hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 54px 7%;
  margin-top: 28px;
  overflow: hidden;
  position: relative;
  color: white;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #0c2947 0%, #123d62 55%, #0f625f 130%);
  box-shadow: 0 25px 70px rgba(13, 45, 78, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -130px -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.hero-copy { max-width: 720px; position: relative; z-index: 1; }
.eyebrow, .section-kicker { display: block; text-transform: uppercase; letter-spacing: 0.17em; font-size: 0.72rem; font-weight: 800; }
.eyebrow { color: #73ded4; }
.hero h1 { margin: 17px 0 14px; max-width: 660px; font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: 0.98; letter-spacing: -0.045em; }
.hero p { margin: 0; max-width: 650px; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; }

.hero-orbit { width: 230px; height: 230px; flex: 0 0 230px; display: grid; place-items: center; position: relative; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); }
.orbit-one { inset: 8px; }
.orbit-two { inset: 38px; border-style: dashed; }
.orbit-one::before, .orbit-two::before { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #4dd4c6; box-shadow: 0 0 18px #4dd4c6; }
.orbit-one::before { top: 26px; right: 28px; }
.orbit-two::before { bottom: 12px; left: 28px; background: #86aefb; box-shadow: 0 0 18px #86aefb; }
.core { font-size: 4.1rem; font-weight: 750; letter-spacing: -0.06em; }
.orbit-label { position: absolute; top: 146px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.62); }

.demo-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  padding: 15px 18px;
  border: 1px solid #d6e6f3;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  color: #31516e;
  backdrop-filter: blur(8px);
}
.notice-icon { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-weight: 800; font-family: Georgia, serif; }
.demo-notice strong { margin-right: 5px; }
.demo-notice span { font-size: .88rem; }

.summary { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 16px; margin-bottom: 42px; }
.summary-card { position: relative; min-height: 136px; padding: 22px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.9); box-shadow: 0 9px 28px rgba(13,45,78,.05); }
.summary-card::after { content: ""; position: absolute; width: 70px; height: 70px; right: -28px; top: -28px; border: 18px solid currentColor; border-radius: 50%; opacity: .07; }
.summary-card span, .summary-card small, .summary-card strong { display: block; }
.summary-card span { color: var(--muted); font-size: .8rem; font-weight: 650; }
.summary-card strong { margin: 8px 0 3px; font-size: 2.25rem; line-height: 1; letter-spacing: -.04em; }
.summary-card small { color: #8190a3; font-size: .74rem; }
.summary-total { color: var(--navy); }
.summary-ready { color: var(--teal); }
.summary-active { color: var(--blue); }
.summary-error { color: var(--red); }

.workspace { padding-bottom: 56px; }
.workspace-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 22px; }
.section-kicker { color: var(--teal); }
.workspace h2 { margin: 7px 0 0; font-size: 1.9rem; letter-spacing: -.025em; }
.filterbar { display: flex; flex-wrap: wrap; gap: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.8); }
.filter { padding: 8px 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: .78rem; font-weight: 700; cursor: pointer; transition: .2s ease; }
.filter:hover { color: var(--navy); background: #edf3f8; }
.filter.active { color: white; background: var(--navy); box-shadow: 0 5px 14px rgba(13,45,78,.2); }

.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.slot-card { min-height: 282px; display: flex; flex-direction: column; padding: 20px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(13,45,78,.055); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.slot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8d7e4; }
.slot-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #9aa9b9; }
.slot-card.status-ready::before { background: var(--teal); }
.slot-card.status-active::before { background: var(--blue); }
.slot-card.status-error::before { background: var(--red); }
.slot-card.portal-card { background: linear-gradient(155deg, #fff, #f0faf8); border-color: #bfe4de; }
.slot-card[hidden] { display: none; }

.slot-topline { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.slot-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.slot-number { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: #eaf0f5; font-size: .73rem; font-weight: 850; }
.status-ready .slot-number { color: #08716c; background: var(--teal-soft); }
.status-active .slot-number { color: var(--blue); background: var(--blue-soft); }
.status-error .slot-number { color: var(--red); background: var(--red-soft); }
.slot-name h3 { margin: 0; font-size: 1rem; }
.slot-name small { display: block; margin-top: 3px; color: #8a98a8; font-size: .67rem; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 126px; padding: 6px 8px; border-radius: 999px; color: #718096; background: #eef2f6; font-size: .62rem; font-weight: 750; line-height: 1.15; }
.status-pill i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #9aa9b9; }
.status-ready .status-pill { color: #08716c; background: var(--teal-soft); }
.status-ready .status-pill i { background: var(--teal); }
.status-active .status-pill { color: #2b5fb7; background: var(--blue-soft); }
.status-active .status-pill i { background: var(--blue); animation: pulse 1.8s infinite; }
.status-error .status-pill { color: #ae3434; background: var(--red-soft); }
.status-error .status-pill i { background: var(--red); }

.slot-body { flex: 1; padding: 28px 1px 17px; }
.slot-body strong { display: block; min-height: 42px; font-size: .96rem; line-height: 1.4; }
.slot-body p { margin: 9px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.55; }
.progress { height: 5px; overflow: hidden; border-radius: 10px; background: #edf1f5; }
.progress span { display: block; height: 100%; border-radius: inherit; background: #a5b0be; }
.status-ready .progress span { background: var(--teal); }
.status-active .progress span { background: var(--blue); }
.status-error .progress span { background: var(--red); }
.slot-footer { min-height: 37px; display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 13px; }
.updated { color: #8b98a7; font-size: .66rem; }
.open-app { text-decoration: none; color: var(--teal); font-size: .74rem; font-weight: 800; }
.open-app:hover { text-decoration: underline; }
.open-app.disabled { color: #a4afba; font-weight: 600; }

.empty-state { padding: 50px; text-align: center; border: 1px dashed #c9d5df; border-radius: 18px; color: var(--muted); background: rgba(255,255,255,.5); }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--ink); margin-bottom: 5px; }

footer { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(13,45,78,.1); color: #8290a0; font-size: .72rem; }
footer strong { color: #56677b; }

.demo-page { display: grid; place-items: center; padding: 30px; }
.demo-panel { width: min(560px, 100%); padding: 55px; text-align: center; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.demo-panel .eyebrow { color: var(--teal); }
.demo-icon { width: 84px; height: 84px; display: grid; place-items: center; margin: 28px auto 20px; border-radius: 25px; color: white; background: linear-gradient(135deg, var(--navy), var(--teal)); font-size: 1.55rem; font-weight: 850; box-shadow: 0 15px 35px rgba(14,138,131,.2); }
.demo-panel h1 { margin: 0; font-size: 2.2rem; letter-spacing: -.04em; }
.demo-panel p { margin: 14px auto 28px; color: var(--muted); line-height: 1.65; }
.primary-action { display: inline-flex; padding: 12px 18px; border-radius: 11px; text-decoration: none; color: white; background: var(--navy); font-size: .86rem; font-weight: 750; }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(46,103,209,.35); } 50% { box-shadow: 0 0 0 5px rgba(46,103,209,0); } }

@media (max-width: 1120px) {
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-left: 6%; padding-right: 4%; }
}

@media (max-width: 860px) {
  .page-shell { width: min(100% - 24px, 720px); }
  .topbar-meta > :last-child { display: none; }
  .hero { min-height: auto; padding: 46px 36px; }
  .hero-orbit { display: none; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .workspace-head { align-items: start; flex-direction: column; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .page-shell { width: calc(100% - 18px); }
  .topbar { height: 76px; }
  .live-dot { display: none; }
  .hero { margin-top: 14px; padding: 36px 25px; border-radius: 21px; }
  .hero h1 { font-size: 2.65rem; }
  .demo-notice { align-items: start; }
  .demo-notice span { display: block; margin-top: 3px; }
  .summary { gap: 10px; }
  .summary-card { min-height: 120px; padding: 18px; }
  .summary-card strong { font-size: 1.85rem; }
  .filterbar { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .filter { white-space: nowrap; }
  .slot-grid { grid-template-columns: 1fr; }
  footer { align-items: start; flex-direction: column; justify-content: center; }
  .demo-panel { padding: 38px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
