@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Sora:wght@400;600;700;800&display=swap');

:root {
  --bg: #f4f1ff;
  --surface: #ffffff;
  --surface-2: #f8f6ff;
  --text: #16122a;
  --text-soft: #5f587b;
  --accent: #7f5af0;
  --accent-2: #5b34d6;
  --line: #ded7ff;
  --ok: #1fbf75;
  --shadow: 0 16px 45px rgba(37, 19, 95, 0.14);
}

[data-theme='dark'] {
  --bg: #0f0b1b;
  --surface: #181228;
  --surface-2: #211938;
  --text: #f5f2ff;
  --text-soft: #b8afd9;
  --accent: #ab8cff;
  --accent-2: #7f5af0;
  --line: #322752;
  --ok: #35d98c;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 8% 12%, rgba(139, 92, 246, 0.22), transparent 34%),
    radial-gradient(circle at 88% 3%, rgba(79, 70, 229, 0.18), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  width: min(1200px, 94vw);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.menu-toggle {
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(currentColor, currentColor) center 35% / 1rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 50% / 1rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 65% / 1rem 2px no-repeat,
    var(--surface);
  color: var(--text);
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--accent);
}

.tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.button,
button,
input,
textarea {
  font: inherit;
}

.theme-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.theme-btn::before {
  content: '☀';
  font-size: 1rem;
  line-height: 1;
}

[data-theme='dark'] .theme-btn::before {
  content: '☾';
}

main {
  padding-top: 96px;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  margin: 0 0 1rem;
}

.kicker {
  display: inline-flex;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.left {
  transform: translateX(-24px);
}

.reveal.right {
  transform: translateX(24px);
}

.reveal.show {
  opacity: 1;
  transform: translate(0, 0);
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 1.8rem 0 2.4rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .section {
    padding: 1.5rem 0;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 3vw;
    right: 3vw;
    top: 72px;
    padding: 1rem;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .nav-links.open {
    display: flex;
  }

  .tools {
    margin-left: auto;
  }

  main {
    padding-top: 82px;
  }

  main > section:first-child {
    padding-top: 1.2rem;
    padding-bottom: 1.6rem;
  }

}
