:root {
  --bg: #f6efe4;
  --bg-strong: #07111f;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: #0b1628;
  --line: rgba(7, 17, 31, 0.12);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #081321;
  --muted: #576579;
  --accent: #ff6b2c;
  --accent-soft: #ffd5b8;
  --sky: #70d6ff;
  --shadow: 0 30px 90px -40px rgba(7, 17, 31, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(112, 214, 255, 0.35), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 107, 44, 0.16), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 52%, var(--bg) 100%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.hero-panel,
.story-card,
.sections article,
.briefing-list div,
.site-footer {
  backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow.accent {
  color: #b54a1b;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 22px;
  margin-top: 22px;
}

.hero-copy,
.briefing {
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  background: linear-gradient(160deg, #081321 0%, #10223e 62%, #132f56 100%);
  color: #f5fbff;
}

.hero-copy h1,
.section-heading h2,
.briefing-copy h2 {
  margin: 12px 0 0;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  text-transform: uppercase;
}

.hero-text {
  max-width: 48rem;
  margin-top: 22px;
  font-size: 1.03rem;
  line-height: 1.8;
  color: rgba(245, 251, 255, 0.8);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 12px 0 0;
  font-size: 2rem;
  line-height: 1.08;
}

.hero-panel p:last-child {
  margin-bottom: 0;
  line-height: 1.8;
  color: var(--muted);
}

.story-grid,
.live-stories,
.sections {
  margin-top: 26px;
}

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

.section-copy {
  max-width: 52rem;
  color: var(--muted);
  line-height: 1.75;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.story-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.story-card-featured {
  grid-column: span 2;
  background: linear-gradient(180deg, #0a1424 0%, #112742 100%);
  color: white;
  border-color: var(--line-strong);
}

.story-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f3814;
}

.story-card-featured .story-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sky);
}

.story-card h3 {
  margin: 18px 0 0;
  font-size: 1.55rem;
  line-height: 1.18;
}

.story-card p,
.sections p,
.briefing p,
.briefing-list span,
.site-footer {
  line-height: 1.75;
}

.story-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.story-card-featured p {
  color: rgba(245, 251, 255, 0.78);
}

.live-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.live-story-card,
.story-state {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.story-thumb {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 22px;
}

.story-thumb-image,
.story-thumb-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.story-thumb-image {
  object-fit: cover;
  background: rgba(7, 17, 31, 0.08);
}

.story-thumb-fallback {
  position: relative;
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, #10223e, #183b67);
}

.story-thumb-fallback strong {
  display: block;
  max-width: 12ch;
  margin-top: 34px;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.story-thumb-topic {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.live-story-card h3 {
  margin: 18px 0 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.story-source-title {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.live-story-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.story-fun {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 107, 44, 0.08);
  color: #7a3519;
}

.story-why strong {
  color: var(--text);
}

.source-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--accent);
}

.source-link:hover,
.source-link:focus-visible {
  text-decoration: underline;
}

.story-state {
  color: var(--muted);
  line-height: 1.8;
}

.story-state-error {
  border-color: rgba(198, 48, 48, 0.2);
  color: #8f1d1d;
}

.topic-ai {
  background: linear-gradient(135deg, #0f2140, #2d66a6);
}

.topic-startups {
  background: linear-gradient(135deg, #28111f, #b04a3d);
}

.topic-security {
  background: linear-gradient(135deg, #13211c, #1a7d66);
}

.topic-devices {
  background: linear-gradient(135deg, #24191a, #d37232);
}

.topic-apps {
  background: linear-gradient(135deg, #1e1931, #6854d8);
}

.topic-funding {
  background: linear-gradient(135deg, #2a240f, #b79621);
}

.topic-default {
  background: linear-gradient(135deg, #10223e, #183b67);
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.sections article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.sections h3,
.briefing-list strong {
  font-size: 1.2rem;
}

.briefing {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 22px;
  margin-top: 26px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(112, 214, 255, 0.22), rgba(255, 255, 255, 0.9), rgba(255, 107, 44, 0.14));
}

.briefing-list {
  display: grid;
  gap: 14px;
}

.briefing-list div {
  padding: 18px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.briefing-list strong,
.briefing-list span {
  display: block;
}

.briefing-list span {
  margin-top: 6px;
  color: var(--muted);
}

.site-footer {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .briefing,
  .cards,
  .live-story-grid,
  .section-cards {
    grid-template-columns: 1fr;
  }

  .story-card-featured {
    grid-column: auto;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .site-header,
  .hero-copy,
  .hero-panel,
  .story-card,
  .sections article,
  .briefing,
  .site-footer {
    border-radius: 24px;
  }

  .hero-copy,
  .hero-panel,
  .briefing {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 2.9rem;
  }
}
