:root {
  color-scheme: light dark;
  --ink: #1c1820;
  --ink-soft: #625c66;
  --paper: #f5f3fa;
  --paper-deep: #e9e5f2;
  --white: #ffffff;
  --night: #171126;
  --night-soft: #241936;
  --violet: #8e68f4;
  --violet-light: #c7b5ff;
  --mint: #8ee5c2;
  --action: #7452d6;
  --action-hover: #7d5bdd;
  --coral: #ff9e82;
  --line: rgba(28, 24, 32, 0.13);
  --shadow: 0 30px 80px rgba(23, 17, 38, 0.16);
  --radius-lg: 40px;
  --radius-md: 26px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition:
    color 220ms ease,
    background-color 220ms ease;
}

:root[data-theme="dark"] {
  --ink: #f7f2fb;
  --ink-soft: #b9afc2;
  --paper: #100c18;
  --paper-deep: #171126;
  --white: #181221;
  --night: #0c0912;
  --night-soft: #241936;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 5.4vw, 6rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 4vw, 4.3rem);
  font-weight: 620;
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

em {
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 140px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: white;
  background: var(--night);
  border-radius: 12px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--violet-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow.dark {
  color: #705aa9;
}

.eyebrow.light {
  color: var(--violet-light);
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

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

.button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
.menu-toggle:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  color: white;
  background: var(--action);
  box-shadow: 0 14px 35px rgba(142, 104, 244, 0.24);
}

.button-primary:hover {
  background: var(--action-hover);
  box-shadow: 0 18px 44px rgba(142, 104, 244, 0.32);
}

.button-small {
  min-height: 44px;
  padding-inline: 22px;
  color: white;
  background: var(--night);
  font-size: 0.9rem;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(23, 17, 38, 0.85);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  min-height: 82px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font: inherit;
  line-height: 1;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(73, 46, 140, 0.28);
}

.theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.theme-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-icon-sun,
:root[data-theme="light"] .theme-icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-icon-sun {
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 1.35rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: white;
}

.header-cta {
  justify-self: end;
  color: var(--night);
  background: white;
}

.menu-toggle {
  display: none;
}
