@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Sora:wght@600;700;800&display=swap");

:root {
  --bg: #0a0e27;
  --bg-soft: #131729;
  --ink: #f8f9fc;
  --muted: #9ca3af;
  --surface: #1a1f3a;
  --surface-soft: #222842;
  --line: #2d3454;
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --accent-light: #818cf8;
  --calm: #06b6d4;
  --safe: #10b981;
  --warm: #f59e0b;
  --max: 1200px;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --glow: 0 0 30px rgba(99, 102, 241, 0.3);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(
      800px 600px at 50% -10%,
      rgba(99, 102, 241, 0.15),
      transparent
    ),
    radial-gradient(
      600px 500px at 100% 50%,
      rgba(6, 182, 212, 0.1),
      transparent
    ),
    radial-gradient(
      700px 600px at 0% 100%,
      rgba(139, 92, 246, 0.1),
      transparent
    ),
    var(--bg);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 39, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow:
    0 0 20px rgba(99, 102, 241, 0.6),
    0 0 40px rgba(99, 102, 241, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.brand__text {
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 18px;
  background: linear-gradient(135deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav__link {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 15px;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.nav__link.is-active {
  color: var(--ink);
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(129, 140, 248, 0.1)
  );
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.nav__toggle {
  display: none;
}

.hero {
  padding: 80px 0 40px;
  animation: float-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero--home {
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow), var(--glow);
  position: relative;
}

.hero--home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.5),
    transparent
  );
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(
      600px 400px at 10% 20%,
      rgba(99, 102, 241, 0.08),
      transparent
    ),
    radial-gradient(
      500px 500px at 90% 80%,
      rgba(6, 182, 212, 0.06),
      transparent
    );
}

.hero__art {
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(99, 102, 241, 0.1);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.hero__art:hover {
  transform: scale(1.02);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(99, 102, 241, 0.2);
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-light);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(129, 140, 248, 0.1)
  );
  padding: 8px 16px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(8px);
}

h1 {
  margin: 20px 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  font-size: clamp(40px, 5.5vw, 72px);
  background: linear-gradient(135deg, #fff, #c7d2fe, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  margin: 0;
  color: #d1d5db;
  font-size: clamp(18px, 2.4vw, 22px);
  max-width: 65ch;
  line-height: 1.75;
}

.kicker {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

.kicker a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.kicker a:hover {
  border-bottom-color: var(--accent-light);
}

.cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  border-color: var(--accent-dark);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow:
    0 10px 30px rgba(99, 102, 241, 0.4),
    0 0 30px rgba(99, 102, 241, 0.2);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow:
    0 15px 40px rgba(99, 102, 241, 0.5),
    0 0 40px rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn.ghost {
  color: var(--calm);
  border-color: rgba(6, 182, 212, 0.3);
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.1),
    rgba(6, 182, 212, 0.05)
  );
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: rgba(6, 182, 212, 0.5);
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.2),
    rgba(6, 182, 212, 0.1)
  );
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.btn.safe {
  color: var(--safe);
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(16, 185, 129, 0.05)
  );
}

.btn.safe:hover,
.btn.safe:focus-visible {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2),
    rgba(16, 185, 129, 0.1)
  );
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.section {
  padding: 40px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--calm));
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

.stat strong {
  display: block;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-light), var(--calm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 32px;
  animation: float-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(99, 102, 241, 0.2),
    0 0 40px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.list {
  margin: 12px 0 0;
  padding-left: 24px;
  color: var(--muted);
}

.list li {
  padding-left: 8px;
  line-height: 1.8;
}

.list li + li {
  margin-top: 10px;
}

.list li::marker {
  color: var(--accent);
}

.hr {
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.notice {
  margin-top: 20px;
  border-left: 4px solid var(--safe);
  border-radius: 16px;
  padding: 16px 20px;
  color: #6ee7b7;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15),
    rgba(16, 185, 129, 0.08)
  );
  backdrop-filter: blur(8px);
}

.notice strong {
  color: var(--safe);
}

.faq {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq li {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  transition: all 0.3s ease;
}

.faq li:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.faq button {
  width: 100%;
  text-align: left;
  border: 0;
  padding: 20px 24px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq button:hover {
  color: var(--accent-light);
}

.faq .answer {
  display: none;
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.8;
}

.faq li.is-open .answer {
  display: block;
  animation: slide-down 0.3s ease;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.resource-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--muted);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(129, 140, 248, 0.03)
  );
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-link:hover,
.resource-link:focus-visible {
  color: var(--accent-light);
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(129, 140, 248, 0.1)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 13px;
}

.footer {
  margin-top: 80px;
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(10, 14, 39, 0.8));
  backdrop-filter: blur(16px);
}

.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr;
}

.footer strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--accent-light);
  transform: translateX(4px);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .grid.cols-2,
  .grid.cols-3,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }

  .nav__toggle {
    display: inline-flex;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 10px 16px;
    background: linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.1),
      rgba(129, 140, 248, 0.05)
    );
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .header,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .card {
    padding: 24px;
  }
}
