* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f7f8fa;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: oklch(0.55 0.19 255 / 0.25); }

a {
  color: oklch(0.5 0.19 255);
  text-decoration: none;
}
a:hover { color: oklch(0.4 0.2 255); }

h1, h2, h3 { margin: 0; }

body > * {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

body { background: #f7f8fa; }

header, section, footer {
  background: #fff;
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 40px;
  border-bottom: 2px solid #12141a;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-first { color: #12141a; padding-right: 10px; }
.logo-pill {
  background: oklch(0.5 0.19 255);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 13px;
  color: #3a3f4a;
  letter-spacing: 0.02em;
  flex: 1 1 100%;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  order: 3;
}
.main-nav a { color: #3a3f4a; }

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: oklch(0.5 0.19 255 / 0.35);
  flex: none;
}

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

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 15px;
  flex: none;
  cursor: pointer;
}

.btn {
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost {
  background: #eef2ff;
  color: oklch(0.45 0.19 255);
  padding: 9px 16px;
}
.btn-primary {
  background: oklch(0.5 0.19 255);
  color: #fff;
  padding: 9px 18px;
}

/* HERO */
.hero {
  padding: 36px 40px 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.hero-headlines {
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.headline-row {
  display: flex;
  gap: 12px;
  padding: 14px 10px;
  border-bottom: 1px solid #f2f3f5;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.headline-row--last { border-bottom: none; }
.headline-row:hover { background: #fafbfd; }

.thumb {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 10px;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.25) 0 6px, transparent 6px 12px);
}
.thumb--lg {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.22) 0 8px, transparent 8px 16px);
}

.headline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: #1c1f26;
}

.hero-feature {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #12141a;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}
.hero-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(160deg, oklch(0.34 0.1 255) 0%, #12141a 65%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 14px, transparent 14px 28px);
}

.hero-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: oklch(0.5 0.19 255);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 100px;
  z-index: 1;
}

.hero-feature-text {
  position: relative;
  padding: 32px;
  color: #fff;
}
.hero-feature-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 520px;
}
.hero-feature-text p {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.hero-socials-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: oklch(0.5 0.19 255);
}
.hero-socials-title h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #12141a;
}

.socials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-card {
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  background: #fafbfd;
}
.social-icon { font-size: 20px; margin-bottom: 8px; }
.social-name { font-weight: 700; font-size: 13px; color: #12141a; }
.social-action {
  font-size: 12px;
  color: oklch(0.5 0.19 255);
  font-weight: 600;
  margin-top: 2px;
}

/* ARTICLE CARDS */
.article-cards {
  padding: 0 40px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.article-card {
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  display: block;
}
.article-card:hover { border-color: oklch(0.5 0.19 255 / 0.4); }

.tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.tag-primary { color: oklch(0.5 0.19 255); background: #eef2ff; }
.tag-secondary { color: #6b7280; background: #f1f3f6; }

.article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.4;
  color: #12141a;
}

/* CATEGORY PAGE HERO */
.page-hero {
  padding: 32px 40px 4px;
}
.breadcrumb {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}
.breadcrumb:hover { color: oklch(0.4 0.2 255); }
.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
}
.page-title-row .dot { width: 14px; height: 14px; }
.page-title-row h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: #12141a;
}
.page-desc {
  font-size: 15px;
  color: #5b616e;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 8px;
}

.category-heading-link { text-decoration: none; }
.category-heading-link:hover .category-heading h3 { color: oklch(0.5 0.19 255); }

/* CATEGORIES */
.categories {
  padding: 8px 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.categories--page {
  padding-top: 24px;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.category-heading .dot { width: 11px; height: 11px; }
.category-heading h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #12141a;
}

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

.list-item {
  display: flex;
  gap: 14px;
  text-decoration: none;
  align-items: flex-start;
}
.list-item:hover { opacity: 0.85; }

.list-item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: #1c1f26;
  padding-top: 4px;
}

.category-grid--tile { gap: 18px; }
.tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.16) 0 12px, transparent 12px 24px);
}
.tile:hover { opacity: 0.9; }
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
}
.tile-title {
  position: relative;
  padding: 16px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
}

.category-grid--chip { gap: 16px; }
.chip {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 150px;
  background: #12141a;
  text-decoration: none;
  display: block;
  opacity: 0.9;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.14) 0 12px, transparent 12px 24px);
}
.chip:hover { opacity: 0.8; }
.chip-title {
  position: absolute;
  top: 14px;
  left: 16px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
}
.chip-plus {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #12141a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* FEATURES */
.features {
  padding: 80px 40px;
  background: #f7f8fa;
}
.features-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.eyebrow {
  display: inline-block;
  background: #eef2ff;
  color: oklch(0.45 0.19 255);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.features-intro h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #12141a;
}
.features-intro p {
  font-size: 16px;
  color: #5b616e;
  line-height: 1.6;
  margin-top: 14px;
}

.explore-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto 32px;
}
.explore-chip {
  border: 1.5px solid #eef0f3;
  background: #fff;
  color: #3a3f4a;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.explore-chip:hover { border-color: var(--chip-color); color: var(--chip-color); }
.explore-chip.is-active {
  background: var(--chip-color);
  border-color: var(--chip-color);
  color: #fff;
}

.explore-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.explore-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease;
}
.explore-card:hover { border-color: oklch(0.5 0.19 255 / 0.4); }
.explore-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #12141a;
  margin-bottom: 10px;
}
.explore-card-link {
  font-size: 13px;
  font-weight: 600;
  color: oklch(0.5 0.19 255);
}

/* CTA */
.cta {
  padding: 72px 40px;
  background: oklch(0.5 0.19 255);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 16px, transparent 16px 32px);
}
.cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 30px;
  white-space: nowrap;
}
.cta-inner p {
  font-size: 15.5px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 30px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.newsletter-form button {
  background: #12141a;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-success {
  margin-top: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
}

/* FOOTER */
.site-footer {
  padding: 28px 40px;
  text-align: center;
  font-size: 12.5px;
  color: #9aa0ab;
  white-space: nowrap;
  overflow-x: auto;
}

/* POST TEMPLATE */
.post-hero {
  padding: 32px 40px 0;
}
.post-tag-row {
  display: flex;
  gap: 8px;
  margin: 20px 0 16px;
}
.post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #12141a;
  max-width: 780px;
  margin: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: #6b7280;
  margin-top: 16px;
}
.post-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c7cbd1;
  flex: none;
}

.post-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

.post-cover {
  margin-top: 28px;
  border-radius: 18px;
  min-height: 340px;
  background-image:
    linear-gradient(160deg, oklch(0.55 0.15 255) 0%, #12141a 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.08) 0 14px, transparent 14px 28px);
}

.post-body {
  max-width: 680px;
  margin: 36px auto 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: #2b2f38;
}
.post-body p { margin: 0 0 20px; }
.post-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #12141a;
  margin: 36px 0 14px;
}
.post-body blockquote {
  border-left: 3px solid oklch(0.5 0.19 255);
  padding-left: 18px;
  margin: 28px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  color: #12141a;
}

.post-tags-footer {
  max-width: 680px;
  margin: 8px auto 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-related {
  padding: 56px 40px 8px;
}

@media (max-width: 640px) {
  .site-header, .hero, .article-cards, .categories, .features, .cta {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cta-inner h2 {
    font-size: 16px;
  }
  .post-hero, .post-related { padding-left: 20px; padding-right: 20px; }
  .post-container { padding: 0 20px; }
  .post-title { font-size: 28px; }
}
