/* Age of Humanoids — Main Stylesheet */

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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0b12;
  --bg-card:   #111118;
  --bg-card-2: #16161f;
  --border:    #1e1e2e;
  --accent:    #00c8ff;
  --accent-dim:#0090b8;
  --accent-glow: rgba(0,200,255,0.15);
  --text:      #e2e8f0;
  --text-2:    #94a3b8;
  --text-3:    #64748b;
  --max-w:     1200px;
  --article-w: 720px;
  --radius:    10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,18,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-text span {
  color: var(--accent);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--bg-card-2);
}

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: #fff !important;
  color: #000 !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,200,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: var(--accent-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #fff;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,200,255,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTION TITLES ===== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--accent);
}

.section-link {
  font-size: 0.85rem;
  color: var(--text-3);
}

.section-link:hover { color: var(--accent); }

/* ===== FEATURED ARTICLE ===== */
.featured-section {
  padding: 2rem 0 3rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 40px rgba(0,200,255,0.07);
}

.featured-image {
  background: linear-gradient(135deg, #0d1a2e 0%, #0a0f1e 50%, #111128 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,200,255,0.12) 0%, transparent 65%);
}

.featured-image svg {
  width: 120px;
  height: 120px;
  opacity: 0.4;
  position: relative;
  z-index: 1;
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,200,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.featured-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.featured-content h2 a { color: inherit; }
.featured-content h2 a:hover { color: var(--accent); }

.featured-content p {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.97rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ===== ARTICLE GRID ===== */
.articles-section {
  padding: 1rem 0 4rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-image {
  height: 160px;
  background: linear-gradient(135deg, #0d1a2e 0%, #111128 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,200,255,0.08) 0%, transparent 65%);
}

.card-image svg { width: 56px; height: 56px; opacity: 0.35; position: relative; z-index: 1; }

/* Unique tints per card */
.card-image.tint-blue   { background: linear-gradient(135deg, #091827 0%, #0d1a2e 100%); }
.card-image.tint-purple { background: linear-gradient(135deg, #130d20 0%, #1a1030 100%); }
.card-image.tint-teal   { background: linear-gradient(135deg, #091c1c 0%, #0d2020 100%); }
.card-image.tint-navy   { background: linear-gradient(135deg, #080d1e 0%, #0c1228 100%); }
.card-image.tint-slate  { background: linear-gradient(135deg, #0e101a 0%, #141622 100%); }

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .tag { margin-bottom: 0.6rem; }

.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--accent); }

.card-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.card-body .article-meta {
  font-size: 0.75rem;
  margin-top: auto;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul li a {
  color: var(--text-2);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== ARTICLE PAGE ===== */
.article-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
  max-width: var(--article-w);
}

.article-hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: var(--article-w);
  margin-bottom: 1.5rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.byline-text {
  font-size: 0.85rem;
  color: var(--text-2);
}

.byline-text strong {
  color: var(--text);
  display: block;
  font-weight: 600;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 3rem 0 4rem;
  align-items: start;
}

/* Article body */
.article-body {
  max-width: var(--article-w);
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}

.article-body h2:first-of-type { margin-top: 0; }

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.article-body strong { color: var(--text); font-weight: 600; }

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-body li { margin-bottom: 0.35rem; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p {
  color: var(--text);
  font-size: 1.05rem;
  font-style: italic;
  margin: 0;
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.callout-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.callout p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.65;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-box h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.sidebar-links li {
  list-style: none;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links a {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.4;
  display: block;
}

.sidebar-links a:hover { color: var(--accent); }

/* Related articles */
.related-section {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding: 4rem 0 3rem;
  max-width: 760px;
}

.about-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.25rem;
}

.about-hero .lead {
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.7;
}

.about-content {
  padding: 2rem 0 5rem;
  max-width: 760px;
}

.about-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 2.75rem 0 0.75rem;
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.about-content strong { color: var(--text); font-weight: 600; }

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.principle-card .icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.principle-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.principle-card p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.6;
  margin: 0;
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-image { min-height: 200px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(11,11,18,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.1rem;
  }
  .menu-toggle { display: block; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
