:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #101010;
  --muted: #5c5f66;
  --accent: #111827;
  --accent-strong: #111827;
  --accent-soft: #f4f0ff;
  --border: #e4e4e1;
  --gradient: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --brand: #111827;
  --highlight: #f97316;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #111827;
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(17, 24, 39, 0.2);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand);
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 12px;
}

/************ Header *************/
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: rgba(247, 247, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  font-weight: 600;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--brand);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/************ Landing *************/
.landing {
  padding: 40px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.hero-copy {
  background: var(--card);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(15, 15, 15, 0.08);
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.lead {
  font-size: 1.1rem;
  color: #2e2e30;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li::before {
  content: '•';
  color: var(--highlight);
  margin-right: 10px;
}

.hero-card {
  background: #111827;
  color: #fff;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 35px 80px rgba(17, 24, 39, 0.35);
}

.hero-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card li {
  font-size: 0.95rem;
}

.card-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.story-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(15, 15, 15, 0.08);
}

.story-card h2,
.story-card h3 {
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li::before {
  content: '✔';
  color: var(--highlight);
  margin-right: 8px;
}

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

.value-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.flow {
  background: var(--card);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(15, 15, 15, 0.08);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.flow-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}

.flow-number {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.formats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.format-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 45px rgba(15, 15, 15, 0.07);
}

.format-card ul {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.format-card li i {
  color: var(--highlight);
  margin-right: 8px;
}

.cta-panel {
  background: #111827;
  color: #fff;
  border-radius: 32px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-side {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
}

/************ Onboarding *************/
.onboarding {
  padding: 60px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.onboarding-header h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.preferences-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.preferences-section {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.option-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #111827;
}

.option-card:hover {
  border-color: #111827;
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.08);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
}

.form-field small {
  color: var(--muted);
}

.field-error {
  color: #dc2626;
  font-weight: 600;
  margin-top: 8px;
}

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

.briefing-ready {
  padding: 80px 0;
}

.briefing-card {
  background: var(--card);
  border-radius: 28px;
  padding: 40px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 30px 70px rgba(15, 15, 15, 0.08);
}

.briefing-card h1 span {
  color: var(--highlight);
}

.briefing-summary {
  list-style: none;
  margin: 24px 0;
  display: grid;
  gap: 8px;
}

.briefing-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/************ Footer *************/
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-text {
  color: var(--muted);
  max-width: 460px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}

/************ Flash *************/
.flash-message {
  padding: 12px 0;
}

.flash-notice,
.flash-alert {
  color: #fff;
}

.flash-notice {
  background: #22c55e;
}

.flash-alert {
  background: #ef4444;
}

.flash-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.flash-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/************ News archive styles *************/
.main-content {
  width: min(1200px, 90vw);
  margin: 40px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.trending-page .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 2rem;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trending-item {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #efefef;
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.06);
}

.trending-header,
.trending-footer,
.trending-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trending-source {
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.trending-title {
  font-size: 1.2rem;
  margin: 16px 0;
}

.content-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.trending-summary p,
.trending-importance p,
.trending-insights span {
  font-size: 0.95rem;
  color: var(--muted);
}

.trending-importance,
.trending-insights {
  border-radius: 14px;
  padding: 16px;
  background: #f9fafb;
}

.trending-companies {
  font-weight: 600;
  color: var(--muted);
}

.pagination-wrapper {
  margin-top: 32px;
}

.main-sidebar {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid #efefef;
  box-shadow: 0 10px 30px rgba(15, 15, 15, 0.06);
}

.newsletter-sidebar-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.newsletter-sidebar-description {
  color: var(--muted);
  margin-bottom: 16px;
}

.newsletter-sidebar-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.newsletter-sidebar-button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.linkedin-page .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.linkedin-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.linkedin-post {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #efefef;
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.06);
}

.post-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #0077b5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-name {
  font-size: 1rem;
  margin: 0;
}

.author-title {
  color: var(--muted);
  margin: 4px 0;
}

.post-content {
  margin-bottom: 16px;
  color: var(--muted);
}

.post-media {
  margin-bottom: 16px;
}

.post-image,
.post-video {
  width: 100%;
  border-radius: 16px;
}

.post-stats {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/************ Responsive *************/
@media (max-width: 960px) {
  .main-content {
    grid-template-columns: 1fr;
  }

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

  .header-cta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero-copy,
  .hero-card,
  .story-card,
  .flow,
  .format-card,
  .cta-panel,
  .main-sidebar {
    padding: 24px;
  }

  .main-nav {
    flex-wrap: wrap;
  }
}
