:root {
  --ink: #f4f7fb;
  --muted: #95a4b7;
  --page: #080d12;
  --surface: #0e151d;
  --surface-2: #141e29;
  --line: rgba(154, 177, 201, .14);
  --cyan: #36c6f4;
  --yellow: #ffd52a;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 5%, rgba(54, 198, 244, .09), transparent 24rem),
    radial-gradient(circle at 94% 18%, rgba(255, 213, 42, .06), transparent 26rem),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
p, li { color: #bdc7d3; font-size: 16px; line-height: 1.75; }

body > header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 18, .82);
  backdrop-filter: blur(18px);
}

.header {
  display: flex;
  min-height: 68px;
  max-width: 1180px;
  margin: auto;
  padding: 10px 20px;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.04em;
}

.logo span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: skew(-8deg);
  border-radius: 9px;
  background: var(--yellow);
  color: #101419;
  font-size: 22px;
  font-style: normal;
  box-shadow: 0 0 22px rgba(255, 213, 42, .16);
}

body > header nav { display: flex; gap: 4px; }

body > header nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: color .2s, background .2s;
}

body > header nav a:hover,
body > header nav a:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
}

.search {
  display: flex;
  width: min(310px, 30vw);
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.search:focus-within { border-color: rgba(54, 198, 244, .62); }

.search input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.search button {
  margin: 4px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: #061017;
  font-weight: 800;
  cursor: pointer;
}

.container {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px 40px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 520px;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 55px;
  padding: 70px 0 62px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  top: 15%;
  right: -22%;
  width: 620px;
  height: 330px;
  border-radius: 50%;
  background: rgba(54, 198, 244, .08);
  filter: blur(90px);
  content: "";
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--cyan);
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #aebbc9;
  font-size: 18px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 26px 0;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s, border-color .2s, background .2s;
}

.btn-primary {
  background: var(--cyan);
  color: #061017;
  box-shadow: 0 10px 30px rgba(54, 198, 244, .17);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-primary:hover,
.btn-secondary:hover { transform: translateY(-2px); }
.btn-secondary:hover { border-color: rgba(54, 198, 244, .4); }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
}

.trust-list li::before {
  position: absolute;
  top: .65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 370px;
  place-items: center;
}

.hero-art img {
  position: absolute;
  width: 190px;
  aspect-ratio: 2 / 3;
  border: 6px solid #111a23;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 26px 50px rgba(0, 0, 0, .46);
}

.hero-art img:nth-child(1) { z-index: 3; transform: rotate(-2deg); }
.hero-art img:nth-child(2) { transform: translateX(-130px) rotate(-10deg) scale(.85); opacity: .82; }
.hero-art img:nth-child(3) { transform: translateX(130px) rotate(10deg) scale(.85); opacity: .82; }

.section-title {
  display: flex;
  margin: 58px 0 20px;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  letter-spacing: -.035em;
}

.section-title::before {
  width: 4px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(var(--cyan), var(--yellow));
  content: "";
}

h1.section-title { font-size: 32px; }

.manga-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.manga-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}

.manga-card:hover {
  transform: translateY(-5px);
  border-color: rgba(54, 198, 244, .42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}

.manga-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform .35s;
}

.manga-card:hover img { transform: scale(1.025); }

.manga-info {
  min-height: 84px;
  padding: 13px;
  color: var(--muted);
  font-size: 12px;
}

.manga-info strong {
  display: -webkit-box;
  margin-bottom: 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-image {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 26px auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  object-fit: cover;
  object-position: top;
}

.content-pillar,
main > table,
main > ul,
main > h3,
main > h3 + p,
main > .section-title:not(#latest):not(#manga-list) {
  max-width: 900px;
}

.content-pillar {
  margin-top: 28px;
  padding: 1px 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 21, 29, .7);
}

.content-pillar .section-title { margin-top: 28px; }

table {
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border-collapse: separate;
  border: 1px solid var(--line);
  border-spacing: 0;
  border-radius: 14px;
  color: #c4cfda;
  font-size: 14px;
}

th {
  padding: 13px 15px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
}

td { padding: 12px 15px; border-top: 1px solid var(--line); }
tr:nth-child(even) td { background: rgba(20, 30, 41, .5); }

footer {
  margin-top: 45px;
  padding: 30px 20px;
  border-top: 1px solid var(--line);
  background: #060a0e;
  text-align: center;
}

footer p { margin: 3px; color: #718094; font-size: 12px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
}

.footer-brand span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  transform: skew(-8deg);
  border-radius: 7px;
  background: var(--yellow);
  color: #101419;
  font-style: normal;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}

.footer-links a { color: #9aa8b9; font-size: 12px; }
.footer-links a:hover { color: var(--cyan); background: transparent; }

.header-action {
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.legal-wrap {
  width: min(100% - 28px, 940px);
  margin: auto;
  padding-bottom: 60px;
}

.legal-hero {
  padding: 72px 0 38px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -.06em;
}

.legal-hero > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.legal-content {
  padding: 38px 0;
}

.legal-content h2 {
  margin: 38px 0 10px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -.025em;
}

.legal-content p,
.legal-content li { max-width: 820px; }

.legal-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  body > header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-art { min-height: 330px; }
  .manga-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .header { min-height: 60px; padding: 8px 14px; }
  .logo { font-size: 14px; }
  .logo span { width: 30px; height: 30px; }
  .search { width: min(58vw, 250px); }
  .search button { display: none; }
  .container { padding: 0 14px 32px; }
  .hero { min-height: auto; padding: 52px 0 44px; }
  .hero h1 { font-size: clamp(40px, 14vw, 58px); }
  .hero-lead { font-size: 16px; }
  .hero-art { min-height: 270px; transform: scale(.78); margin: -18px 0; }
  .cta-group { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
  .trust-list { gap: 10px 16px; }
  .section-title { margin-top: 42px; font-size: 23px; }
  .manga-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .manga-card { border-radius: 13px; }
  .content-pillar { padding: 1px 17px 14px; }
  p, li { font-size: 15px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
