html {
  scroll-padding-top: 72px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #111;
  background: #f6f7f9;
  line-height: 1.4;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.nav a:hover {
  color: #111;
}

.nav-cta {
  padding: 6px 10px;
  background: #111;
  color: #fff !important;
  border-radius: 6px;
}

/* HERO */

.hero {
  padding: 46px 0;
  background: #fff;
  border-bottom: 1px solid #e6e9ef;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.hero h1 {
  font-size: 26px;
  line-height: 1.15;
  margin: 10px 0 12px;
  max-width: 680px;
}

.hero p {
  color: #555;
  font-size: 13px;
  max-width: 620px;
}

.hero-actions {
  margin-top: 16px;
}

.hero-card {
  background: #f8fafc;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  padding: 14px;
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
}

.hero-card li {
  font-size: 12px;
  color: #555;
  margin: 5px 0;
}

/* EYEBROW */

.eyebrow {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  color: #2454d6;
  background: #eef4ff;
  border: 1px solid #dbe7ff;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  border: 1px solid #ccc;
  cursor: pointer;
  margin-right: 8px;
}

.btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn.secondary {
  background: #fff;
  color: #333;
}

/* SECTIONS */

.section {
  padding: 28px 0;
}

.section h2 {
  font-size: 20px;
  margin: 8px 0 12px;
  line-height: 1.3;
  color: #111;
}

.section h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: #2454d6;
  border-radius: 999px;
  margin-top: 8px;
}

.section-text {
  color: #555;
  max-width: 650px;
  font-size: 13px;
}

/* DARK SECTION */

.section.dark {
  background: #111827;
  color: #fff;
  padding: 30px 0;
}

.section.dark .section-text {
  color: #cbd5e1;
}

.section.dark h2 {
  color: #fff;
}

.section.dark h2::after {
  background: #7aa2ff;
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.card {
  background: #fff;
  border: 1px solid #e4e8ef;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(20, 30, 60, 0.04);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.card p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

/* CHANNELS */

.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.channel {
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.section.dark .channel {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

/* DEMO */

.demo-panel {
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(20, 30, 60, 0.04);
}

.demo-toolbar {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 10px;
  align-items: end;
  padding: 10px;
  background: #f7f9fc;
  border-bottom: 1px solid #e4e8ef;
}

.channel-select {
  display: contents;
}

.channel-select label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.channel-select select {
  min-width: 160px;
  padding: 6px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
}

.status {
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  min-width: 330px;
  max-width: 360px;
  font-size: 11px;
  color: #777;
}

.rate-text,
.time-badge {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rate-text {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  transition: color .9s ease, background-color .9s ease, border-color .9s ease;
}

.status-pulse .rate-text {
  color: #111827;
  background: #dbeafe;
  border-color: #93c5fd;
  animation: ratePulse 1.4s ease-out;
}

@keyframes ratePulse {
  0% {
    color: #111827;
    background: #bfdbfe;
    border-color: #60a5fa;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, .25);
  }

  55% {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .08);
  }

  100% {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.time-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.time-day {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.time-late {
  background: #fffaeb;
  color: #b54708;
  border: 1px solid #fedf89;
}

.time-night {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

/* NEWS */

.news-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
}

.empty-state {
  padding: 16px;
  color: #888;
  text-align: center;
  font-size: 12px;
}

.news-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.news-item strong {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}

.news-item ul {
  padding-left: 16px;
  margin: 0;
}

.news-item li {
  font-size: 12px;
  color: #444;
  margin-bottom: 4px;
}

.news-tags {
  margin-top: 6px;
}

.news-tags-label {
  font-size: 11px;
  color: #666;
  margin-right: 4px;
}

.news-tag {
  display: inline-block;
  background: #f1f3f7;
  border: 1px solid #e1e4ea;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 4px;
  margin-right: 4px;
  margin-top: 4px;
}

/* CTA */

.cta {
  text-align: center;
  background: #fff;
}

.cta h2 {
  font-size: 20px;
}

.cta p {
  font-size: 13px;
  color: #555;
}

/* FOOTER */

.site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 18px 0;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 4px 0 0;
  color: #777;
}

.site-footer a {
  color: #555;
  text-decoration: none;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .demo-toolbar {
    grid-template-columns: 1fr;
  }

  .channel-select {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .channel-select select,
  .status {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
  }
}