/* =============================================
   RANKING ATLAS BRANDING — STYLES
   ============================================= */

:root {
  --purple:       #6B5BF4;
  --purple-dark:  #5647d6;
  --purple-light: #9D91F8;
  --purple-bg:    #F3F1FE;
  --dark:         #0D0B1E;
  --dark-2:       #1A1730;
  --off-white:    #F8F7FC;
  --white:        #FFFFFF;
  --border:       #E4E2F0;
  --text-dark:    #0D0B1E;
  --text-body:    #3D3A52;
  --text-muted:   #7B7899;
  --radius:       10px;
  --radius-lg:    16px;
  --section-gap:  96px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }

p { line-height: 1.7; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.18s;
  cursor: pointer;
  border: none;
  font-size: 0.9375rem;
  padding: 12px 24px;
  text-decoration: none;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(107,91,244,0.3); }
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple-bg); }
.btn-sm { font-size: 0.875rem; padding: 9px 18px; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 16px; height: 16px; stroke: white; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text-dark); }
.nav-links a[aria-current="page"] { color: var(--purple); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: 0.2s; }

/* =============================================
   SECTION LABELS
   ============================================= */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 88px 0 80px;
  background: var(--white);
}
.hero-inner {
  max-width: 740px;
}
.hero h1 {
  margin-bottom: 22px;
  line-height: 1.1;
}
.hero h1 .accent { color: var(--purple); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* =============================================
   COVER CARDS
   ============================================= */
.covers {
  padding: var(--section-gap) 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.covers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cover-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.cover-card:hover { box-shadow: 0 4px 24px rgba(107,91,244,0.1); transform: translateY(-2px); }
.cover-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.cover-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.cover-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   DARK SECTION
   ============================================= */
.dark-section {
  padding: var(--section-gap) 0;
  background: var(--dark);
}
.dark-section .section-label { color: var(--purple-light); }
.dark-section h2 { color: var(--white); }
.dark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.dark-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.dark-stat {
  font-size: 2rem;
  font-weight: 900;
  color: var(--purple-light);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.dark-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.dark-card h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* =============================================
   POST CARDS (HOMEPAGE GRID)
   ============================================= */
.posts-section {
  padding: var(--section-gap) 0;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: 0 4px 24px rgba(107,91,244,0.1);
  transform: translateY(-2px);
}
.post-card-img {
  height: 56px;
  background: var(--purple-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}
.post-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--purple); }
.post-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.post-meta .divider { color: var(--border); }
.read-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple);
}
.read-link:hover { text-decoration: underline; }

/* =============================================
   LINK HUB (table-grid style — no icons)
   ============================================= */
.link-hub {
  padding: var(--section-gap) 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.link-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 36px;
}
.link-hub-item {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: var(--white);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-left-color 0.15s;
}
.link-hub-item:hover {
  background: var(--purple-bg);
  border-left-color: var(--purple);
}
.link-hub-item-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: block;
}
.link-hub-item-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  padding: var(--section-gap) 0;
  background: var(--dark);
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.6); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .accent { color: var(--purple-light); }
.cta-band .btn-primary { font-size: 1rem; padding: 15px 32px; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 280px; }
.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* =============================================
   BLOG PAGE
   ============================================= */
.blog-hero {
  padding: 64px 0 56px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.blog-list { padding: var(--section-gap) 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  transition: box-shadow 0.18s, transform 0.18s;
}
.blog-card:hover { box-shadow: 0 4px 24px rgba(107,91,244,0.1); transform: translateY(-2px); }
.blog-card-img {
  width: 72px;
  flex-shrink: 0;
  background: var(--purple-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.blog-card-body { padding: 22px 24px; flex: 1; }
.blog-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.blog-card h2 a { color: inherit; }
.blog-card h2 a:hover { color: var(--purple); }
.blog-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.blog-card .read-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple);
}
.blog-card .read-link:hover { text-decoration: underline; }

/* =============================================
   ARTICLE / POST PAGES
   ============================================= */
.post-header {
  padding: 64px 0 56px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.post-header .post-tag { display: block; margin-bottom: 14px; }
.post-header h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.post-header .post-meta { margin-top: 20px; }

.post-body { padding: 64px 0 96px; }
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-content p {
  margin-bottom: 22px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}
.post-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 52px 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 36px 0 12px;
  line-height: 1.3;
}
.post-content ul,
.post-content ol {
  margin-bottom: 24px;
  padding-left: 22px;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
}
.post-content strong { color: var(--text-dark); font-weight: 600; }
.post-content a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(107,91,244,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.post-content a:hover { text-decoration-color: var(--purple); }
.post-content blockquote {
  border-left: 4px solid var(--purple);
  padding: 16px 24px;
  background: var(--purple-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-dark);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .covers-grid { grid-template-columns: repeat(2, 1fr); }
  .dark-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .link-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero { padding: 56px 0 48px; }
  .covers-grid { grid-template-columns: 1fr; }
  .dark-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .link-hub-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  :root { --section-gap: 64px; }
}
