.ww-container {
  width: min(1100px, 92%);
  margin: 0 auto 48px;
}

.ww-hero {
  position: relative;
  margin-top: 10px;
  padding: 36px 18px;
  text-align: center;

  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(6, 182, 212, 0.12), transparent 60%),
    radial-gradient(1200px 800px at 110% 10%, rgba(79, 70, 229, 0.12), transparent 60%),
    radial-gradient(1200px 800px at 50% 100%, rgba(244, 114, 182, 0.12), transparent 60%),
    #f7f8fb;

  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.ww-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.ww-brand-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 14px;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.10);

  display: grid;
  place-items: center;
}

.ww-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ww-hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: #0b1020;
  letter-spacing: 0.2px;
}

.ww-tagline {
  margin: 8px auto 18px;
  color: #475569;
  font-size: 1.05rem;
  max-width: 720px;
}

.ww-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px auto 8px;
  max-width: 720px;
}

.ww-input-wrap {
  position: relative;
}

.ww-form input[type="url"],
.ww-form input[name="url"] {
  width: 100%;
  padding: 14px 14px;
  font-size: 1rem;
  color: #0b1020;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;

  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease, background 0.2s ease;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.06);
}

.ww-form input[type="url"]::placeholder,
.ww-form input[name="url"]::placeholder {
  color: rgba(71, 85, 105, 0.8);
}

.ww-form input[type="url"]:focus,
.ww-form input[name="url"]:focus {
  border-color: #6b7cff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
  transform: translateY(-1px);
}

.ww-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 12px;

  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;

  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.25);
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.ww-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.ww-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.ww-micro {
  margin-top: 6px;
  color: #475569;
  font-size: 0.95rem;
}

.ww-summary {
  margin: 22px 0 12px;
  padding: 16px 18px;
}

.ww-summary h2 {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  color: #0b1020;
}

.dim {
  color: #475569;
  font-size: 0.95rem;
}

.ww-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 16px;
}

.card-glass {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.ww-card {
  padding: 14px;
  position: relative;
  z-index: 0;
  overflow: visible;
}

.ww-card:hover {
  z-index: 10;
}

.ww-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.ww-badge {
  font-size: 0.78rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.ww-badge.green {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.ww-badge.amber {
  background: #fffbeb;
  color: #92400e;
  border-color: #f59e0b;
}

.ww-badge.red {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.ww-badge.grey {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.ww-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.ww-value {
  font-weight: 700;
  line-height: 1.3;
  color: #0b1020;
}

.ww-explain .help {
  font-size: 0.85rem;
  text-decoration: underline dotted;
  color: #475569;
  cursor: help;
}

.ww-explain[data-tooltip] {
  position: relative;
  z-index: 9999;
}

.ww-explain[data-tooltip]::after {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ww-explain[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: auto;
  bottom: 120%;
  width: min(320px, 72vw);

  background: #111827;
  color: #ffffff;

  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.22);

  z-index: 10000;
  transform: translateY(-4px);
  opacity: 1;
}

.ww-raw summary {
    cursor: pointer;
    color: inherit;
    font-weight: 700;
    list-style: none;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 12px;

    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);

    transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.ww-raw summary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
}

.ww-raw summary:active {
    transform: translateY(0);
    filter: brightness(0.99);
}

.ww-raw summary::-webkit-details-marker {
    display: none;
}

.ww-raw summary::after {
    content: "▾";
    font-weight: 900;
    opacity: 0.75;
    transition: transform 0.15s ease;
}

.ww-raw[open] summary::after {
    transform: rotate(180deg);
}

.ww-raw pre {
  background: #0d1117;
  color: #c9d1d9;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
  margin-top: 10px;
}

.ww-features {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 18px 0 8px;
}

.ww-feature {
  padding: 16px;
  text-align: left;
}

.ww-feature i {
  font-size: 20px;
  margin-bottom: 8px;
  display: inline-block;
  color: #0b1020;
}

.ww-feature h3 {
  margin: 4px 0 6px;
  color: #0b1020;
  font-size: 1.05rem;
}

.ww-feature p {
  color: #475569;
}

.ww-charts {
  margin: 18px 0 8px;
}

.ww-charts-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #0b1020;
}

.ww-charts-tagline {
  margin: 0 0 12px;
  color: #475569;
}

.ww-charts-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.ww-chart-card {
  padding: 12px;
  position: relative;
  height: 160px !important;
  max-height: 160px !important;
  overflow: hidden;
}

.ww-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ww-site {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #0b1020;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.10), 0 0 12px currentColor;
}

.status-dot.ok {
  background: #16a34a;
  color: #16a34a;
}

.status-dot.bad {
  background: #ef4444;
  color: #ef4444;
}

.ww-status-label {
  font-weight: 700;
  font-size: 0.85rem;
}

.ww-status-label.ok {
  color: #166534;
}

.ww-status-label.bad {
  color: #991b1b;
}

.ww-chart-card canvas {
  display: block;
  width: 100% !important;
  height: 100px !important;
  max-height: 100px !important;
  object-fit: contain;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .ww-form {
    grid-template-columns: 1fr;
  }

  .ww-btn {
    width: 100%;
  }
}

.icon-btn { color: #0b1020; }           /* light mode */
@media (prefers-color-scheme: dark) {
  .icon-btn { color: #e6e8ef; }         /* dark mode */
}

@media (prefers-color-scheme: dark) {
  .ww-hero {
    background:
      radial-gradient(1200px 800px at 10% -10%, rgba(6, 182, 212, 0.18), transparent 60%),
      radial-gradient(1200px 800px at 110% 10%, rgba(79, 70, 229, 0.20), transparent 60%),
      radial-gradient(1200px 800px at 50% 100%, rgba(244, 114, 182, 0.20), transparent 60%),
      #0b1020;

    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  }

  .ww-brand-mark {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  }

  .ww-hero h1 {
    color: #e6e8ef;
  }

  .ww-tagline,
  .ww-micro,
  .ww-feature p,
  .dim {
    color: #b8bdc9;
  }

  .card-glass {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }

  .ww-form input[type="url"],
  .ww-form input[name="url"] {
    color: #e6e8ef;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .ww-form input[type="url"]::placeholder,
  .ww-form input[name="url"]::placeholder {
    color: rgba(230, 232, 239, 0.7);
  }

  .ww-summary h2,
  .ww-feature h3,
  .ww-raw summary,
  .ww-value,
  .ww-feature i,
  .ww-charts-title,
  .ww-site {
    color: #e6e8ef;
  }

  .ww-explain .help {
    color: #b8bdc9;
  }

  .ww-explain[data-tooltip]:hover::after {
    background: #0b1020;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  }

  .ww-badge {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  }

  .ww-badge.green {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.38);
  }

  .ww-badge.amber {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.42);
  }

  .ww-badge.red {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.42);
  }

  .ww-badge.grey {
    background: rgba(148, 163, 184, 0.14);
    color: rgba(226, 232, 240, 0.92);
    border-color: rgba(148, 163, 184, 0.28);
  }
}
