* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(
    circle at top,
    #020617 0,
    #020014 35%,
    #050816 80%
  );
  color: #e5e7eb;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

header {
  background: linear-gradient(90deg, #020617, #1e1b4b);
  border-bottom: 1px solid rgba(129, 140, 248, 0.4);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(
    from 180deg,
    #f97316,
    #ec4899,
    #6366f1,
    #22d3ee,
    #f97316
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.logo-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title span:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.logo-title span:last-child {
  font-size: 1.1rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
}

nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, transform 0.1s, box-shadow 0.1s;
}

nav a:hover {
  background: rgba(129, 140, 248, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.8);
}

nav a.active {
  background: linear-gradient(90deg, #f472b6, #6366f1);
  color: #f9fafb;
}

main {
  padding: 2rem;
  flex: 1;
}

.hero {
  position: relative;
  text-align: left;
  padding: 2.7rem 2rem;
  background-image: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(76, 29, 149, 0.92)
    ),
    url("images/anime-city.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 1.6rem;
  margin-bottom: 2.2rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.95);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at top left,
      rgba(244, 114, 182, 0.32),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(56, 189, 248, 0.2),
      transparent 50%
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 540px;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e7eb;
  margin-bottom: 0.9rem;
  background: rgba(15, 23, 42, 0.6);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f97316;
}

.hero h2 {
  font-size: 2.3rem;
  margin-bottom: 0.7rem;
}

.hero span.accent {
  background: linear-gradient(120deg, #f97316, #f472b6, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 500px;
  margin: 0.4rem 0 1.6rem;
  color: #e5e7ff;
  font-size: 0.98rem;
}

.hero-small {
  font-size: 0.78rem;
  color: #c7d2fe;
  opacity: 0.95;
}

.hero-buttons {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-preview {
  position: absolute;
  right: 2.1rem;
  bottom: 1.9rem;
  width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.35);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at top, #1d2538, #020617);
}

.hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-preview-label {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  padding: 0.3rem 0.55rem;
  border-radius: 0.7rem;
  font-size: 0.68rem;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-preview-label span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #a5b4fc;
}

.hero-preview-label span:last-child {
  color: #fbbf24;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #f472b6, #6366f1);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.section-title p {
  max-width: 460px;
  color: #c7d2fe;
  font-size: 0.9rem;
}

.card {
  position: relative;
  background: radial-gradient(
      circle at top left,
      rgba(244, 114, 182, 0.09),
      transparent 70%
    ),
    #020617;
  border-radius: 1rem;
  padding: 1.25rem 1.3rem 1.3rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
      circle at top,
      rgba(96, 165, 250, 0.1),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom,
      rgba(244, 114, 182, 0.18),
      transparent 58%
    );
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

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

.card-content {
  position: relative;
  z-index: 1;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.card p {
  font-size: 0.95rem;
  color: #cbd5f5;
}

.card ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

.card-image {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  height: 150px;
  object-fit: cover;
  border: 1px solid rgba(30, 64, 175, 0.6);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #c7d2fe;
  background: rgba(15, 23, 42, 0.9);
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.table-wrapper {
  margin: 1.5rem 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

thead {
  background: linear-gradient(90deg, #111827, #1f2937);
}

th,
td {
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
  text-align: left;
}

tbody tr:nth-child(even) {
  background: #020617;
}

tbody tr:nth-child(odd) {
  background: #02081b;
}

th {
  font-weight: 600;
  color: #e5e7eb;
}

td {
  color: #d1d5db;
}

.quiz {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quiz-question {
  background: radial-gradient(
      circle at top left,
      rgba(96, 165, 250, 0.1),
      transparent 65%
    ),
    #020617;
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.quiz-question h3 {
  font-size: 1.02rem;
  margin-bottom: 0.8rem;
}

.quiz-question label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.quiz-question input[type="radio"] {
  margin-right: 0.4rem;
}

.quiz-result {
  margin-top: 1.5rem;
  min-height: 2rem;
  font-weight: 600;
  font-size: 1rem;
}

.quiz-correct {
  outline: 2px solid #22c55e;
}

.quiz-incorrect {
  outline: 2px solid #ef4444;
}

footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.9rem 0;
  background: #020617;
  font-size: 0.9rem;
  color: #9ca3af;
  text-align: center;
}

footer span.accent {
  color: #f472b6;
}

@media (max-width: 900px) {
  .hero {
    padding: 2.2rem 1.6rem 2.4rem;
  }

  .hero-preview {
    position: static;
    margin-top: 1.8rem;
    width: 180px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .hero {
    padding: 2rem 1.2rem 2.3rem;
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  .hero-preview {
    width: 160px;
  }
}
