:root {
  --color-primary: #6B2FD6;
  --color-primary-dark: #4E1FA8;
  --color-accent: #FF6B4A;
  --color-accent-alt: #00C9B7;
  --color-bg: #FFF8F5;
  --color-surface: #FFFFFF;
  --color-text: #1A1230;
  --color-text-muted: #5C5470;
  --color-border: #E8E0F0;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(107, 47, 214, 0.12);
  --shadow-hover: 0 16px 48px rgba(107, 47, 214, 0.2);
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-desktop {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-desktop a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-bg);
  padding: 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(107, 47, 214, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 74, 0.35);
}

.btn-accent:hover {
  background: #e55a3a;
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(107, 47, 214, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent-alt);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--color-text) 40%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 32ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero-shape {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 120px;
  height: 120px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 55ch;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

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

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card-link {
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: none;
}

/* Feature strip */
.feature-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%);
  color: #fff;
  padding: 3rem 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  list-style: none;
}

.feature-list li h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-list li p {
  opacity: 0.9;
  font-size: 0.9375rem;
}

/* Testimonials */
.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-accent);
}

.testimonial blockquote {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Page hero */
.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, rgba(107, 47, 214, 0.08) 0%, transparent 100%);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 60ch;
}

/* Prose */
.prose {
  max-width: 72ch;
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

/* Service detail */
.service-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.service-hero img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 1rem 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.detail-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.detail-box h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.detail-box ul {
  list-style: none;
}

.detail-box li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9375rem;
}

.detail-box li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .service-hero,
  .detail-grid { grid-template-columns: 1fr; }
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-surface);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #c0392b;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.is-invalid .form-error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: #c0392b;
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: none;
}

.form-success.is-visible {
  display: block;
}

.form-fail {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: none;
}

.form-fail.is-visible {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info address {
  font-style: normal;
  line-height: 1.8;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Pricing */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

/* Blog */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}

.post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.post-item-content {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.post-item time {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.post-item h2 {
  font-size: 1.375rem;
  margin: 0.375rem 0 0.5rem;
}

.post-item p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 600px) {
  .post-item { grid-template-columns: 1fr; }
  .post-item-content { padding: 1.5rem; }
}

.article-header {
  margin-bottom: 2rem;
}

.article-header time {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.article-cover {
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

/* Learning path */
.path-steps {
  counter-reset: step;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.path-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.path-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
}

/* Legal */
.legal-content {
  padding: 2rem 0 4rem;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.cookies-table th {
  background: rgba(107, 47, 214, 0.08);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--color-primary);
  line-height: 1;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  white-space: pre-line;
}

.footer-copy {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  padding: 1.25rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9375rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-error {
  width: 100%;
  color: #c0392b;
  font-size: 0.8125rem;
  display: none;
}

.cookie-error.is-visible {
  display: block;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-accent) 0%, #FF8F6B 100%);
  color: #fff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 2rem 0;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-band .btn-primary {
  background: var(--color-text);
}

.cta-band .btn-primary:hover {
  background: #2d1f4e;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-primary);
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
