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

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: #fff;
  color: #212b36;
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

/* ── Gradient utilities ── */
.gradient-text {
  background: linear-gradient(96deg, #32A5FB 109%, #391E95 101%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 var(--page-pad, clamp(16px, 6vw, 180px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #212b36;
  letter-spacing: -0.3px;
}

.logo-slash {
  color: #32A5FB;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0 auto;
}

.nav-link {
  font-size: 20px;
  font-weight: 500;
  color: #454f5b;
  letter-spacing: -0.2px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #212b36;
}

.nav-link--active {
  font-size: 20px;
  font-weight: 700;
  color: #32A5FB;
  background: linear-gradient(96deg, #32A5FB 0%, #391E95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-upload {
  flex-shrink: 0;
  height: 40px;
  padding: 0 20px;
  background: linear-gradient(175deg, #32A5FB 78%, #391E95 133%);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-upload:hover { opacity: 0.9; }

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  height: 479px;
  padding: 0 clamp(16px, 6vw, 40px) 80px;
  text-align: center;
  background: linear-gradient(to bottom, #b2e7fe 0%, #ffffff 100%);
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.3;
  color: #212b36;
  max-width: 1275px;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  color: #454f5b;
  max-width: 955px;
}

/* ── Featured Post ── */
.featured {
  background: #f9fafb;
  padding: 80px 0;
}

.featured-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(16px, 6vw, 180px);
}

.featured-image-wrap {
  position: relative;
  flex-shrink: 0;
  width: min(768px, 100%);
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  font-size: clamp(14px, 1.5vw, 24px);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
  min-width: 0;
}

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

.featured-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: #212b36;
}

.featured-desc {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #454f5b;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  box-shadow:
    4px 6px 8px rgba(0,0,0,0.05),
    15px 26px 15px rgba(0,0,0,0.04),
    34px 58px 20px rgba(0,0,0,0.03),
    60px 104px 24px rgba(0,0,0,0.01),
    93px 162px 26px rgba(0,0,0,0);
}

.badge--lg {
  padding: 12px 16px;
  border-radius: 16px;
}

.badge-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, #0578CE 0%, #391E95 100%);
  flex-shrink: 0;
}

.badge-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #212b36;
  white-space: nowrap;
}

.badge--lg .badge-label {
  font-size: 16px;
}

/* ── Author ── */
.author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #32A5FB 0%, #391E95 100%);
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar--sm {
  width: 48px;
  height: 48px;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #212b36;
}

.author-meta {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #454f5b;
}

/* ── Blog Grid ── */
.blog-section {
  padding: 80px 0 100px;
  background: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(16px, 6vw, 180px);
  width: 100%;
  box-sizing: border-box;
}

/* ── Card ── */
.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #f9fafb;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  min-width: 0;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 274px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.card-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #212b36;
}

.card-desc {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #454f5b;
}

/* ── Footer ── */
.footer-wrap {
  padding: 0 40px 40px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* Glow blobs behind footer */
.footer-wrap::before,
.footer-wrap::after {
  content: '';
  position: absolute;
  width: 670px;
  height: 670px;
  border-radius: 50%;
  filter: blur(200px);
  pointer-events: none;
  z-index: 0;
}

.footer-wrap::before {
  background: rgba(50, 165, 251, 0.25);
  bottom: 0;
  left: -114px;
}

.footer-wrap::after {
  background: rgba(57, 30, 149, 0.2);
  bottom: 0;
  right: 0;
}

.footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 92px;
  background: #000;
  border-radius: 32px;
  padding: 64px 108px 64px 108px;
  color: #fff;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.footer-logo-slash {
  color: #32A5FB;
}

.footer-tagline {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  letter-spacing: -0.32px;
  max-width: 346px;
  text-transform: capitalize;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-nav-link {
  font-size: 16px;
  font-weight: 400;
  line-height: 40px;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-nav-link:hover { opacity: 1; }

.footer-divider {
  position: relative;
  z-index: 1;
  margin: 0 40px;
  height: 1px;
  background: linear-gradient(30deg, #32A5FB 0%, #391E95 200%);
  opacity: 0.5;
  border-radius: 40px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 148px;
  color: #fff;
}

.footer-copy {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  line-height: 1.65;
}

.footer-legal {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-legal-link {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  color: #212b36;
  line-height: 1.65;
  transition: opacity 0.2s;
}

.footer-legal-link:hover { opacity: 0.7; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .hero-title { font-size: clamp(36px, 6vw, 56px); }
  .hero-subtitle { font-size: clamp(16px, 2vw, 20px); }

  .featured-inner { flex-direction: column; gap: 40px; }
  .featured-image-wrap { width: 100%; max-width: 700px; }
  .featured-caption { white-space: normal; }
  .featured-title { font-size: clamp(24px, 3vw, 28px); }

  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 48px 16px 56px;
    gap: 16px;
  }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .hero-subtitle { font-size: 16px; }

  .featured { padding: 40px 0; }
  .featured-content { gap: 24px; }
  .featured-title { font-size: 22px; }
  .featured-desc { font-size: 15px; }
  .featured-caption {
    font-size: 14px;
    white-space: normal;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }

  .blog-section { padding: 40px 0 48px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .featured-image-wrap { border-radius: 12px; }
  .card { border-radius: 12px; }
}
