/*
Theme Name: AI Spark V2
Theme URI: https://v2.ai-spark.de/
Author: Atlas
Description: AI Spark V2 custom theme for public site, insights and future user area.
Version: 0.2.1
Text Domain: aispark-v2
*/

:root {
  --white: #ffffff;
  --off: #f5f5f7;
  --off-2: #ececf1;
  --ink: #111111;
  --ink-soft: #333333;
  --ink-muted: #6b6b78;
  --line: rgba(17, 17, 17, 0.08);
  --panel: #16161b;
  --magenta: #d946ef;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --sky: #38bdf8;
  --teal: #14b8a6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --f-serif: 'Source Serif 4', Georgia, serif;
  --f-sans: 'DM Sans', system-ui, sans-serif;
  --max: 1120px;
  --content: 720px;
}
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.content-container { max-width: var(--content); margin: 0 auto; }
.section-white { background: var(--white); }
.section-off { background: var(--off); }
.section-space { padding: 64px 0; }
.site-header { position: sticky; top: 0; z-index: 100; }
.nav {
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: #fff;
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-logo .spark,
.site-footer-brand-name .spark {
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-spark { width: 40px; height: 40px; flex: 0 0 40px; }
.nav-tagline {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-left: 12px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  padding: 0;
  border-bottom: 0;
}
.nav-links a:hover { color: rgba(255,255,255,0.9); }
.nav-links a.is-active { color: #fff; }
.nav-rss {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.35) !important;
}
.nav-rss:hover { color: var(--violet) !important; }
.hero { padding: 80px 0 64px; }
.hero-compact { padding: 56px 0 36px; }
.hero-home {
  color: #fff;
  background: radial-gradient(circle at top left, rgba(139,92,246,0.28), transparent 35%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.18), transparent 30%),
    linear-gradient(180deg, #111116 0%, #191924 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: 36px; align-items: end; }
.kicker, .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}
.hero-home .kicker, .hero-home .eyebrow { color: #c4b5fd; }
.page-title, .section-title {
  margin: 0 0 18px;
  font-family: var(--f-serif);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.page-title { font-size: clamp(36px, 5vw, 62px); }
.section-title { font-size: clamp(28px, 4vw, 40px); }
.page-copy { color: var(--ink-soft); max-width: 720px; }
.hero-home .page-copy { color: rgba(255,255,255,0.78); }
.lead-copy { font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  box-shadow: 0 10px 30px rgba(139,92,246,0.25);
}
.button-secondary {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.text-link { color: var(--violet); font-weight: 700; }
.card-grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 34px rgba(17,17,17,0.04);
}
.card-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}
.card h2, .card h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.2; }
.card p { color: var(--ink-muted); }
.card-dark p { color: rgba(255,255,255,0.75); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.signal-list { margin: 0; padding-left: 18px; color: rgba(255,255,255,0.82); }
.signal-list li + li { margin-top: 10px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.hero-metric {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-metric strong {
  font-size: 28px;
  line-height: 1;
  color: #fff;
}
.hero-metric span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.insight-list { display: grid; gap: 18px; }
.insight-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
.insight-row h2 { margin: 0 0 10px; font-size: 28px; }
.insight-row-meta, .meta-strip {
  font-size: 14px;
  color: var(--ink-muted);
}
.insight-source {
  margin-top: 8px;
  line-height: 1.5;
}
.meta-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.topic-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.resource-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.resource-card-meta .eyebrow {
  margin-bottom: 0;
}
.resource-access-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}
.newsletter-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.newsletter-band .section-title {
  margin-bottom: 12px;
}
.newsletter-band .page-copy {
  margin-bottom: 0;
  max-width: 720px;
}
.newsletter-band-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
}
.newsletter-page {
  background: var(--white);
}
.newsletter-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.newsletter-wrap .page-copy {
  max-width: 560px;
}
.signup-shell {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}
.signup-content-section {
  background: var(--white);
  padding: 18px 0;
  flex: 1;
}
.signup-content-inner {
  max-width: 760px;
  margin: 0 auto;
}
.signup-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
}
.signup-title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  max-width: 760px;
}
.signup-copy {
  max-width: 520px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}
.signup-copy p { margin: 0; }
#mlb2-39895409.ml-form-embedContainer {
  box-sizing: border-box;
  display: block;
  margin: 0;
  position: static;
  width: 100% !important;
  max-width: 840px;
}
#mlb2-39895409.ml-form-embedContainer .ml-form-align-center,
#mlb2-39895409.ml-form-embedContainer .ml-form-align-default {
  text-align: left !important;
  display: block !important;
}
#mlb2-39895409.ml-form-embedContainer .ml-form-embedWrapper,
#mlb2-39895409.ml-form-embedContainer .ml-form-embedWrapper.embedPopup,
#mlb2-39895409.ml-form-embedContainer .ml-form-embedWrapper.embedDefault,
#mlb2-39895409.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#mlb2-39895409 .ml-form-embedHeader,
#mlb2-39895409 .ml-form-embedContent {
  display: none !important;
}
#mlb2-39895409 .ml-form-embedBody,
#mlb2-39895409 .ml-form-successBody {
  padding: 0 !important;
}
#mlb2-39895409 .ml-form-formContent,
#mlb2-39895409 .ml-form-checkboxRow,
#mlb2-39895409 .ml-form-embedSubmit {
  margin-bottom: 20px !important;
}
#mlb2-39895409 .ml-form-fieldRow {
  margin-bottom: 18px !important;
}
#mlb2-39895409 .ml-form-fieldRow.ml-last-item,
#mlb2-39895409 .ml-form-checkboxRow,
#mlb2-39895409 .ml-form-embedSubmit {
  width: 100% !important;
  max-width: 520px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#mlb2-39895409 input.form-control,
