:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-soft: #f1f2f4;
  --surface-dark: #07111d;
  --text: #17202a;
  --text-soft: #57606b;
  --text-inverse: #f8fafc;
  --primary: #0f2442;
  --primary-strong: #0a1930;
  --accent: #9c6b11;
  --accent-soft: #f5dfb3;
  --border: rgba(23, 32, 42, 0.1);
  --shadow: 0 18px 45px rgba(12, 28, 46, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-height: 86px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 36, 66, 0.05), transparent 30%),
    linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%);
}

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

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

button {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(241,242,244,0.88));
  border-top: 1px solid rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.6);
}

.section-dark {
  background: linear-gradient(135deg, #081321 0%, #10233f 100%);
  color: var(--text-inverse);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  backdrop-filter: blur(16px);
  background: rgba(247, 247, 248, 0.8);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(12, 28, 46, 0.08);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #183763);
  box-shadow: var(--shadow);
}

.brand-mark img {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1rem;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: color var(--transition);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  color: var(--primary);
  cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-toggle span::before { top: -6px; }
.mobile-toggle span::after { top: 6px; }

.mobile-toggle.is-open span { background: transparent; }
.mobile-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.mobile-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.header-panel {
  display: contents;
}

.hero-section {
  padding-top: 54px;
}

.hero-grid,
.grid-two,
.community-grid,
.flow-layout {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.cta-panel h2,
.section-dark h2 {
  font-family: "Newsreader", serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  margin: 0;
  color: var(--primary);
}

.hero-copy h1 span {
  font-style: italic;
  font-weight: 500;
}

.hero-text,
.section-heading p,
.feed-card p,
.cta-panel p,
.community-grid p {
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 1.04rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-points {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-points li,
.feed-tag,
.domain-list li,
.eyebrow,
.eyebrow-light {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-points li {
  color: var(--primary);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(15,36,66,0.12), rgba(15,36,66,0.45));
  box-shadow: 0 30px 70px rgba(12, 28, 46, 0.16);
}

.hero-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(7,17,29,0.08) 20%, rgba(7,17,29,0.82) 100%);
}

.card,
.glass-card,
.cta-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.glass-card {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(5, 13, 23, 0.18);
}

.topic-card {
  max-width: 420px;
  padding: 1.3rem;
  color: var(--text-inverse);
}

.topic-card h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: 1.7rem;
  font-family: "Newsreader", serif;
  line-height: 1.08;
}

.topic-meta,
.feed-meta,
.footer-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(248,250,252,0.78);
  font-size: 0.88rem;
  font-weight: 600;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading h2,
.cta-panel h2,
.section-dark h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin: 0.2rem 0 1rem;
}

.eyebrow {
  color: var(--accent);
}

.eyebrow-light {
  color: rgba(255,255,255,0.78);
}

.flow-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.flow-sidebar,
.feed-card,
.stack {
  padding: 1.5rem;
}

.flow-sidebar h3,
.feed-card h3,
.cta-panel h2,
.section-dark h2,
.community-cards strong {
  margin-top: 0;
}

.domain-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.domain-list li {
  color: var(--text-soft);
  background: rgba(241,242,244,0.68);
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.domain-list li.is-active {
  color: var(--primary);
  background: rgba(156,107,17,0.12);
  border-color: rgba(156,107,17,0.24);
}

.flow-feed {
  display: grid;
  gap: 1rem;
}

.feed-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(15,36,66,0.08);
  color: var(--primary);
}

.feed-card h3 {
  font-size: 1.55rem;
  font-family: "Newsreader", serif;
  line-height: 1.1;
}

.feed-meta {
  margin-top: 1rem;
  color: var(--text-soft);
}

.lift {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(12, 28, 46, 0.12);
  border-color: rgba(156,107,17,0.22);
}

.grid-two,
.community-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.stack {
  display: grid;
  gap: 1rem;
}

.metric-item {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(241,242,244,0.65);
}

.metric-item strong,
.footer-brand strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--primary);
  font-size: 1rem;
}

.community-cards {
  display: grid;
  gap: 1rem;
}

.mini-card {
  padding: 1.2rem;
  color: var(--text-inverse);
}

.mini-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.mini-card span {
  color: rgba(255,255,255,0.82);
}

.cta-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(241,242,244,0.82));
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.25rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0 1.2rem;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #19345d);
  color: var(--text-inverse);
  box-shadow: 0 16px 30px rgba(15, 36, 66, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-strong), #142b4d);
}

.btn-secondary {
  background: rgba(255,255,255,0.72);
  color: var(--primary);
  border-color: rgba(15,36,66,0.12);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  background: #f1f2f4;
  border-top: 1px solid rgba(23, 32, 42, 0.08);
}

.footer-inner {
  display: grid;
  gap: 1.4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.footer-brand p,
.footer-column a,
.footer-meta,
.footer-note {
  color: var(--text-soft);
  line-height: 1.65;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.footer-column h4 {
  margin: 0;
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 32, 42, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 960px) {
  .hero-grid,
  .grid-two,
  .community-grid,
  .cta-panel,
  .footer-top,
  .flow-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 480px;
  }

  .header-panel {
    display: none;
    position: absolute;
    top: calc(var(--header-height) + 0.35rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .header-panel.is-open {
    display: grid;
    gap: 1rem;
  }

  .site-nav,
  .header-actions {
    display: grid;
    gap: 0.9rem;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero-section {
    padding-top: 32px;
  }

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

  .hero-card {
    min-height: 400px;
  }

  .topic-card h2 {
    font-size: 1.4rem;
  }
}
