:root {
  color-scheme: dark;
  --bg: #080914;
  --bg-soft: #101224;
  --panel: rgba(20, 23, 43, 0.78);
  --panel-solid: #171a2d;
  --text: #f6f7fb;
  --muted: #a8aec7;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff4f8b;
  --accent-2: #7c5cff;
  --accent-3: #37d7ff;
  --danger: #ff6d72;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 4%, rgba(255, 79, 139, 0.24), transparent 28rem),
    radial-gradient(circle at 8% 18%, rgba(124, 92, 255, 0.24), transparent 24rem),
    linear-gradient(180deg, #0b0d1a 0%, #080914 42%, #070811 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 12, 26, 0.76);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px);
}

.brand,
.main-nav,
.header-actions,
.hero-actions,
.hero-stats,
.title-strip,
.section-heading,
.meta,
.invite-section,
.site-footer,
.auth-tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(255, 79, 139, 0.32);
}

.main-nav {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  gap: 12px;
}

.domain {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ghost-button,
.secondary-button,
.link-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.ghost-button,
.primary-button,
.secondary-button,
.link-button,
.showcase-card button {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
}

.primary-button,
.showcase-card button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 45px rgba(124, 92, 255, 0.28);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 78px 0 38px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats strong {
  color: var(--text);
}

.hero-showcase {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.hero-showcase::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 18%, rgba(8, 9, 20, 0.18) 45%, rgba(8, 9, 20, 0.94) 100%);
}

.hero-showcase > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  transform: scale(1.02);
}

.showcase-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 17, 34, 0.78);
  backdrop-filter: blur(18px);
}

.showcase-card h2 {
  margin: 14px 0 8px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.showcase-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.live-pill,
.tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-pill {
  padding: 8px 11px;
  background: rgba(255, 79, 139, 0.24);
}

.tag {
  padding: 6px 9px;
  background: rgba(124, 92, 255, 0.32);
}

.title-strip {
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.title-strip a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.title-strip a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.content-section,
.split-section,
.invite-section {
  margin-top: 72px;
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.club-panel h2,
.invite-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.link-button {
  white-space: nowrap;
}

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

.anime-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.featured-card {
  grid-column: span 1;
}

.anime-card img {
  display: block;
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.card-body p,
.club-panel p,
.invite-section p,
.feature-grid p,
.site-footer p,
.auth-lead {
  color: var(--muted);
  line-height: 1.65;
}

.card-body p {
  min-height: 78px;
  margin: 0 0 14px;
  font-size: 14px;
}

.meta {
  flex-wrap: wrap;
  gap: 8px;
}

.meta span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 20px;
}

.club-panel,
.schedule-list,
.feature-grid article,
.invite-section,
.auth-dialog {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.club-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.club-panel p {
  margin: 18px 0 24px;
}

.schedule-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-xl);
}

.schedule-list div {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.schedule-list time {
  color: var(--accent-3);
  font-weight: 900;
}

.schedule-list span {
  font-weight: 800;
}

.schedule-list small {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feature-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.feature-grid h3 {
  margin: 28px 0 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.feature-grid p {
  margin: 0;
}

.invite-section {
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.16), rgba(124, 92, 255, 0.11)),
    var(--panel);
}

.invite-section p {
  margin: 14px 0 0;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 64px auto 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
}

.auth-modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 12, 0.76);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 28px;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.auth-tabs {
  gap: 6px;
  width: fit-content;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.auth-tabs button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.auth-dialog h2 {
  margin: 24px 0 8px;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.auth-lead {
  margin: 0 0 18px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.055);
}

.auth-form input:focus {
  border-color: rgba(55, 215, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(55, 215, 255, 0.1);
}

.auth-error {
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(255, 109, 114, 0.38);
  border-radius: 16px;
  color: #ffd7d9;
  background: rgba(255, 109, 114, 0.13);
  font-size: 14px;
  line-height: 1.5;
}

.auth-error.is-visible {
  display: block;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: stretch;
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-showcase,
  .hero-showcase > img {
    min-height: 520px;
  }

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

@media (max-width: 680px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    margin-top: 10px;
  }

  .domain {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-showcase,
  .hero-showcase > img {
    min-height: 460px;
  }

  .anime-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .invite-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer p {
    text-align: left;
  }
}
