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

/* =============================================
   Social Explorer Hub — "Pulse" Design System
   Concept: Bold Urban Explorer / City Pulse
   Palette:
     --coral:  #FF6B6B  (primary – vivid coral)
     --teal:   #4ECDC4  (secondary – electric teal)
     --yellow: #FFE66D  (accent – bright yellow)
     --bg:     #F7F9F9  (near-white background)
     --dark:   #2D3436  (header / text)
   Key differentiators vs ALL other domains:
     - Space Grotesk (display) + Inter (body) — used nowhere else
     - Dark sticky header with animated teal underline nav
     - Coral hero with angled image frame + dot-grid bg
     - Top-color-band feature cards (not icons only)
     - Article cards with bold coral number badge
     - Page-scroll progress bar in coral
     - Footer: dark with 4px coral top-line, teal accents
     - Asymmetric hero split: text 55% / image 45%
     - Floating blob shapes in hero
     - Skewed "band" section separator
============================================= */

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

:root {
  --coral:       #FF6B6B;
  --coral-dk:    #e05555;
  --coral-lt:    #fff0f0;
  --teal:        #4ECDC4;
  --teal-dk:     #3ab5ac;
  --teal-lt:     #e8faf9;
  --yellow:      #FFE66D;
  --yellow-dk:   #f0d340;
  --yellow-lt:   #fffbe5;
  --bg:          #F7F9F9;
  --bg-white:    #ffffff;
  --dark:        #2D3436;
  --dark-2:      #1a1f20;
  --text:        #2D3436;
  --text-soft:   #5a6369;
  --text-muted:  #8c979d;
  --border:      #dde4e6;

  --max-w:       1200px;
  --text-max:    780px;
  --header-h:    50px;
  --radius:      12px;
  --radius-sm:   6px;
  --radius-lg:   24px;
  --radius-pill: 100px;

  --shadow-sm:   0 2px 8px rgba(45,52,54,0.07);
  --shadow:      0 4px 20px rgba(45,52,54,0.10);
  --shadow-lg:   0 12px 48px rgba(45,52,54,0.14);
  --shadow-coral: 0 8px 32px rgba(255,107,107,0.25);

  --t:           0.24s ease;
  --t-slow:      0.4s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

/* =============================================
   SCROLL PROGRESS BAR
============================================= */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* =============================================
   WRAPPER
============================================= */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.text-content {
  max-width: var(--text-max);
  margin: 0 auto;
}

/* =============================================
   HEADER
============================================= */
.site-header {
  position: sticky;
  top: 0;
  background: var(--dark);
  height: var(--header-h);
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.site-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

/* NAV */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.78);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--t);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
  border-radius: 2px;
}

.nav-link:hover { color: #ffffff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--teal); }
.nav-link.active::after { transform: scaleX(1); }

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--t);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU OVERLAY */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark-2);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav .nav-link {
  font-size: 28px;
  letter-spacing: 1px;
  padding: 16px 32px;
  color: rgba(255,255,255,0.8);
}

.mobile-nav .nav-link::after {
  bottom: 12px;
  left: 32px;
  right: 32px;
  height: 3px;
}

.mobile-nav .nav-link:hover { color: #fff; }

/* =============================================
   HERO
============================================= */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

/* Dot-grid background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(78,205,196,0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Coral blob */
.hero::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.18) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--dark);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dark);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.6; }
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
  position: relative;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--coral);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-coral);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.hero-cta:hover {
  background: var(--coral-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,107,107,0.38);
}

.hero-cta svg {
  transition: transform var(--t);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Hero image container with tilt */
.hero-img-wrap {
  position: relative;
  padding: 16px;
}

.hero-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-slow);
}

.hero-img-frame:hover {
  transform: rotate(0deg);
}

.hero-img-frame img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Decorative teal ring behind image */
.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px dashed rgba(78,205,196,0.4);
  border-radius: var(--radius-lg);
  transform: rotate(-2deg);
  pointer-events: none;
}

/* =============================================
   SECTION LABELS
============================================= */
.section-label {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}

/* =============================================
   FEATURE BLOCKS (adding-blocks)
============================================= */
.features-section {
  padding: 72px 0;
  background: var(--bg-white);
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--t), box-shadow var(--t);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card-band {
  width: 100%;
  height: 6px;
}

.feature-card:nth-child(1) .feature-card-band { background: var(--coral); }
.feature-card:nth-child(2) .feature-card-band { background: var(--teal); }
.feature-card:nth-child(3) .feature-card-band { background: var(--yellow); }
.feature-card:nth-child(4) .feature-card-band { background: var(--coral); }

