:root {
  color-scheme: light;
  --background: #f7f5ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #171525;
  --muted: #68647a;
  --primary: #6d4aff;
  --primary-dark: #4f31dc;
  --primary-soft: #eeeaff;
  --border: rgba(74, 57, 141, 0.14);
  --danger: #b4233c;
  --danger-soft: #fff0f2;
  --shadow: 0 24px 70px rgba(53, 35, 120, 0.12);
  --radius-large: 28px;
  --radius-medium: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(159, 132, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 95% 15%, rgba(112, 219, 255, 0.17), transparent 28rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

a {
  color: var(--primary-dark);
  text-underline-offset: 0.2em;
}

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

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #7d5cff, #5130dd);
  box-shadow: 0 10px 22px rgba(83, 52, 221, 0.24);
  color: white;
}

.brand-mark > span {
  transform: translate(-3px, -2px);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.brand-mark small {
  position: absolute;
  right: 5px;
  bottom: 4px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: clamp(44px, 8vw, 92px);
  border: 1px solid var(--border);
  border-radius: 36px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(244, 240, 255, 0.86));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "K";
  position: absolute;
  right: -0.04em;
  bottom: -0.37em;
  color: rgba(109, 74, 255, 0.07);
  font-size: clamp(18rem, 40vw, 34rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

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

.eyebrow {
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  font-weight: 920;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 24px rgba(83, 52, 221, 0.22);
  color: white;
}

.button.secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.button.danger {
  margin: 6px 0 18px;
  background: var(--danger);
  color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0 84px;
}

.feature-card,
.legal-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 16px 45px rgba(53, 35, 120, 0.07);
  backdrop-filter: blur(16px);
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-medium);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.feature-card h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.legal-layout {
  max-width: 880px;
  margin-top: 48px;
  margin-bottom: 72px;
}

.legal-card {
  padding: clamp(28px, 6vw, 68px);
  border-radius: var(--radius-large);
}

.legal-card h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.legal-card .lead {
  margin: -4px 0 48px;
  color: var(--muted);
  font-size: 1.15rem;
}

.legal-card section {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.legal-card section:first-of-type {
  border-top: 0;
}

.legal-card h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.legal-card p,
.legal-card li {
  color: #3e3a50;
}

.legal-card li + li {
  margin-top: 9px;
}

.steps {
  padding-left: 1.4rem;
}

.notice {
  margin-top: 10px;
  padding: 18px;
  border: 1px solid rgba(180, 35, 60, 0.16);
  border-radius: 14px;
  background: var(--danger-soft);
  color: #642235;
}

.updated {
  margin: 38px 0 0;
  color: var(--muted) !important;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary-dark);
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  nav {
    width: 100%;
    gap: 18px;
  }

  .hero,
  .legal-layout {
    margin-top: 24px;
  }

  .hero {
    border-radius: 26px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    margin-bottom: 54px;
  }

  .legal-card {
    border-radius: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer div {
    justify-content: flex-start;
  }
}

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

  .button {
    transition: none;
  }
}