#mlb2-39895409 .ml-form-fieldRow input {
  border-radius: 10px !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  padding: 14px 16px !important;
  font-family: var(--f-sans) !important;
  font-size: 16px !important;
  color: var(--ink-soft) !important;
}
#mlb2-39895409 .ml-form-checkboxRow label,
#mlb2-39895409 .ml-form-checkboxRow .label-description,
#mlb2-39895409 .ml-form-checkboxRow label p {
  font-family: var(--f-sans) !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  color: var(--ink-soft) !important;
}
#mlb2-39895409 .ml-form-embedSubmit {
  text-align: left !important;
}
#mlb2-39895409 .ml-form-embedSubmit button,
#mlb2-39895409 .ml-form-embedBody .ml-form-embedSubmit button {
  background: linear-gradient(135deg, var(--violet), var(--magenta)) !important;
  border-radius: 10px !important;
  border: 0 !important;
  font-family: var(--f-sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  min-width: 220px !important;
}
#mlb2-39895409 .ml-form-successBody .ml-form-successContent h4 {
  font-family: var(--f-serif) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin-bottom: 8px !important;
}
#mlb2-39895409 .ml-form-successBody .ml-form-successContent p {
  font-family: var(--f-sans) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: var(--ink-soft) !important;
}
.confirmation-card {
  max-width: 760px;
  margin: 0 auto;
}
.insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
.insight-sidebar {
  position: sticky;
  top: 108px;
}
.insight-sidebar h2,
.cta-card h2 {
  margin-top: 0;
}
.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.cta-card {
  text-align: left;
}
.gated-preview-card {
  border: 1px dashed rgba(139, 92, 246, 0.3);
  background: rgba(99, 102, 241, 0.04);
}
.access-note {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}
.resource-gate-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.resource-gate-form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.resource-gate-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--off);
  font: inherit;
  color: var(--ink);
}
.grant-status {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
}
.grant-status.is-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
}
.grant-status.is-error {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.22);
}
.grant-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.grant-result code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.06);
  font-size: 12px;
  word-break: break-all;
}
.unlocked-resource-card {
  margin-bottom: 24px;
}
.library-card {
  height: 100%;
}
.library-expiry {
  font-size: 13px;
  color: var(--ink-muted);
}
.library-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.home-resource-groups {
  margin-bottom: 22px;
}
.resource-flow-strip {
  margin-bottom: 28px;
}
.library-group-card h3 {
  margin-bottom: 10px;
}
.library-content-zone {
  padding-bottom: 0;
}
.library-content-card {
  max-width: 100%;
}
.library-module-card {
  overflow: hidden;
}
.module-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.module-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.download-module-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.handout-module-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}
.article-module-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}
.compact-actions {
  margin-top: 14px;
}
.prose { font-size: 19px; }
.prose h2, .prose h3, .prose h4 {
  margin: 1.8em 0 0.6em;
  font-family: var(--f-sans);
  line-height: 1.2;
}
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 0.14em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.pagination-wrap { margin-top: 28px; }
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.64);
  padding: 18px 48px;
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-footer-brand { display: flex; align-items: center; gap: 12px; }
.site-footer-brand svg { width: 46px; height: 46px; flex: 0 0 46px; }
.site-footer-brand-name {
  color: #fff;
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 700;
}
.site-footer-copy { font-size: 13px; color: rgba(255,255,255,0.42); }
.site-footer-left { font-size: 12px; color: rgba(255,255,255,0.25); }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer-links a { font-size: 12px; color: rgba(255,255,255,0.35); }
.site-footer-links a:hover { color: rgba(255,255,255,0.7); }
.index-hero {
  background: var(--off);
  padding: 64px 0 48px;
}
.index-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.index-hero-spark {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  opacity: 0.7;
}
.index-hero-text { max-width: 700px; }
.sec-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 16px;
}
.index-hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 700px;
}
.index-hero p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.7;
}
.tag-filter-section {
  background: var(--white);
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.tag-filter-inner { max-width: var(--max); margin: 0 auto; }
.tag-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-btn {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  background: var(--off);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--ink-soft);
  transition: all 0.2s;
}
.tag-btn:hover { border-color: var(--violet); color: var(--violet); }
.tag-btn.active {
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  color: #fff;
  border-color: transparent;
}
.insights-list {
  padding: 40px 0 64px;
  background: var(--white);
}
.insights-list-inner { max-width: 1040px; margin: 0 auto; }
.insight-card {
  display: block;
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: opacity 0.3s;
}
.insight-card:last-child { border-bottom: none; }
.ic-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.ic-body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
}
.ic-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.ic-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
.ic-date { font-size: 13px; color: var(--ink-muted); }
.ic-title {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 760px;
  transition: color 0.2s;
}
.insight-card:hover .ic-title { color: var(--ink); }
.ic-excerpt {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 700px;
  margin-bottom: 12px;
}
.ic-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.ic-tags .topic-pill {
  font-size: 10px;
  font-weight: 400;
  padding: 0 8px !important;
  height: 22px;
  min-height: 22px;
  border-radius: 999px;
  background: #f6f6f7;
  color: #8a8d95;
  border: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.ic-tags .topic-pill:hover {
  color: #666a73;
  background: #efeff2;
}
.ic-arrow {
  flex: 0 0 auto;
  font-size: 28px;
  color: #8a8d95;
  line-height: 1;
  padding-top: 2px;
  transition: color 0.2s, transform 0.2s;
}
.insight-card:hover .ic-arrow { color: #666a73; transform: translateX(3px); }
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-muted);
  font-size: 16px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 0 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 16px;
}
.pagination .page-numbers {
  font-size: 14px;
  font-weight: 500;
  color: var(--violet);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(139,92,246,0.25);
  transition: all 0.2s;
}
.pagination .page-numbers:hover { background: var(--violet); color: #fff; }
.pagination .current { background: var(--violet); color: #fff; border-color: var(--violet); }
.insight-article-hero { background: var(--off); }
.insight-excerpt {
  font-family: var(--f-serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 640px;
}
.insight-article-content-section {
  padding-top: 48px;
  padding-bottom: 64px;
}
.insight-article-footer-section {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
@media (max-width: 980px) {
  .hero-grid, .grid-3, .insight-row, .newsletter-band, .insight-layout, .library-groups, .hero-metrics { grid-template-columns: 1fr; }
  .module-head { flex-direction: column; }
  .newsletter-band {
    display: grid;
    align-items: start;
  }
  .insight-sidebar {
    position: static;
  }
  .index-hero-spark { position: static; transform: none; width: 120px; height: 120px; margin: 0 auto 24px; }
  .ic-layout { display: block; }
  .ic-arrow { display: none; }
  .ic-body, .ic-title, .ic-excerpt { max-width: 100%; width: 100%; }
}
@media (max-width: 768px) {
  .container, .nav, .site-footer { padding-left: 20px; padding-right: 20px; }
  .signup-content-section { padding: 18px 0 16px; }
  .nav { height: auto; min-height: 64px; align-items: center; flex-direction: row; padding-top: 12px; padding-bottom: 12px; }
  .nav-tagline { display: none; }
  .nav-links a:not(.is-active):not(.nav-rss) { display: none; }
  .page-title { font-size: clamp(34px, 10vw, 48px); }
  .section-space { padding: 48px 0; }
  .site-footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
