:root {
  --navy: #051b45;
  --navy-2: #08295e;
  --blue: #075bd8;
  --cyan: #08a8d8;
  --teal: #13a99b;
  --green: #32a852;
  --amber: #f59e0b;
  --red: #ef4444;
  --ink: #071a3f;
  --muted: #60708a;
  --line: #d9e3f0;
  --soft: #f4f8fd;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(5, 27, 69, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.top-strip {
  background: linear-gradient(90deg, #061a3c, #082b63);
  color: #fff;
  font-size: 13px;
}

.strip-inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  white-space: nowrap;
  overflow: hidden;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  padding: 12px 36px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 240px;
}

.brand img {
  display: block;
  width: 248px;
  max-width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 14px 0;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 3px;
  background: var(--blue);
  border-radius: 999px;
}

.primary-action,
.ghost-action,
.icon-button {
  border: 0;
  cursor: pointer;
}

.primary-action {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #03a5cf);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(7, 91, 216, 0.22);
}

.app-root {
  min-height: calc(100vh - 118px);
}

.home-hero {
  min-height: calc(100vh - 118px);
  padding: 46px 0 34px;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 248, 253, 0.9) 55%, rgba(8, 41, 94, 0.96) 55.2%, rgba(4, 20, 50, 1) 100%),
    radial-gradient(circle at 82% 18%, rgba(8, 168, 216, 0.24), transparent 28%);
}

