*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #090312;
  --bg-soft: #13071f;
  --panel: rgba(255,255,255,0.05);
  --panel-strong: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --text: #f5f3ff;
  --muted: #d6ccff;
  --accent: #8b5cf6;
  --accent-strong: #6d28d9;
  --shadow: 0 20px 55px rgba(0,0,0,0.35);
  --radius: 24px;
  --header-height: 86px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(139,92,246,0.24), transparent 28%),
    radial-gradient(circle at bottom right, rgba(109,40,217,0.20), transparent 24%),
    linear-gradient(180deg, #08020f 0%, #0b0514 55%, #090312 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(9, 3, 18, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: #ffffff;
}

.header-cta {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  padding: calc(var(--header-height) + 56px) 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid rgba(167,139,250,0.32);
  border-radius: 999px;
  background: rgba(139,92,246,0.12);
  color: #ddd6fe;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: .02em;
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.3rem);
  margin-top: 20px;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-lead {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  color: #f5f3ff;
  max-width: 700px;
  margin: 0 0 18px;
}

.hero-text,
.panel p,
.card p,
.newsletter-text,
.form-note,
.contact-panel p,
.site-footer p {
  color: var(--muted);
}

.hero-text {
  font-size: 1.08rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: #e9e2ff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .95rem;
  font-weight: 600;
}

.image-card,
.panel,
.card,
.newsletter-wrap,
.cookie-inner {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card {
  overflow: hidden;
  padding: 12px;
}

.profile-image {
  width: 100%;
  border-radius: 18px;
  min-height: 420px;
  object-fit: cover;
}

.section {
  padding: 62px 0;
}

.section-dark .container > .section-heading,
.section .section-heading {
  margin-bottom: 26px;
}

.section-dark {
  padding: 72px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
}

.align-center {
  align-items: center;
}

.panel {
  padding: 28px;
}

.panel-highlight {
  background:
    radial-gradient(circle at top right, rgba(139,92,246,0.24), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.05));
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}

.card {
  padding: 28px;
}

.text-link {
  color: #ddd6fe;
  font-weight: 700;
  text-decoration: none;
}

.panel-image {
  padding: 18px;
}

.engagement-image {
  width: 100%;
  border-radius: 18px;
}

.newsletter-wrap {
  padding: 34px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  margin-top: 22px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-weight: 700;
  color: #efeaff;
}

.field-group input {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: white;
  padding: 0 16px;
  font-size: 1rem;
  outline: none;
}

.field-group input::placeholder {
  color: #c4b5fd;
}

.field-group input:focus {
  border-color: rgba(168,85,247,0.75);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.16);
}

.form-note {
  font-size: 0.95rem;
  margin-top: 14px;
}

.form-note a {
  color: #e9ddff;
}

.success-message {
  margin-top: 14px;
  color: #d8b4fe;
  font-weight: 700;
}

.contact-panel {
  max-width: 760px;
}

.contact-mail a {
  font-size: 1.36rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0 36px;
  margin-top: 26px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #6d28d9);
  color: white;
}

.btn-secondary,
.btn-outline {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.14);
  color: white;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
}

.cookie-inner {
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  color: #ede9fe;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner.hidden {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .newsletter-form,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero-visual {
    order: -1;
  }

  .footer-grid,
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header-height) - 4px);
    left: 20px;
    right: 20px;
    padding: 18px;
    background: rgba(9, 3, 18, 0.98);
    border: 1px solid var(--border);
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-left: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .logo {
    width: 190px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    --header-height: 78px;
  }

  .panel,
  .card,
  .newsletter-wrap {
    padding: 22px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .cookie-actions .btn {
    flex: 1 1 180px;
  }
}
