@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
  --midnight: #121a21;
  --midnight-light: #1e2830;
  --steel: #394854;
  --pearl: #d4dde6;
  --silver: #8a95a0;
  --white: #ffffff;
  --off-white: #f5f7f9;
  --red: #d00000;
  --red-hover: #b00000;
  --orange: #ff4d00;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--midnight);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--red-hover);
}

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

/* ===== NAVIGATION ===== */

.site-nav {
  position: relative;
  z-index: 100;
  background: var(--midnight);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.375rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo svg {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
  opacity: 0.7;
}

.nav-cta {
  border: 1px solid var(--red);
  color: var(--red) !important;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  font-size: 0.8125rem;
  border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-cta:hover {
  background: var(--red);
  color: var(--white) !important;
  opacity: 1;
}

/* ===== HERO (dark section) ===== */

.hero {
  background: var(--midnight);
  position: relative;
  overflow: hidden;
  padding: 5rem 2.5rem 4rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  flex: 0 0 auto;
}

.hero-desc {
  color: var(--pearl);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 420px;
  padding-top: 0.5rem;
}

/* Red corner bracket decoration */
.hero-bracket {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.hero-bracket::before,
.hero-bracket::after {
  content: '';
  position: absolute;
  background: var(--red);
}

.hero-bracket::before {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
}

.hero-bracket::after {
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
}

/* Scroll indicator */
.hero-scroll {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0;
}

.scroll-circle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--steel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.scroll-circle:hover {
  border-color: var(--white);
}

.scroll-circle svg {
  width: 14px;
  height: 14px;
  color: var(--white);
}

/* ===== INSIGHTS CARD GRID ===== */

.insights-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}

/* Featured card (first article) */
.card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 3rem;
  text-decoration: none;
  color: var(--midnight);
  transition: box-shadow 0.3s ease;
}

.card-featured:hover {
  color: var(--midnight);
  box-shadow: 2px 4px 20px rgba(18, 26, 33, 0.08);
}

.card-featured:hover .card-img img {
  transform: scale(1.05);
}

.card-img {
  overflow: hidden;
  background: var(--pearl);
  aspect-ratio: 4/3;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Placeholder when no image */
.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--steel) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--silver);
  opacity: 0.4;
}

.card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--midnight);
  border: 1px solid var(--pearl);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--midnight);
  margin-bottom: 1rem;
}

.card-excerpt {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--silver);
  font-weight: 400;
}

.card-meta span + span::before {
  content: '\00B7';
  margin: 0 0.5rem;
}

/* Grid cards (remaining articles) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card-standard {
  display: block;
  text-decoration: none;
  color: var(--midnight);
  transition: box-shadow 0.3s ease;
}

.card-standard:hover {
  color: var(--midnight);
  box-shadow: 2px 4px 20px rgba(18, 26, 33, 0.08);
}

.card-standard:hover .card-img img {
  transform: scale(1.05);
}

.card-standard .card-img {
  aspect-ratio: 16/10;
}

.card-standard .card-body {
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid var(--off-white);
  border-top: none;
}

.card-standard .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-standard .card-excerpt {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ===== ARTICLE PAGE ===== */

.article-hero {
  background: var(--midnight);
  padding: 4rem 2.5rem 3rem;
}

.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pearl);
  font-size: 0.8125rem;
  font-weight: 400;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.article-back:hover {
  color: var(--white);
}

.article-back svg {
  width: 14px;
  height: 14px;
}

.article-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--steel);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-hero .card-meta {
  color: var(--silver);
}

/* Article body */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--midnight);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--midnight);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-weight: 300;
  color: var(--midnight);
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content strong {
  font-weight: 600;
  color: var(--midnight);
}

.article-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--red-hover);
}

/* Read next section */
.read-next {
  background: var(--off-white);
  padding: 4rem 2.5rem;
}

.read-next-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.read-next h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 2rem;
}

.read-next .cards-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ===== ABOUT PAGE ===== */

.page-hero {
  background: var(--midnight);
  padding: 5rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.page-hero p {
  color: var(--pearl);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 560px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--midnight);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1.25rem;
  font-weight: 300;
}

/* ===== 404 ===== */

.four-oh-four {
  background: var(--midnight);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2.5rem;
}

.four-oh-four-inner {
  max-width: 480px;
}

.four-oh-four h1 {
  font-size: 6rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1rem;
}

.four-oh-four p {
  color: var(--pearl);
  font-size: 1.0625rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.four-oh-four a {
  color: var(--white);
  font-weight: 500;
  border: 1px solid var(--red);
  padding: 0.75rem 1.5rem;
  display: inline-block;
  transition: background 0.3s ease;
}

.four-oh-four a:hover {
  background: var(--red);
  color: var(--white);
}

/* ===== FOOTER ===== */

.site-footer {
  background: var(--midnight);
  border-top: 1px solid var(--midnight-light);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  color: var(--silver);
  font-size: 0.8125rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--silver);
  font-size: 0.8125rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .nav-inner {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-bracket {
    width: 80px;
    height: 80px;
  }

  .insights-section {
    padding: 2.5rem 1.25rem;
  }

  .card-featured {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.375rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .article-hero {
    padding: 2.5rem 1.25rem 2rem;
  }

  .article-content {
    padding: 2rem 1.25rem 3rem;
  }

  .page-hero {
    padding: 3rem 1.25rem;
  }

  .page-content {
    padding: 2rem 1.25rem 3rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 1.25rem;
  }

  .read-next {
    padding: 2.5rem 1.25rem;
  }

  .read-next .cards-grid {
    grid-template-columns: 1fr;
  }

  .card-standard .card-body {
    padding: 1.25rem;
  }
}
