@import url("/styles/tokens.css");

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(79, 124, 255, 0.08), transparent 22%),
    radial-gradient(circle at left 8% top 12%, rgba(79, 124, 255, 0.06), transparent 18%),
    linear-gradient(180deg, #f8faff 0%, #f4f6fb 100%);
  font-family: var(--font-body);
  line-height: 1.7;
  min-width: 320px;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

code,
pre,
kbd {
  font-family: var(--font-display);
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 124, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 124, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 92%);
  opacity: 0.28;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 12px 16px;
  background: var(--brand);
  color: #ffffff;
  border-radius: 999px;
  z-index: 1000;
}

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

.section {
  padding: var(--space-16) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
  padding: 8px 14px;
  border: 1px solid rgba(79, 124, 255, 0.12);
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.07);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(79, 124, 255, 0.28);
}

.kicker {
  color: var(--brand);
  font-size: 14px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-title,
.hero-title,
.article-title,
.section-title {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
}

.hero-title strong {
  display: inline-block;
  color: var(--brand);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.lead,
.muted,
.page-summary {
  color: var(--text-muted);
}

.lead {
  font-size: 18px;
  max-width: 62ch;
}

.muted {
  font-size: 14px;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--brand), #6b95ff);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(79, 124, 255, 0.24);
}

.button-secondary {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--text);
}

.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;
}

@media (max-width: 767px) {
  .section {
    padding: var(--space-12) 0;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .lead {
    font-size: 16px;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.08;
  }

  .page-title {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.12;
  }

  .section-title {
    font-size: clamp(22px, 7vw, 30px);
  }
}
