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

:root {
  --bg: #07071a;
  --bg-card: #0f0f26;
  --bg-elevated: #14142b;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(167,139,250,0.25);
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.60);
  --text-dim: rgba(255,255,255,0.38);
  --accent: #a78bfa;
  --accent-green: #22d3ee;
  --grad-primary: linear-gradient(135deg,#7c3aed 0%,#9333ea 55%,#c026d3 100%);
}

html { scroll-behavior: smooth; }

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

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

/* NAV */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10,10,18,0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .cta {
  padding: 8px 16px;
  border: 1px solid var(--border-bright);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 600;
}
.nav-links .cta:hover { background: rgba(167,139,250,0.08); color: var(--accent); }

/* CONTAINER */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
.hero {
  padding: 96px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -1.8px;
  max-width: 880px;
  margin: 0 auto 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg,#7c3aed 0%,#9333ea 55%,#c026d3 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(167,139,250,.3), 0 8px 28px rgba(124,58,237,.4);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--border-bright); background: var(--bg-elevated); }

/* TOPICS STRIP */
.topics-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px 64px;
}
.topic-chip {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  font-weight: 500;
  transition: all 0.15s;
}
.topic-chip:hover { color: var(--accent); border-color: var(--border-bright); }

/* SECTIONS */
.section {
  padding: 64px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  font-family: 'Sora', Inter, sans-serif;
  letter-spacing: -0.8px;
}
.section-head .see-all {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* FEATURED ARTICLE */
.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 56px;
  transition: border-color 0.2s;
}
.featured:hover { border-color: var(--border-bright); }
.featured-meta {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.featured h3 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.featured p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.featured .byline {
  font-size: 13px;
  color: var(--text-dim);
}
.featured-visual {
  background: linear-gradient(135deg, rgba(167,139,250,0.08), rgba(34,211,238,0.06));
  border-radius: 14px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

/* ARTICLE GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.article-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.article-card .cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.article-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.article-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.article-card .byline {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* PRODUCT CARD */
.product-feature {
  background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(34,211,238,0.04));
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.product-feature .eyebrow { margin-bottom: 16px; }
.product-feature h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.product-feature p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* NEWSLETTER */
.newsletter {
  text-align: center;
  padding: 72px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.newsletter h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.newsletter p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 16px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
.newsletter-form input:focus { outline: none; border-color: var(--border-bright); }

/* FOOTER */
.footer {
  padding: 56px 32px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 16px;
}
.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { font-size: 13px; opacity: 0.75; }

/* ARTICLE PAGE */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.article-header { margin-bottom: 40px; }
.article-header .cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
}
.article-header .byline {
  color: var(--text-muted);
  font-size: 14px;
}
.article-body h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 48px 0 16px;
  letter-spacing: -0.5px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: #d8d8e8;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 22px;
  color: #d8d8e8;
}
.article-body li { margin-bottom: 10px; line-height: 1.7; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 22px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text);
}
.inline-cta {
  margin: 40px 0;
  padding: 28px;
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(34,211,238,0.03));
}
.inline-cta h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.inline-cta p { font-size: 15px; margin-bottom: 16px; color: var(--text-muted); }

/* LIST PAGE */
.list-header {
  padding: 80px 24px 40px;
  text-align: center;
}
.list-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  font-family: 'Sora', Inter, sans-serif;
  letter-spacing: -1.4px;
  margin-bottom: 14px;
}
.list-header p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto;
}
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 40px 0 96px;
}

/* SCROLL-TO-TOP FAB */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(15,15,38,0.9);
  border: 1px solid rgba(167,139,250,0.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, border-color 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(124,58,237,.3);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.65); box-shadow: 0 12px 36px rgba(124,58,237,.5); }

@media (max-width: 820px) {
  .featured, .product-feature { grid-template-columns: 1fr; padding: 32px; }
  .featured-visual { min-height: 160px; }
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; }
  .hero { padding: 64px 20px 48px; }
  .section { padding: 48px 0; }
  .scroll-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
}