.hero-inner {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 46px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-copy h1 {
  max-width: 680px;
  margin: 12px 0 18px;
  color: var(--navy);
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.07;
  letter-spacing: 0;
}

.home-copy h1 span {
  color: var(--blue);
}

.home-copy p {
  max-width: 640px;
  margin: 0;
  color: #263b5e;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.ghost-action {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #b9c9df;
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.value-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.value-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.value-icon svg,
.module-icon svg,
.small-icon svg {
  width: 26px;
  height: 26px;
}

svg circle {
  fill: currentColor;
  opacity: 0.15;
}

svg path,
svg polyline,
svg line,
svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-item strong {
  display: block;
  font-size: 15px;
}

.value-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.device-showcase {
  position: relative;
  min-height: 490px;
}

.laptop {
  position: relative;
  width: 100%;
  min-height: 430px;
  padding: 18px 18px 38px;
  background: #111827;
  border: 10px solid #050b18;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.laptop::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -34px;
  height: 34px;
  background: linear-gradient(180deg, #cbd5e1, #6b7280);
  border-radius: 0 0 42px 42px;
}

.screen {
  height: 100%;
  min-height: 370px;
  overflow: hidden;
  border-radius: 9px;
  background: #f5f8fc;
  display: grid;
  grid-template-columns: 165px 1fr;
}

.demo-side {
  background: linear-gradient(180deg, var(--navy), #052a64);
  color: #fff;
  padding: 18px 12px;
}

.demo-side img {
  width: 124px;
  height: auto;
  padding: 4px;
  background: #fff;
  border-radius: 5px;
}

.demo-side ul {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.demo-side li {
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.demo-side li:first-child {
  background: var(--blue);
}

.demo-board {
  padding: 20px;
  min-width: 0;
}

.demo-board h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.panel,
.function-card,
.stat-card,
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(5, 27, 69, 0.08);
}

.metric-card {
  min-height: 86px;
  padding: 14px;
}

.metric-card span,
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-card strong,
.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.metric-card em,
.stat-card em {
  display: block;
  margin-top: 8px;
  color: #12a150;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.chart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 12px;
  margin-top: 12px;
}

.line-chart,
.donut-card,
.bar-card {
  min-height: 172px;
  padding: 14px;
}

.chart-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.sparkline {
  width: 100%;
  height: 110px;
}

.donut {
  width: 118px;
  height: 118px;
  margin: 6px auto;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 42%, var(--cyan) 42% 67%, var(--teal) 67% 84%, #9aa8bd 84% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 31px;
  background: #fff;
  border-radius: 50%;
}

.summary-band {
  width: min(1440px, calc(100% - 48px));
  min-height: 106px;
  margin: -18px auto 0;
  padding: 18px 28px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  border-right: 1px solid var(--line);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item strong {
  display: block;
  color: var(--blue);
  font-size: 26px;
}

.summary-item span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.section {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-head {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-head h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 28px;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.function-card {
  min-height: 190px;
  padding: 20px;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.function-card:hover,
.function-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(7, 91, 216, 0.4);
  box-shadow: 0 20px 45px rgba(5, 27, 69, 0.14);
  outline: none;
}

.module-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--blue);
  background: #eaf2ff;
  display: grid;
  place-items: center;
}

.function-card:nth-child(4n + 2) .module-icon { color: var(--green); background: #eaf8ed; }
.function-card:nth-child(4n + 3) .module-icon { color: var(--amber); background: #fff3dd; }
.function-card:nth-child(4n + 4) .module-icon { color: #7c3fb0; background: #f1e8fb; }

.function-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.function-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.module-shell {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.module-sidebar {
  position: sticky;
  top: 83px;
  height: calc(100vh - 83px);
  padding: 24px 18px;
  overflow-y: auto;
  color: #fff;
  background: linear-gradient(180deg, #061a3c, #063174);
}

.side-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.side-logo img {
  width: 46px;
  height: auto;
  padding: 3px;
  background: #fff;
  border-radius: 5px;
}

.side-logo strong {
  display: block;
  font-size: 14px;
}

.side-logo span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.menu-list {
  display: grid;
  gap: 7px;
}

.menu-item {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
}

.menu-item.active,
.menu-item:hover {
  color: #fff;
  background: rgba(7, 91, 216, 0.9);
}

.small-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.small-icon svg {
  width: 20px;
  height: 20px;
}

.module-main {
  min-width: 0;
  padding: 28px;
}

.module-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.module-title h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
}

.module-title p {
  max-width: 830px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.status-chip {
  min-width: 150px;
  padding: 11px 14px;
  border: 1px solid #bde6f0;
  border-radius: 999px;
  background: #eafaff;
  color: #00617a;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 112px;
  padding: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 18px;
}

.panel {
  min-width: 0;
  padding: 20px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.bars {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  height: 196px;
  padding-top: 16px;
  border-bottom: 1px solid var(--line);
}

.bar {
  min-height: 36px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #08a8d8, #075bd8);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.timeline li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 0;
}

.timeline strong {
  display: block;
  font-size: 14px;
}

.timeline span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.table-card {
  margin-top: 18px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.data-table th {
  color: var(--muted);
  background: #f7faff;
  font-size: 12px;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .device-showcase {
    min-height: 0;
  }

  .function-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-band,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-item {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .top-strip {
    display: none;
  }

  .app-header {
    top: 0;
    min-height: 74px;
    padding: 10px 18px;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 170px;
  }

  .brand img {
    width: 196px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 20px;
  }

  .primary-action {
    min-height: 38px;
    padding: 0 14px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 32px;
  }

  .screen {
    grid-template-columns: 1fr;
  }

  .demo-side {
    display: none;
  }

  .metric-grid,
  .chart-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .value-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-shell {
    grid-template-columns: 1fr;
  }

  .module-sidebar {
    position: static;
    height: auto;
  }

  .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-main {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .strip-inner,
  .hero-inner,
  .summary-band,
  .section {
    width: min(100% - 28px, 1440px);
  }

  .home-copy h1 {
    font-size: 36px;
  }

  .home-copy p {
    font-size: 15px;
  }

  .laptop {
    min-height: 0;
    padding: 10px 10px 24px;
    border-width: 6px;
  }

  .laptop::after {
    display: none;
  }

  .demo-board {
    padding: 14px;
  }

  .summary-band,
  .value-row,
  .function-grid,
  .stats-grid,
  .menu-list {
    grid-template-columns: 1fr;
  }

  .summary-band {
    margin-top: 24px;
  }

  .module-topbar {
    display: block;
  }

  .status-chip {
    display: inline-flex;
    margin-top: 16px;
  }

  .data-table {
    min-width: 640px;
  }

  .table-card {
    overflow-x: auto;
  }
}
