:root {
  color-scheme: dark;
  --bg-1: #0a0a0a;
  --bg-2: #161616;
  --bg-3: #1a1a1a;
  --bg-4: #2a2a2a;
  --stroke-1: #2a2a2a;
  --stroke-2: #333333;
  --purple: #A67AF4;
  --cyan: #32BEDD;
  --text-primary: #e4e4e4;
  --text-secondary: #a1a1aa;
  --button-bg: #ffffff;
  --button-text: #000000;
  --button-hover: #e5e5e5;
  --radius-card: 12px;
  --radius-button: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at top, rgba(166, 122, 244, 0.09), transparent 28%), var(--bg-1);
  color: var(--text-primary);
}

a,
button {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 10px;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 72px;
}

.hero {
  text-align: center;
  padding: 8px 0 24px;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(166, 122, 244, 0.1));
  border: 1px solid var(--stroke-2);
  transition: transform 0.3s ease;
}

.hero-icon:hover {
  transform: scale(1.15);
}

.hero-icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.highlight {
  color: var(--purple);
  text-decoration: none;
}

.hero-copy {
  max-width: 720px;
  margin: 18px auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.section-title {
  margin: 32px 0 22px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: #A67AF4;
  box-shadow: 0 0 0 1px #A67AF4, 0 8px 32px -4px rgba(166, 122, 244, 0.27);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 16px;
  background: linear-gradient(180deg, #1a1a1a 0%, rgba(166, 122, 244, 0.12) 100%);
  border-bottom: 1px solid var(--stroke-2);
}

.card-icon svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 140px;
  transition: min-height 0.3s ease;
}

.card:hover .card-body {
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  min-height: 140px;
}

.card h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: font-size 0.3s ease;
}

.card:hover h2 {
  font-size: 1.05rem;
}

.card p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.05rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s, max-height 0.3s ease;
}

.card:hover p {
  opacity: 1;
  max-height: 200px;
  transform: translateY(0);
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  text-align: center;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 340px;
  padding: 22px 64px;
  border: none;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--button-hover);
  transform: translateY(-1px) scale(1.06);
}

.doc-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}

.doc-link:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .page {
    padding: 8px 16px 56px;
  }

  .hero {
    padding-top: 4px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card-icon {
    min-height: 64px;
  }
}