.feature-card-body {
  padding: 28px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.feature-card-body img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.feature-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

/* =============================================
   ARTICLES PREVIEW (index page)
============================================= */
.articles-preview {
  padding: 72px 0;
  background: var(--bg);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}

.section-heading-row h2 {
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--dark);
}

.see-all-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--coral);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap var(--t);
}

.see-all-link:hover { gap: 10px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Article Card (image + title + button) ── */
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.article-card:hover .article-card-img img {
  transform: scale(1.04);
}

.article-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.article-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  flex: 1;
}

.article-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--coral);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--t);
  margin-top: auto;
}

.article-card-btn:hover,
.article-card:hover .article-card-btn {
  background: var(--coral-dk);
}

.article-card-btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: border-color var(--t), background var(--t);
}

.article-card:hover .article-card-btn-icon {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
}

/* =============================================
   HERO SECTION INTRO (text + image block)
============================================= */
.intro-block {
  padding: 56px 0;
}

.intro-inner {
  max-width: var(--text-max);
  margin: 0 auto;
}

.intro-inner img {
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  width: 100%;
}

.intro-inner p {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* =============================================
   ARTICLES PAGE
============================================= */
.articles-page {
  padding: 64px 0 80px;
}

.articles-page-header {
  text-align: center;
  padding-bottom: 48px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
}

.articles-page-header h1 {
  font-size: clamp(28px, 4vw, 48px);
  margin-top: 8px;
}

/* Re-use the same .articles-grid + .article-card styles from above */

/* =============================================
   ARTICLE SINGLE PAGE
============================================= */
.article-page {
  padding: 64px 0 80px;
}

.article-page-header {
  margin-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  padding: 8px 0;
  transition: color var(--t), gap var(--t);
}

.back-link:hover { color: var(--coral); gap: 12px; }

.article-page h1 {
  font-size: clamp(26px, 3.5vw, 42px);
  color: var(--dark);
  line-height: 1.2;
  margin-top: 20px;
}

.article-divider {
  width: 60px;
  height: 4px;
  background: var(--coral);
  border-radius: 2px;
  margin: 24px 0 36px;
}

/* Article body content */
.article-body img {
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: var(--shadow);
  width: 100%;
}

.article-body h2 {
  font-size: 22px;
  color: var(--dark);
  margin: 40px 0 14px;
  padding-left: 16px;
  border-left: 4px solid var(--teal);
}

.article-body p {
  font-size: 16.5px;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 20px;
}

/* =============================================
   ABOUT PAGE
============================================= */
.about-hero {
  background: var(--dark);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,230,109,0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-hero h1 {
  font-size: clamp(30px, 4.5vw, 56px);
  color: #ffffff;
  line-height: 1.15;
  margin-top: 12px;
}

.about-hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 20px auto 0;
}

.about-content {
  padding: 64px 0 80px;
}

.about-content .text-content p {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 22px;
}

/* About stats bar */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
  padding: 40px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* About values */
.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 5px solid var(--teal);
  transition: box-shadow var(--t), transform var(--t);
}

.value-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.value-item:nth-child(even) { border-left-color: var(--coral); }
.value-item:nth-child(3) { border-left-color: var(--yellow); }

.value-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.value-text {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* =============================================
   SKEWED BAND SEPARATOR
============================================= */
.band-separator {
  height: 48px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.band-separator::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background: var(--bg);
  transform: skewY(-1.5deg);
  transform-origin: bottom left;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--dark-2);
  padding: 48px 0 32px;
  border-top: 4px solid var(--coral);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo img { height: 34px; width: auto; }

.footer-site-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.footer-nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}

.footer-nav-link:hover {
  color: var(--teal);
  background: rgba(78,205,196,0.08);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 32px 0 20px;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
}

/* =============================================
   PAGE-LEVEL HERO (for articles / about)
============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #3d4547 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 32px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  color: #ffffff;
  margin-top: 10px;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {


  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 56px 0 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { max-width: 100%; }
  .hero-cta { margin: 0 auto; }
  .hero-img-wrap { max-width: 480px; margin: 0 auto; }
  .hero-img-frame { transform: rotate(0deg); }
  .hero-img-wrap::before { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }

  .about-stats { grid-template-columns: 1fr; gap: 16px; }
  .about-values { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .footer-logo { justify-content: center; }
  .footer-copy { text-align: center; }

  .section-heading-row { flex-direction: column; align-items: flex-start; }

  .articles-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .wrapper { padding: 0 16px; }
}
