/* =============================================================================
   Mizuki Domains — Stylesheet
   Original design inspired by modern minimal dark "domain directory" layouts.
   No external fonts or libraries: system font stack, zero network requests.
   ========================================================================== */

/* ---- Design tokens -------------------------------------------------------- */
:root {
  --bg: #080808;
  --bg-elev: rgba(255, 255, 255, 0.04);
  --bg-elev-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.45);
  --text-4: rgba(255, 255, 255, 0.32);

  --green: #86efac;
  --green-strong: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.08);
  --green-badge-bg: #bbf7d0;
  --green-badge-fg: #14532d;

  --gold: #fcd34d;
  --gold-badge-bg: #fde68a;
  --gold-badge-fg: #78350f;

  --movies: #c4b5fd;
  --movies-badge-bg: #ddd6fe;
  --movies-badge-fg: #4c1d95;

  --red: #fca5a5;
  --red-bg: rgba(239, 68, 68, 0.08);

  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container: 760px;
  --container-wide: 1040px;

  --pad-x: 24px;
  --section-y: 112px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* ---- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* Subtle dotted texture */
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.07) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  background-position: 0 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Visually-hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(134, 239, 172, 0.28);
  color: #fff;
}

/* ---- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--section-y);
}

/* Eyebrow (small uppercase label) */
.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.98px;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-lead {
  margin: 14px 0 0;
  color: var(--text-2);
  max-width: 60ch;
}

/* ---- Skip link (accessibility) ------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--green-badge-bg);
  color: var(--green-badge-fg);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  padding-top: 72px;
  padding-bottom: 40px;
  text-align: center;
}

.hero__logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 20px;
  object-fit: contain;
}
.hero__logo--fallback {
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  color: var(--green);
  background: linear-gradient(135deg, #15151a, #0a0a0c);
  border: 1px solid var(--border);
}

.hero__title {
  margin: 0;
  font-size: clamp(38px, 8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 0%, #d7d7db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}

.hero__subtitle {
  margin: 20px auto 0;
  max-width: 46ch;
  font-size: clamp(16px, 2.4vw, 18px);
  color: var(--text-2);
}

.hero__notice {
  margin: 22px auto 0;
  max-width: 56ch;
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hero__notice strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- Domain cards --------------------------------------------------------- */
.domains {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.domain-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 0.8px solid var(--border);
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
  will-change: transform;
}
.domain-card:hover {
  background: var(--bg-elev-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.domain-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.domain-card--primary {
  border-color: rgba(134, 239, 172, 0.35);
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.08),
    rgba(34, 197, 94, 0.02)
  );
}
.domain-card--primary:hover {
  border-color: rgba(134, 239, 172, 0.6);
}
.domain-card--movies {
  border-color: rgba(196, 181, 253, 0.28);
  background: linear-gradient(
    180deg,
    rgba(139, 92, 246, 0.08),
    rgba(139, 92, 246, 0.02)
  );
}
.domain-card--movies:hover {
  border-color: rgba(196, 181, 253, 0.55);
}

.domain-card__main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.domain-card__url {
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.domain-card__url .scheme {
  color: var(--text-4);
  font-weight: 500;
}

/* Multi-line domain card text (name + description + url) */
.domain-card__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.domain-card__row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}
.domain-card__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.domain-card__desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.4;
}
.domain-card__text .domain-card__url {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-4);
}

.domain-card__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.domain-card:hover .domain-card__icon {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.badge--primary {
  background: var(--green-badge-bg);
  color: var(--green-badge-fg);
}
.badge--alternative {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-2);
}
.badge--partner {
  background: var(--gold-badge-bg);
  color: var(--gold-badge-fg);
  font-size: 12px;
  padding: 2px 7px;
}
.badge--movies {
  background: var(--movies-badge-bg);
  color: var(--movies-badge-fg);
}

/* Sub-section heading inside domains (Alternative / Partner / Status) */
.domain-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.domain-subhead:first-child {
  margin-top: 0;
}
.domain-subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Status card */
.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 0.8px solid var(--border);
  background: var(--bg-elev);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.status-card--operational {
  background: var(--green-bg);
  border-color: rgba(134, 239, 172, 0.3);
}
.status-card--degraded,
.status-card--down {
  background: var(--red-bg);
  border-color: rgba(252, 165, 165, 0.3);
}
.status-card__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.status-card__label {
  font-size: 16px;
  font-weight: 600;
}
.status-card__note {
  font-size: 13px;
  color: var(--text-3);
}
.status-card__note--sm {
  font-size: 12.5px;
}

/* Status dot + ping */
.status-dot {
  position: relative;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-3);
}
.status-dot--operational {
  background: var(--green-strong);
}
.status-dot--degraded {
  background: var(--gold);
}
.status-dot--down {
  background: #ef4444;
}
.status-dot--operational::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-strong);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot--operational::after {
    animation: none;
  }
}

/* ---- Feature pills -------------------------------------------------------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  background: var(--bg-elev);
  border: 0.8px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.pills li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(134, 239, 172, 0.6);
}
.pills li:hover {
  background: var(--bg-elev-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ---- Testimonials --------------------------------------------------------- */
.testimonials {
  position: relative;
}
.testimonials__notice {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}
.testimonials__notice strong {
  color: var(--gold);
  font-weight: 600;
}

.marquee {
  margin-top: 30px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  gap: 16px;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 8px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee__track {
    animation: none;
    width: auto;
  }
  .marquee__group--clone {
    display: none;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 320px;
  padding: 22px;
  background: var(--bg-elev);
  border: 0.8px solid var(--border);
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.testimonial-card:hover {
  background: var(--bg-elev-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.testimonial-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #1f2937, #0b0b0d);
  border: 1px solid var(--border);
}
.testimonial-card__avatar--initial {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.testimonial-card__name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.testimonial-card__user {
  font-size: 12.5px;
  color: var(--text-3);
}
.testimonial-card__demo {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(252, 211, 77, 0.4);
  border-radius: 6px;
  padding: 2px 6px;
}
.testimonial-card__quote {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.testimonial-card__source {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s var(--ease);
}
.testimonial-card__source:hover {
  color: var(--text);
}

/* ---- Community cards ------------------------------------------------------ */
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 30px;
}
@media (min-width: 640px) {
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.community-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 0.8px solid var(--border);
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.community-card:hover {
  background: var(--bg-elev-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.community-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.community-card__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.community-card__icon svg {
  width: 22px;
  height: 22px;
}
.community-card--discord .community-card__icon {
  color: #8b9cff;
}
.community-card--reddit .community-card__icon {
  color: #ff6a33;
}
.community-card__body {
  min-width: 0;
  flex: 1;
}
.community-card__name {
  font-size: 15px;
  font-weight: 600;
}
.community-card__url {
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.community-card__ext {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.community-card:hover .community-card__ext {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* ---- About ---------------------------------------------------------------- */
.about__body {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--text-2);
  font-size: 16.5px;
}

/* ---- Footer --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  margin-top: 20px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.footer__brand {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  font-size: 13.5px;
  color: var(--text-3);
}
.footer__links a {
  transition: color 0.2s var(--ease);
}
.footer__links a:hover {
  color: var(--text);
}
.footer__copy {
  font-size: 12.5px;
  color: var(--text-4);
}

/* ---- Reveal on scroll ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}