:root {
  --bg: #0b1020;
  --bg-2: #0e1429;
  --txt: #e8ecf4;
  --muted: #93a1c7;
  --brand: #7c5cff;
  --stroke: #21305b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --accent: #00f1ed;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--txt);
  background: radial-gradient(
      1200px 800px at 80% -10%,
      rgba(124, 92, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      800px 600px at 0% 10%,
      rgba(0, 217, 255, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--txt);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(6px);
  background: rgba(11, 16, 32, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #081026, #0f1427);
}

.brand-title {
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--txt);
  font-weight: 600;
}

/* Mobile: hamburger + collapsed nav */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--txt);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle .hamburger {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--txt);
  position: relative;
  transition: background 0.18s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--txt);
  transition: transform 0.18s ease;
}

.menu-toggle .hamburger::before {
  top: -6px;
}

.menu-toggle .hamburger::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 640px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 8px;
    left: 8px;
    top: 64px;
    background: rgba(11, 16, 32, 0.96);
    border-radius: 12px;
    flex-direction: column;
    padding: 12px;
    gap: 6px;
    border: 1px solid var(--stroke);
    z-index: 40;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
    display: block;
  }
}

main {
  position: relative;
}

.header-section {
  background: var(--bg-2);
  text-align: center;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--stroke);
}

.header-section h1 {
  font-size: 31.837px;
  font-weight: bold;
  color: var(--brand);
  margin: 0 0 16px;
  line-height: 1.2;
}

.header-section .subtitle {
  font-size: 16px;
  color: var(--txt);
  font-weight: 400;
  margin: 8px 0 0;
}

.header-section .description {
  font-size: 16px;
  color: var(--muted);
  margin: 4px 0 0;
}

.content-section {
  padding: 60px 0;
  max-width: 977px;
  margin: 0 auto;
}

.content-section p {
  font-size: 16px;
  line-height: 23.547px;
  color: var(--txt);
  margin: 16px 0;
  white-space: normal;
}

.content-section h2 {
  font-size: 26px;
  font-weight: bold;
  color: var(--brand);
  margin: 40px 0 16px;
}

.content-section h3 {
  font-weight: bold;
  margin: 16px 0 8px;
}

.content-section ul {
  margin: 16px 0;
  padding-left: 20px;
}

.content-section ul li {
  margin: 8px 0;
  color: var(--txt);
  font-size: 16px;
  line-height: 23.547px;
}

.content-section strong {
  font-weight: 600;
}

.content-section a {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.content-section a:hover {
  opacity: 0.8;
}

.footer-section {
  background: var(--bg-2);
  padding: 60px 0;
  text-align: center;
  margin-top: 60px;
}

.footer-section p {
  margin: 0;
  font-size: 16px;
  color: var(--txt);
}

footer {
  border-top: 1px solid var(--stroke);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--txt);
}

.footer-links a:hover {
  color: var(--brand);
}

.tiny {
  font-size: 12px;
}

.ghost {
  color: var(--muted);
}

@media (max-width: 768px) {
  .header-section {
    padding: 60px 0 40px;
  }

  .header-section h1 {
    font-size: 24px;
  }

  .content-section {
    padding: 40px 0;
  }

  .content-section h2 {
    font-size: 20px;
  }

  .footer-links {
    flex-direction: column;
    text-align: center;
  }
}
