: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;
  --radius: 10px;
  --shadow: 0 20px 40px -24px rgba(30, 27, 75, 0.35);
  --border: 1px solid rgba(30, 27, 75, 0.08);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; color: var(--color-neutral-dark); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 720px; margin-inline: auto; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .9rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 8px;
  background: transparent; border: 1px solid rgba(30,27,75,0.15);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.primary-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: var(--border);
  padding: 1rem 1.25rem;
  flex-direction: column;
  gap: .25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: .6rem .25rem;
  border-bottom: 1px solid rgba(30,27,75,0.06);
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

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

/* === Hero stacked === */
.hero { padding-block: 3rem; }
.hero-inner { text-align: left; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 1rem;
}
.hero h1 { max-width: 22ch; }
.hero-figure {
  margin: 2.25rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 52ch;
  color: rgba(30, 27, 75, 0.78);
}
.hero-cta { margin-top: 1.5rem; }

@media (min-width: 768px) {
  .hero { padding-block: 5rem; }
  .hero-figure { margin: 3rem 0; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn-primary:hover { background: #6d28d9; }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-dark); }
.btn-accent:hover { background: #0891b2; color: var(--color-neutral-light); }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-alt { background: rgba(167, 139, 250, 0.09); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-sub { color: rgba(30,27,75,0.7); font-size: 1.05rem; }

@media (min-width: 768px) {
  .section { padding-block: 5rem; }
}

/* === Highlights grid === */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card .icon { color: var(--color-primary); margin-bottom: 1rem; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card-link:hover .card { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(124, 58, 237, 0.25); }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: rgba(30,27,75,0.78); margin: 0; }

/* === Testimonial === */
.section-testimonial { padding-block: 4rem; }
.quote {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 1.75rem;
  background: rgba(6, 182, 212, 0.06);
  border-radius: var(--radius);
}
.quote p {
  font-size: 1.25rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--color-neutral-dark);
  margin-bottom: 1rem;
}
.quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .95rem;
  color: rgba(30,27,75,0.7);
  font-weight: 500;
}

/* === CTA band === */
.cta-band {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding-block: 4rem;
  text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(250, 245, 255, 0.82); max-width: 55ch; margin-inline: auto; margin-bottom: 1.25rem; }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin-inline: auto;
  padding: 3rem 1.25rem 4rem;
}
.article-detail h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.article-sub {
  font-size: 1.2rem;
  color: rgba(30,27,75,0.7);
  margin-bottom: 1.5rem;
}
.article-hero {
  margin: 2rem 0 2.5rem;
  border-radius: 8px;
  overflow: hidden;
}
.article-hero img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article-detail p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-block: 1.25rem;
  color: rgba(30,27,75,0.9);
}
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: var(--border); }
.back-link { font-weight: 600; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit;
  padding: .75rem .9rem;
  border: 1px solid rgba(30,27,75,0.15);
  border-radius: 8px;
  background: #fff;
  color: var(--color-neutral-dark);
}
.field input:focus, .field 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: .6rem;
  font-size: .9rem; color: rgba(30,27,75,0.8);
  flex-wrap: wrap;
}
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(250,245,255,0.85);
  padding-top: 3rem;
  margin-top: 3rem;
}
.site-footer h3 {
  color: var(--color-neutral-light);
  font-family: var(--font-body);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(250,245,255,0.85); }
.site-footer a:hover { color: var(--color-accent); text-decoration: none; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.logo--footer img { height: 60px; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.tagline { color: rgba(250,245,255,0.7); font-style: italic; }
.legal-links { margin-top: 1.25rem !important; display: flex; gap: 1rem; flex-wrap: wrap; }
.legal-links li { margin-bottom: 0; }
.copyright {
  border-top: 1px solid rgba(250,245,255,0.12);
  padding-block: 1.25rem;
  font-size: .85rem;
  color: rgba(250,245,255,0.6);
  text-align: center;
}
address { font-style: normal; line-height: 1.7; }

/* === 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: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  max-width: 560px;
}
.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 button, .cookie-banner__prefs button {
  font: inherit; cursor: pointer;
  padding: .55rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(250,245,255,0.25);
  background: transparent;
  color: var(--color-neutral-light);
  font-size: .9rem;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  border-color: var(--color-accent);
  font-weight: 600;
}
.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 button { margin-top: .5rem; align-self: flex-start; }
