:root {
  color-scheme: dark;
  --bg: #040404;
  --panel: #0a0a0a;
  --panel-2: #0f0f0f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f1;
  --muted: #b7b7b2;
  --muted-2: #8b8f8a;
  --green: #7aeb8f;
  --green-2: #5ad76f;
  --green-soft: rgba(122, 235, 143, 0.12);
  --info: #cfe9d5;
  --warn: #ffd777;
  --critical: #ff8f8f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at top center, rgba(122, 235, 143, 0.08), transparent 28%),
    linear-gradient(180deg, #070707 0%, #040404 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 80%);
}

.landing-shell {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 0 0 84px;
}

.value-card,
.story-card,
.audience-card,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.hero-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 28px 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -100px;
  bottom: -24px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 18% 22%, rgba(122, 235, 143, 0.18), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(122, 235, 143, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(9, 27, 13, 0.98), rgba(5, 10, 7, 0.99)),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, auto, auto, 28px 28px, 28px 28px;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 100vw;
  height: calc(100% + 220px);
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 30% 50%, rgba(122, 235, 143, 0.13), transparent 28%),
    radial-gradient(circle at 68% 40%, rgba(122, 235, 143, 0.08), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(122, 235, 143, 0.08), transparent 20%);
  filter: blur(18px);
  animation: heroPulse 9s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.card-kicker,
.card-label,
.live-pill {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
}

.hero-copy h1,
.section-heading h2,
.cta-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-text,
.section-heading p,
.value-card p,
.story-card p,
.audience-card li,
.cta-copy p {
  color: var(--muted);
  line-height: 1.7;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.primary-button {
  background: var(--green);
  color: #0a110b;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-badges span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  padding: 9px 12px;
  color: #cfe9d5;
  font-size: 0.94rem;
}

.ticker-section {
  width: 100%;
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ticker-track {
  display: inline-flex;
  gap: 22px;
  padding: 14px 0;
  min-width: max-content;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 0.92rem;
  animation: ticker 22s linear infinite;
}

.section {
  margin-top: 84px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 18px;
}

.section-heading.narrow {
  max-width: 700px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

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

.value-card,
.story-card,
.audience-card {
  padding: 24px;
  background: var(--panel-2);
}

.value-card h3,
.story-card h3,
.audience-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.value-number {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 2.6rem;
  font-weight: 800;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease;
}

.tilt-card:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(122, 235, 143, 0.24);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.story-card {
  min-height: 220px;
}

.story-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.story-index {
  color: var(--green);
  font-size: 2rem;
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(122, 235, 143, 0.8);
}

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

.audience-card ul {
  margin: 0;
  padding-left: 18px;
}

.audience-card li + li {
  margin-top: 10px;
}

.pulse-card {
  position: relative;
}

.pulse-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(122, 235, 143, 0.1);
  animation: pulseBorder 3s ease-in-out infinite;
}

.cta-panel {
  margin-top: 84px;
  padding: 30px;
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, rgba(26, 21, 10, 0.88), rgba(12, 12, 12, 0.98));
}

.cta-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.full-width {
  width: 100%;
}

.reveal-section,
.reveal-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-section.is-visible,
.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card.delay-1 {
  transition-delay: 120ms;
}

.reveal-card.delay-2 {
  transition-delay: 220ms;
}

@keyframes heroPulse {
  0% {
    transform: translateX(-50%) scale(1) translateY(0px);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-50%) scale(1.03) translateY(12px);
    opacity: 1;
  }
}

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

@keyframes pulseBorder {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .landing-shell {
    width: min(100vw - 28px, 1200px);
  }

  .value-grid,
  .story-grid,
  .audience-grid,
  .hero-inline-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .landing-shell {
    width: min(100vw - 20px, 1200px);
    padding-top: 18px;
    padding-bottom: 52px;
  }

  .site-header,
  .hero-actions,
  .header-links,
  .story-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-section,
  .value-card,
  .story-card,
  .audience-card,
  .cta-panel {
    padding: 20px;
  }

  .hero-copy h1,
  .section-heading h2,
  .cta-copy h2 {
    font-size: 2.6rem;
  }
}


.hero-copy-full {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.hero-text-wide {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-copy-full .hero-actions,
.hero-copy-full .hero-badges {
  justify-content: center;
}

.hero-inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-inline-metrics > div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 7, 0.42);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.hero-inline-metrics strong {
  display: block;
  margin-top: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}


.terminal-section {
  margin-top: 96px;
}

.terminal-shell {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.98), rgba(6, 6, 6, 0.98));
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.terminal-topbar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.terminal-window {
  min-height: 380px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "DM Mono", monospace;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.terminal-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-role {
  flex: 0 0 auto;
  min-width: 72px;
  color: var(--green);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.terminal-content {
  white-space: pre-wrap;
  color: #d8e6dc;
  line-height: 1.8;
}

.terminal-cursor::after {
  content: "▌";
  margin-left: 2px;
  color: var(--green);
  animation: cursorBlink 0.9s steps(1) infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.activity-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(2, 4, 3, 0.78);
  backdrop-filter: blur(6px);
}

.activity-modal-overlay[hidden] {
  display: none;
}

.activity-modal {
  width: 90vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.98), rgba(5, 5, 5, 0.98));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 26px;
}

.activity-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.activity-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
}

.activity-modal-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.activity-subtitle,
.activity-meta,
.feed-line-message,
.empty-state {
  color: var(--muted);
}

.activity-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.button-lite {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 15px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

.button-lite:hover {
  background: rgba(255, 255, 255, 0.06);
}

.activity-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex: 0 0 auto;
}

.activity-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.95rem;
}

.activity-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(122, 235, 143, 0.8);
}

.terminal-feed-card {
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.terminal-feed {
  height: 100%;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: "DM Mono", monospace;
}

.feed-line {
  display: grid;
  grid-template-columns: 150px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.feed-line-time,
.feed-line-level {
  color: var(--muted-2);
  font-size: 0.83rem;
}

.feed-line-level {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feed-line[data-level="INFO"] .feed-line-level {
  color: var(--green);
}

.feed-line[data-level="WARNING"] .feed-line-level,
.feed-line[data-level="WARN"] .feed-line-level {
  color: var(--warn);
}

.feed-line[data-level="CRITICAL"] .feed-line-level,
.feed-line[data-level="ERROR"] .feed-line-level {
  color: var(--critical);
}

.feed-line-message {
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--info);
}

.feed-line-message a {
  color: var(--green);
  text-decoration: none;
  word-break: break-all;
}

.feed-line-message a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .activity-modal {
    width: 96vw;
    height: 94vh;
    padding: 18px;
  }

  .activity-modal-header,
  .activity-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .feed-line {
    grid-template-columns: 1fr;
  }
}
