:root {
  --bg: #07111f;
  --bg-soft: rgba(14, 25, 43, 0.75);
  --card: rgba(13, 22, 39, 0.86);
  --card-strong: rgba(18, 30, 52, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f7ff;
  --muted: #9fb0cc;
  --accent: #7c8cff;
  --accent-2: #9b6cff;
  --warm: #ffb24b;
  --warm-strong: #ff8b3d;
  --success: #7df3b4;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 140, 255, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 139, 61, 0.14), transparent 20%),
    linear-gradient(180deg, #08111d 0%, #050b14 100%);
}

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: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 90%);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

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

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-weight: 800;
  font-size: 31px;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.brand-name-main {
  color: #f5efe7;
}

.brand-name-accent {
  color: #7374ff;
}

.brand-sub,
.footer-copy,
.post-meta,
.post-excerpt,
.article-copy,
.post-list-date,
.list-intro,
.empty-copy,
.section-heading p,
.article-body p,
.article-body li,
.back-link {
  color: var(--muted);
}

.topbar .brand-sub,
.footer-brand-wrap .brand-sub {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(243, 247, 255, 0.7);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a,
.footer-links a,
.post-link,
.back-link {
  color: rgba(243, 247, 255, 0.8);
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.post-link:hover,
.back-link:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #516dff 42%, var(--accent-2));
  box-shadow: 0 18px 36px rgba(103, 107, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
}

.section {
  padding: 28px 0;
}

.news-hero,
.article-hero {
  padding: 42px 0 18px;
}

.news-hero-copy {
  max-width: 760px;
}

.article-hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(125, 243, 180, 0.2);
  border-radius: 999px;
  background: rgba(125, 243, 180, 0.08);
  color: #cbf8df;
  font-size: 12px;
  font-weight: 600;
}

.news-hero h1,
.article-hero h1,
.section-heading h2,
.post-card h2,
.article-body h2,
.article-body h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.news-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  max-width: 760px;
}

.article-hero h1 {
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.08;
  max-width: 820px;
}

.hero-text,
.list-intro,
.article-copy,
.section-heading p,
.article-body p,
.article-body li {
  font-size: 17px;
  line-height: 1.8;
}

.hero-text,
.article-copy,
.list-intro {
  max-width: 720px;
  margin: 18px 0 0;
}

.post-meta,
.post-list-date,
.back-link {
  font-size: 14px;
}

.post-meta {
  margin-top: 18px;
}

.back-link-row {
  margin-bottom: 18px;
}

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

.section-heading h2,
.post-card h2,
.article-body h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.article-body h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-top: 6px;
}

.news-list {
  display: grid;
  gap: 18px;
}

.post-card,
.article-shell,
.empty-state {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.post-card {
  padding: 26px;
  display: grid;
  gap: 14px;
}

.post-card h2 {
  font-size: 30px;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dfe5ff;
  font-weight: 600;
}

.post-link::after {
  content: "→";
  color: var(--warm);
}

.post-excerpt {
  margin: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.article-shell {
  padding: 28px;
}

.article-body {
  display: grid;
  gap: 18px;
}

.article-body ul {
  margin: 0;
  padding-left: 20px;
}

.article-body strong {
  color: #f4f7ff;
}

.article-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
}

.callout {
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(124,140,255,0.22);
  background: rgba(124,140,255,0.08);
}

.callout p {
  margin: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 42px;
  color: rgba(243,247,255,0.76);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.empty-state {
  padding: 24px;
}

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .news-hero h1 {
    font-size: 34px;
  }

  .article-hero h1 {
    font-size: 30px;
  }

  .post-card h2,
  .section-heading h2,
  .article-body h2 {
    font-size: 24px;
  }

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