:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1160px;
  --radius: 10px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 .75rem; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(30,27,75,0.08);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem; gap: 1rem;
}
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: transparent; border: 1px solid rgba(30,27,75,0.15);
  border-radius: 8px; padding: .4rem .55rem; cursor: pointer;
  color: var(--color-neutral-dark);
}
.site-nav {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(30,27,75,0.08);
  padding: 1rem 1.25rem; gap: 1rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--color-neutral-dark); font-weight: 500;
  padding: .35rem 0; border-bottom: 1px solid rgba(30,27,75,0.06);
}
.site-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; flex-direction: row; position: static; padding: 0;
    background: transparent; border-bottom: 0; gap: 1.75rem; align-items: center;
  }
  .site-nav a { border-bottom: 0; padding: 0; }
}

/* === Hero (centered) === */
.hero-centered { text-align: center; padding-block: 3.5rem 2rem; }
.hero-centered h1 { max-width: 28ch; margin-inline: auto; font-weight: 600; }
.hero__sub { max-width: 52ch; margin: 1rem auto 1.75rem; font-size: 1.125rem; color: rgba(30,27,75,0.75); }
.hero__cta { margin: 1.5rem 0 2rem; }
.hero__figure { margin: 2rem 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px -30px rgba(30,27,75,0.35); }
.hero__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (min-width: 768px) {
  .hero-centered { padding-block: 6rem 3rem; }
  .hero__figure img { aspect-ratio: 21/9; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-family: var(--font-body); border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; font-size: 1rem; line-height: 1.2;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: #6d28d9; text-decoration: none; }
.btn--accent { background: var(--color-accent); color: var(--color-neutral-dark); }
.btn--accent:hover { background: #0891b2; color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--color-neutral-light); border-color: rgba(250,245,255,0.4); }
.btn--ghost:hover { background: rgba(250,245,255,0.1); text-decoration: none; }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section--narrow { max-width: 780px; margin-inline: auto; text-align: center; }
.section--narrow .container { max-width: 720px; }
.section--alt { background: #fff; }
.section__sub { color: rgba(30,27,75,0.7); font-size: 1.05rem; margin-bottom: 2rem; }
.section__eyebrow { text-align: center; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--color-primary); font-family: var(--font-body); font-weight: 600; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

/* === Grids & cards === */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff; border: 1px solid rgba(30,27,75,0.08);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(124,58,237,0.1); color: var(--color-primary);
  margin-bottom: .5rem;
}
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -25px rgba(30,27,75,0.35); text-decoration: none; }

/* === Split === */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.split__figure img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }

/* === Quote === */
.section--quote { background: var(--color-neutral-light); padding-block: 3.5rem; }
.quote {
  max-width: 780px; margin: 1rem auto 0; text-align: center;
  font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.55;
  color: var(--color-neutral-dark); border: 0; padding: 0;
}
.quote p { margin: 0 0 1rem; }
.quote cite {
  display: block; font-style: normal; font-family: var(--font-body);
  font-size: .95rem; color: rgba(30,27,75,0.7); font-weight: 500;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary); color: #fff;
  padding-block: 3rem; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0 auto 1rem; }

/* === Article detail === */
.article-detail {
  max-width: 65ch; margin-inline: auto; padding: 2rem 1rem 4rem;
}
.article-detail__header { margin-bottom: 1.5rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; color: var(--color-primary); font-weight: 600;
  margin-bottom: .75rem;
}
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.5rem; }
.article-detail__sub { font-size: 1.2rem; color: rgba(30,27,75,0.75); }
.article-detail__figure { margin-block: 2rem; }
.article-detail__figure img { aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.article-detail p { font-size: 1.125rem; line-height: 1.8; margin-block: 1.5rem; }
.article-detail__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(30,27,75,0.1); }
.back-link { font-weight: 500; }

/* === Contact === */
.contact-grid { display: grid; gap: 1rem; margin-bottom: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: var(--color-neutral-light); padding: 1.25rem;
  border-radius: var(--radius); font-style: normal;
  border: 1px solid rgba(30,27,75,0.08);
}
.contact-form {
  background: var(--color-neutral-light); padding: 1.75rem;
  border-radius: var(--radius); border: 1px solid rgba(30,27,75,0.08);
  max-width: 640px;
}
.form-row { display: flex; flex-direction: column; margin-bottom: 1rem; gap: .35rem; }
.form-row label { font-weight: 500; font-size: .95rem; }
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .7rem .85rem; border: 1px solid rgba(30,27,75,0.15);
  border-radius: 8px; background: #fff; color: var(--color-neutral-dark);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary);
}
.form-consent {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .9rem; line-height: 1.5; margin: 1rem 0 1.25rem;
}
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(250,245,255,0.85);
  padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.site-footer a { color: rgba(250,245,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: .25rem 0; }
.footer__legal { margin-top: 1rem; font-size: .9rem; }
.site-footer address { font-style: normal; margin-bottom: .75rem; }
.site-footer__copy {
  border-top: 1px solid rgba(250,245,255,0.15);
  padding-top: 1.25rem; margin-top: 2rem;
  font-size: .85rem; color: rgba(250,245,255,0.6);
}
.logo--footer img { height: 64px; margin-bottom: .5rem; }

/* === Cookie banner === */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  background: var(--color-neutral-dark); color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; color: rgba(250,245,255,0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn { padding: .55rem 1rem; font-size: .9rem; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs .btn { align-self: flex-start; margin-top: .5rem; }
