:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #eef2f6;
  --text: #18202d;
  --muted: #637083;
  --line: #dce2ea;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --accent-soft: #d9f3ef;
  --shadow: 0 18px 45px rgba(20, 31, 45, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 248, 251, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  padding: 72px 40px;
}

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

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 24px;
}

h2 {
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.hero-text {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
}

.hero-actions,
.dashboard-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-panel,
.feature-card,
.metric-card,
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

.preview-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.preview-header span,
.preview-grid span,
.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
}

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

.preview-grid div {
  background: var(--surface-muted);
  border-radius: 8px;
  padding: 16px;
}

.preview-grid strong,
.metric-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  margin-top: 8px;
}

.section,
.dashboard-shell,
.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px 40px 72px;
}

.section-heading {
  margin-bottom: 22px;
}

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

.feature-card,
.metric-card {
  padding: 22px;
}

.feature-card p,
.dashboard-heading p,
.legal p,
.legal li {
  color: var(--muted);
}

.dashboard-heading {
  justify-content: space-between;
  margin-bottom: 28px;
}

.dashboard-heading h1,
.legal h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 38px;
}

.recent-videos {
  margin-top: 14px;
}

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

table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.legal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 30px;
}

.legal a {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 24px 40px;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .hero,
  .section,
  .dashboard-shell,
  .page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 18px;
    padding-top: 18px;
    position: static;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
  }

  .feature-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .legal {
    padding: 24px;
  }
}
