:root {
  --bg: #f6f9fc;
  --bg-soft: #ffffff;
  --text: #132238;
  --muted: #58708a;
  --brand: #0e6ba8;
  --brand-2: #13a4a4;
  --accent: #ff9f1c;
  --line: #dbe6f1;
  --shadow: 0 10px 30px rgba(18, 41, 64, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #eef8ff 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, #fff5e8 0%, transparent 35%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-2);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
}

.action-bar {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.25rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.92rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1.12rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 117, 170, 0.25);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2.4rem 0;
}

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 1.6rem;
  animation: rise 0.7s ease both;
}

.hero-copy h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.2;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin-top: 0;
}

.hero-copy p {
  color: var(--muted);
}

.hero-copy h2 {
  margin: 1.1rem 0 0.55rem;
  font-size: 1.15rem;
}

.hero-copy ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.hero-copy li {
  margin-bottom: 0.55rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.badge {
  background: #f2f9ff;
  color: #24506e;
  border: 1px solid #cce5f8;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
}

.hero-card {
  padding: 1rem;
  align-self: start;
  animation: rise 0.9s ease both;
}

.hero-card img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  border-radius: 14px;
}

main section {
  margin: 1.4rem 0;
}

.card {
  padding: 1.2rem;
}

h2,
h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.3;
}

.toc {
  column-count: 2;
  column-gap: 1.5rem;
  margin: 0;
  padding-left: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.7rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.7rem;
  text-align: left;
  overflow-wrap: break-word;
  vertical-align: top;
}

th {
  background: #f1f8ff;
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

.small-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  background: #fff;
  padding: 0.9rem 1rem;
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.2rem;
}

.star {
  color: #b8c4d1;
  cursor: pointer;
}

.star.active {
  color: #ffb21c;
}

.age-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 0.65rem 0;
  text-align: center;
  font-size: 0.88rem;
  border-bottom: 2px solid #e94560;
}

.age-banner p {
  margin: 0;
}

.age-banner a {
  color: #ffd369;
  text-decoration: underline;
  font-weight: 600;
}

.age-banner a:hover {
  color: #fff;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand-2);
}

footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.notice {
  border-left: 4px solid var(--accent);
  background: #fff7eb;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .toc {
    column-count: 1;
  }

  .btn {
    min-width: 130px;
    font-size: 1rem;
    padding: 0.8rem 1.1rem;
  }
}

@media (min-width: 1200px) {
  .container {
    width: min(1280px, 90vw);
  }

  .hero {
    grid-template-columns: minmax(520px, 1.08fr) minmax(420px, 0.92fr);
    gap: 2rem;
  }

  .hero-copy {
    padding: 2rem;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.65rem 0;
  }

  .nav-links.show {
    display: flex;
  }

  .action-bar {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
