:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050a1f;
  color: #f4f6ff;
  --panel: rgba(10, 18, 44, 0.88);
  --panel-border: rgba(148, 163, 184, 0.12);
  --panel-elevated: rgba(12, 22, 58, 0.95);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-warm: #facc15;
  --danger: #f87171;
  --muted: #9da6c6;
  --text-strong: #f8fbff;
}

* {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 40%),
    radial-gradient(circle at bottom right, rgba(248, 113, 113, 0.08), transparent 45%),
    #050a1f;
  color: var(--text-strong);
}

.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem) clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at bottom left, rgba(248, 113, 113, 0.2), transparent 60%), rgba(5, 10, 31, 0.85);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.1);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0;
  max-width: 32rem;
  color: rgba(226, 232, 240, 0.9);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 0;
}

.hero__stat {
  padding: 1rem 1.2rem;
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero__stat dt {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-strong);
}

.hero__stat dd {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero__visual {
  display: grid;
  gap: 1.25rem;
}

.hero__card {
  background: rgba(7, 14, 32, 0.78);
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(5, 10, 31, 0.4);
}

.hero__card--accent {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.25), rgba(56, 189, 248, 0.12));
  border-color: rgba(56, 189, 248, 0.35);
}

.hero__card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero__card ol,
.hero__card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.6;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll,
.btn[href^="#"] {
  scroll-behavior: smooth;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.5rem, 2vw, 2.5rem);
  backdrop-filter: blur(18px);
  background: rgba(5, 10, 31, 0.85);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand__logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(14, 165, 233, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 1.75rem;
}

.brand__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand__title {
  font-weight: 700;
  font-size: 1.35rem;
}

.brand__subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

.topbar__actions {
  display: flex;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 0.9rem;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-strong);
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.15);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:visited {
  color: var(--text-strong);
  text-decoration: none;
}

.btn:hover,
.btn:focus,
.btn:active {
  text-decoration: none;
}

a.btn,
a.btn:visited,
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(148, 163, 184, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.btn--accent {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.8), rgba(56, 189, 248, 0.65));
  border-color: rgba(14, 165, 233, 0.45);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(1.5rem, 2vw, 2.5rem);
  padding: clamp(1.5rem, 2vw, 2.5rem);
  flex: 1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  padding: 1.75rem clamp(1.5rem, 2vw, 2rem);
  box-shadow: 0 28px 60px rgba(7, 10, 26, 0.55);
}

.panel--sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.panel__title {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.status {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.status__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0.75rem rgba(56, 189, 248, 0.45);
}

.status__text {
  font-size: 0.95rem;
  color: var(--accent);
}

.status__text.error {
  color: var(--danger);
}

.metrics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.metric-card {
  background: var(--panel-elevated);
  border-radius: 1.2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 32px rgba(5, 10, 31, 0.35);
}

.metric-card h3 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-card p {
  margin: 0.65rem 0 0;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.panel__cta {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(56, 189, 248, 0.08));
  border-radius: 1.15rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.panel__cta h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.panel__cta ol {
  margin: 0;
  padding-left: 1.4rem;
  color: var(--muted);
  line-height: 1.5;
}

.panel--main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.panel__group {
  display: grid;
  gap: 1rem;
}

.panel__group--tables {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.panel__group--charts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.chart-card,
.data-card {
  background: rgba(7, 14, 32, 0.9);
  border-radius: 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 28px rgba(4, 9, 28, 0.36);
  display: flex;
  flex-direction: column;
}

.chart-card header,
.data-card header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.chart-card h2,
.data-card h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.chart-card__subtitle,
.data-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.chart-card__canvas {
  position: relative;
  width: 100%;
  padding-bottom: 72%;
}

.chart-card__canvas canvas {
  position: absolute;
  inset: 0;
}

.chart-card__canvas {
  position: relative;
  width: 100%;
  padding-bottom: 70%;
}

.chart-card__canvas canvas {
  position: absolute;
  inset: 0;
}

.data-card--wide {
  grid-column: 1 / -1;
}

.table-wrapper {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: var(--text-strong);
}

thead {
  background: rgba(15, 23, 42, 0.85);
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

th {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

td {
  color: #e7ecff;
}

canvas {
  width: 100%;
}

.footer {
  padding: 1.25rem clamp(1.5rem, 2vw, 2.5rem);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--panel-border);
  background: rgba(5, 10, 31, 0.8);
}

.testimonials {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 6rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(56, 189, 248, 0.04));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.testimonials__intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.testimonials__intro p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  max-width: 42rem;
  line-height: 1.6;
}

.testimonials__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
  background: rgba(8, 15, 35, 0.92);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 18px 38px rgba(5, 10, 31, 0.35);
  display: grid;
  gap: 0.75rem;
}

.testimonial-card header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.testimonial-card header p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}

.testimonial-card header a {
  color: var(--accent);
  text-decoration: none;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.88);
}

.testimonial-card__role {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel--sidebar {
    order: 2;
  }

  .panel--main {
    order: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    align-items: center;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-items: center;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .topbar__actions {
    justify-content: stretch;
  }

  .btn {
    flex: 1;
  }
}

@media (max-width: 540px) {
  .layout {
    padding: 1.25rem;
  }

  .panel {
    padding: 1.4rem;
  }

  .panel__group--tables {
    grid-template-columns: 1fr;
  }
}
