:root {
  --ink: #3d2f4f;
  --ink-deep: #21172f;
  --violet: #6e5c7a;
  --mist: #b9bcc6;
  --paper: #f3f2f6;
  --white: #ffffff;
  --line: rgba(61, 47, 79, 0.12);
  --max: 1180px;
  --radius: 22px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
.footer-brand {
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand img {
  width: 168px;
  height: auto;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.2s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(61, 47, 79, 0.22);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(61, 47, 79, 0.35);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(61, 47, 79, 0.04);
  box-shadow: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 78% 45%, rgba(110, 92, 122, 0.35), transparent 60%),
    linear-gradient(115deg, #2a2038 0%, #3d2f4f 42%, #4a3a5c 100%);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0.55;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  min-height: inherit;
  padding: 72px 0 64px;
}

.hero-copy {
  max-width: 560px;
  padding-bottom: 28px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin: 0 0 16px;
  opacity: 0.8;
}

.eyebrow.light {
  color: #e8e2ef;
  opacity: 1;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 86px);
  line-height: 0.95;
  margin: 0 0 22px;
}

.hero h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 500;
  max-width: 18ch;
}

.lead {
  font-size: 18px;
  margin: 0 0 28px;
  opacity: 0.9;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, 1%, 0);
  }
}

/* Sections */
.section {
  padding: 88px 0;
}

.split,
.science-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.science-grid {
  align-items: start;
}

.section h2,
.contact h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin: 0 0 20px;
}

.section p {
  font-size: 17px;
  margin: 0 0 14px;
}

.media-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #eceaf0;
  box-shadow: 0 24px 60px rgba(61, 47, 79, 0.12);
}

.media-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease);
}

.media-card:hover img {
  transform: scale(1.04);
}

.media-card.dark {
  background: #2a2038;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  align-items: start;
}

.feature-row > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 8px 4px 0;
  border-top: 1px solid rgba(61, 47, 79, 0.22);
}

.feature-row > div span {
  display: block;
  min-height: calc(1.35em * 2);
}

.icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: var(--ink);
  margin-bottom: 10px;
  opacity: 0.85;
}

.section-dark {
  background:
    radial-gradient(circle at 85% 20%, rgba(185, 188, 198, 0.12), transparent 35%),
    var(--ink);
  color: #fff;
}

.section-dark .icon {
  fill: #fff;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.check-list li {
  padding: 15px 0 15px 42px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 14px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  opacity: 0.8;
}

.section-soft {
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(61, 47, 79, 0.05), transparent 50%),
    var(--paper);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 32px;
}

.advantages-grid > div {
  background: var(--paper);
  padding: 28px 26px;
  min-height: 128px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.advantages-grid > div:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Contact */
.contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #2a2038, #4a3a5c 55%, #3d2f4f);
  color: #fff;
  padding: 92px 0;
}

.contact-grid {
  max-width: 560px;
}

.email {
  display: inline-block;
  margin-top: 18px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease;
}

.email:hover {
  border-color: #fff;
}

/* Footer */
.footer {
  background: var(--ink-deep);
  color: #fff;
  padding: 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  font-size: 24px;
  display: grid;
  gap: 6px;
}

.footer-brand small {
  font-family: Manrope, sans-serif;
  font-size: 12px;
  opacity: 0.7;
  font-weight: 400;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.footer-links a,
.footer-meta a {
  text-decoration: none;
  opacity: 0.8;
}

.footer-links a:hover,
.footer-meta a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-meta {
  text-align: right;
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.6;
}

/* Legal pages */
.legal-page {
  background: var(--paper);
}

.legal-main {
  padding: 56px 0 80px;
}

.legal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 16px 40px rgba(61, 47, 79, 0.08);
  max-width: 820px;
}

.legal-card h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 12px;
}

.legal-card .meta {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 28px;
}

.legal-card h2 {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  margin: 28px 0 10px;
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  font-size: 15px;
  margin: 0 0 12px;
}

.legal-card ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 {
  transition-delay: 0.12s;
}

.reveal.delay-2 {
  transition-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg img,
  .reveal,
  .media-card img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 12px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    display: none;
  }

  .split,
  .science-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 56px 0 48px;
  }

  .feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 140px;
  }

  .feature-row,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .contact {
    padding: 64px 0;
  }

  .hero-copy {
    padding-bottom: 0;
  }
}
