
:root {
  --bg: #050507;
  --bg-soft: #0a0a0f;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.10);
  --text: #f7f3ff;
  --muted: #aaa4b8;
  --violet: #8c22ff;
  --magenta: #f154ff;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 0 60px rgba(140, 34, 255, 0.18);
  --radius: 22px;
  --max: 1180px;
  --header-bg: rgba(5, 5, 7, 0.78);
}

html[data-theme="light"] {
  --bg: #f7f2ff;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-border: rgba(76, 46, 116, 0.14);
  --text: #1b1028;
  --muted: #61576f;
  --violet: #7b21f5;
  --magenta: #d842ec;
  --line: rgba(76, 46, 116, 0.12);
  --shadow: 0 12px 42px rgba(132, 62, 204, 0.14);
  --header-bg: rgba(247, 242, 255, 0.84);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(119, 0, 255, 0.10), transparent 34rem),
    radial-gradient(circle at 18% 65%, rgba(241, 84, 255, 0.06), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 78% 12%, rgba(119, 0, 255, 0.08), transparent 34rem),
    radial-gradient(circle at 18% 65%, rgba(241, 84, 255, 0.07), transparent 28rem),
    linear-gradient(180deg, #fbf8ff, #f4effb);
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  background: white;
  color: black;
  border-radius: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 1 auto;
}

.brand-image {
  width: clamp(180px, 20vw, 250px);
  height: auto;
  filter: drop-shadow(0 0 16px rgba(140, 34, 255, .12));
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255,255,255,.72);
}

.theme-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f154ff, #8c22ff);
  box-shadow: 0 0 18px rgba(140, 34, 255, .22);
}

html[data-theme="light"] .theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: 3px 0 3px 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
}

html[data-theme="dark"] .theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  opacity: .7;
  box-shadow:
    0 -9px 0 -7px rgba(255,255,255,.85),
    0 9px 0 -7px rgba(255,255,255,.85),
    9px 0 0 -7px rgba(255,255,255,.85),
    -9px 0 0 -7px rgba(255,255,255,.85);
}

.theme-toggle-text {
  font-weight: 700;
  font-size: 0.92rem;
}

.hero {
  min-height: calc(100svh - 84px);
  display: grid;
  align-items: center;
  padding: 72px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: #d09cff;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.2vw, 6.3rem);
  line-height: .97;
  letter-spacing: -0.055em;
}

h2 {
  max-width: 820px;
  margin-bottom: 36px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.14rem;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 720px;
  margin-bottom: 32px;
  color: #c9c3d2;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

html[data-theme="light"] .lead {
  color: #5f5370;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, #6b13ff, #e248ff);
  box-shadow: 0 14px 42px rgba(140, 34, 255, .25);
}

.button-primary:hover {
  box-shadow: 0 18px 48px rgba(140, 34, 255, .34);
}

.button-secondary {
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,.035);
}

html[data-theme="light"] .button-secondary {
  background: rgba(255,255,255,.65);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-facts span {
  padding: 7px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: .82rem;
}

html[data-theme="light"] .hero-facts span {
  background: rgba(255,255,255,.6);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual img {
  position: relative;
  width: min(100%, 650px);
  height: auto;
  filter: saturate(1.05) contrast(1.03) drop-shadow(0 0 42px rgba(140, 34, 255, 0.18));
}

.logo-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137,31,255,.34), rgba(241,84,255,.08) 42%, transparent 70%);
  filter: blur(28px);
}

.section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008));
}

html[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.22));
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

html[data-theme="light"] .card {
  background: linear-gradient(145deg, rgba(255,255,255,.90), rgba(255,255,255,.66));
  box-shadow: 0 10px 34px rgba(132, 62, 204, .06);
}

.card-number {
  display: block;
  margin-bottom: 54px;
  color: #b66cff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.card p,
.principle p,
.contact p {
  color: var(--muted);
}

.principles-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.principles {
  border-top: 1px solid var(--line);
}

.principle {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.principle h3 {
  margin-bottom: 6px;
}

.principle p {
  margin-bottom: 0;
}

.contact {
  padding-top: 90px;
  padding-bottom: 90px;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding: 42px;
  border: 1px solid rgba(183, 96, 255, .26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(143,31,255,.16), transparent 30rem),
    rgba(255,255,255,.025);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .contact-box {
  background:
    radial-gradient(circle at 100% 0, rgba(143,31,255,.12), transparent 30rem),
    rgba(255,255,255,.78);
}

.contact-box h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.contact-box p {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 42px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: .9rem;
}

.footer-inner > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-inner strong {
  color: var(--text);
  letter-spacing: .12em;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    padding: 12px 0;
  }

  .header-controls {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .principles-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(76vw, 500px);
  }

  .contact-box {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 64px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-image {
    width: min(72vw, 220px);
  }

  .header-controls {
    width: 100%;
    align-items: stretch;
  }

  .nav {
    display: none;
  }

  .theme-toggle {
    width: fit-content;
  }

  .hero {
    padding: 46px 0 68px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .section {
    padding: 78px 0;
  }

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

  .card {
    min-height: 0;
  }

  .card-number {
    margin-bottom: 36px;
  }

  .contact-box {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
