:root {
  --bg: #0d0f14;
  --surface: #11151d;
  --surface-soft: #171c26;
  --surface-alt: #f4f5f7;
  --text: #f7f8fb;
  --text-dark: #101215;
  --muted: #9ea7b5;
  --muted-dark: #626a76;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(16, 18, 21, 0.1);
  --accent: #e30613;
  --accent-soft: rgba(227, 6, 19, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1120px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(227, 6, 19, 0.16), transparent 30%),
    linear-gradient(180deg, #090b10 0%, #0c1017 18%, #ffffff 56%, #f3f4f7 100%);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.ticker {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 48px;
  background: #040506;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ticker__label {
  display: grid;
  place-items: center;
  min-width: 124px;
  padding: 12px 20px;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ticker__viewport {
  overflow: hidden;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding-inline: 24px;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.ticker__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(227, 6, 19, 0.8);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 72px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__grid,
.hero__beam,
.hero__glow {
  position: absolute;
}

.hero__grid {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.18;
  transform: perspective(1000px) rotateX(72deg) scale(2.2) translateY(12%);
  transform-origin: top center;
}

.hero__glow {
  border-radius: 50%;
  filter: blur(70px);
}

.hero__glow--one {
  top: 12%;
  left: -4%;
  width: 280px;
  height: 280px;
  background: rgba(227, 6, 19, 0.34);
}

.hero__glow--two {
  right: -6%;
  bottom: 10%;
  width: 340px;
  height: 340px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__beam {
  inset-block: 18% auto;
  width: 42%;
  height: 360px;
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.28), transparent 72%);
  filter: blur(18px);
  opacity: 0.7;
  transform: rotate(-10deg);
}

.hero__beam--left {
  left: -8%;
}

.hero__beam--right {
  right: -14%;
  transform: rotate(14deg);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 16px 24px rgba(227, 6, 19, 0.24);
  filter: drop-shadow(0 16px 24px rgba(227, 6, 19, 0.24));
}

.brand__text {
  display: grid;
  gap: 4px;
}

.brand__name,
.footer__brand strong {
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand__tag,
.footer__brand p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero__grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #ffd6d8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.newsletter h2,
.legal-page h1 {
  margin: 0;
  font-family: "Montserrat", "Inter", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.hero__lede,
.section-heading__body,
.newsletter__copy p,
.value-card p,
.category-card p,
.feed-card__fallback p,
.mini-panel p,
.signal-card p,
.legal-page p,
.legal-page li {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero__lede {
  max-width: 58ch;
  margin: 22px 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button--primary {
  background: linear-gradient(180deg, #ff3440, var(--accent));
  color: #fff;
  box-shadow: 0 16px 36px rgba(227, 6, 19, 0.28);
}

.button--secondary,
.button--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero__stats li,
.signal-card,
.feed-card,
.mini-panel,
.value-card,
.category-card,
.newsletter,
.legal-page__card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero__stats li {
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
}

.hero__stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero__stats span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero__panel {
  position: relative;
}

.signal-card {
  border-radius: var(--radius-lg);
  padding: 26px;
}

.signal-card__header,
.feed-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signal-card__live,
.mini-panel__label,
.category-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-card__live {
  color: #fff;
}

.mini-panel__label,
.category-card__kicker {
  color: var(--text-dark);
}

.signal-card__live::before,
.mini-panel__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.signal-card__meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
}

.feed-card__header span,
.feed-card__header a {
  color: var(--muted-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.signal-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.signal-card__lines {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.signal-card__lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(227, 6, 19, 0.88), rgba(255, 255, 255, 0.12));
}

.signal-card__lines span:nth-child(2) {
  width: 86%;
}

.signal-card__lines span:nth-child(3) {
  width: 62%;
}

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

.signal-card__metrics div {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.signal-card__metrics dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signal-card__metrics dd {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

.section--feed {
  padding-top: 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2,
.newsletter h2 {
  color: var(--text-dark);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.section-heading__body,
.newsletter__copy p,
.value-card p,
.category-card p {
  color: var(--muted-dark);
}

.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 24px;
}

.feed-card,
.mini-panel,
.value-card,
.category-card,
.newsletter,
.legal-page__card {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.feed-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.feed-card__embed {
  position: relative;
  min-height: 620px;
  margin-top: 16px;
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(227, 6, 19, 0.18), transparent 38%),
    #0e1117;
}

.feed-card__embed.is-fallback {
  display: grid;
  place-items: center;
}

.feed-card__embed.is-fallback .twitter-timeline {
  display: none !important;
}

.feed-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
}

.feed-card__fallback-title {
  margin: 0;
  color: #fff;
  font-size: 1.16rem;
  font-weight: 800;
}

.feed-card__fallback-copy {
  max-width: 36ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
}

.feed-card__embed iframe,
.feed-card__embed .twitter-timeline {
  position: relative;
  z-index: 1;
}

.feed-card__status {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 2;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 11, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}

.feed-sidepanel {
  display: grid;
  gap: 20px;
}

.mini-panel {
  border-radius: var(--radius-md);
  padding: 24px;
}

.mini-panel p,
.mini-panel li {
  color: var(--muted-dark);
}

.mini-panel h3,
.category-card h3,
.value-card h3 {
  margin: 14px 0 10px;
  color: var(--text-dark);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 1.42rem;
  line-height: 1.18;
}

.mini-panel--inverse {
  background: linear-gradient(180deg, #151821, #0d1016);
  border-color: rgba(255, 255, 255, 0.06);
}

.mini-panel--inverse h3,
.mini-panel--inverse .mini-panel__label,
.mini-panel--inverse p,
.mini-panel--inverse li {
  color: rgba(255, 255, 255, 0.86);
}

.mini-panel__list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.value-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

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

.value-card {
  border-radius: var(--radius-md);
  padding: 26px;
}

.value-card__index {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section--categories {
  background:
    linear-gradient(180deg, rgba(227, 6, 19, 0.03), transparent 26%),
    linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(20px);
}

.category-card--politics {
  background:
    linear-gradient(180deg, rgba(15, 22, 36, 0.06), rgba(15, 22, 36, 0.01)),
    linear-gradient(135deg, #f6f0f0, #fefefe 56%);
}

.category-card--tech {
  background:
    linear-gradient(180deg, rgba(8, 52, 79, 0.08), rgba(8, 52, 79, 0.01)),
    linear-gradient(135deg, #eef7fb, #ffffff 58%);
}

.category-card--culture {
  background:
    linear-gradient(180deg, rgba(98, 54, 9, 0.08), rgba(98, 54, 9, 0.01)),
    linear-gradient(135deg, #faf5ec, #ffffff 58%);
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-lg);
}

.newsletter__label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-size: 0.94rem;
  font-weight: 700;
}

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

.newsletter__field input {
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(16, 18, 21, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
}

.newsletter__field input::placeholder {
  color: #8f98a5;
}

.newsletter__hint {
  margin: 12px 0 0;
  color: var(--muted-dark);
  font-size: 0.92rem;
}

.newsletter__hint.is-passive {
  color: var(--accent);
}

.footer {
  padding: 28px 0 40px;
  color: rgba(255, 255, 255, 0.8);
  background: #090b10;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer__brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand p {
  margin: 4px 0 0;
}

.footer__socials,
.footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

.legal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #0d1016 0%, #131823 18%, #f4f5f8 18%, #f4f5f8 100%);
  color: var(--text-dark);
}

.legal-page__wrap {
  width: min(820px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.legal-page__nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.legal-page__card {
  border-radius: var(--radius-lg);
  padding: 34px;
}

.legal-page h1 {
  color: var(--text-dark);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.legal-page h2 {
  margin: 28px 0 12px;
  color: var(--text-dark);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 1.24rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted-dark);
}

.legal-page ul {
  margin: 0;
  padding-left: 18px;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker__track {
    animation: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero__grid-layout,
  .feed-layout,
  .newsletter,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .footer__inner {
    justify-items: start;
  }
}

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

  .ticker__label {
    min-width: 100%;
    justify-content: start;
    padding-inline: 16px;
  }

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

  .topbar__actions {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 56px;
  }

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

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

  .feed-card__embed {
    min-height: 560px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100vw - 20px, 100%);
  }

  .section,
  .section--feed {
    padding: 72px 0;
  }

  .brand__logo {
    width: 56px;
    height: 56px;
  }

  .button,
  .newsletter__field input {
    min-height: 50px;
  }

  .feed-card,
  .mini-panel,
  .value-card,
  .category-card,
  .newsletter,
  .signal-card,
  .legal-page__card {
    padding: 20px;
  }

  .feed-card__embed {
    min-height: 520px;
  }
}
