:root {
  --bg: #101312;
  --bg-soft: #171b19;
  --panel: #1d231f;
  --panel-2: #222a25;
  --line: #334039;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f0e7;
  --muted: #a9b0a7;
  --faint: #737c73;
  --amber: #e5a23a;
  --amber-strong: #f0b44b;
  --mint: #73d69a;
  --danger: #d96f54;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(229, 162, 58, 0.12), transparent 30%),
    linear-gradient(180deg, #0f1211 0%, #121713 46%, #0e1110 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(16, 19, 18, 0.86);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(229, 162, 58, 0.45);
  border-radius: 8px;
  background: #231d13;
  color: var(--amber-strong);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.header-action,
.primary-action,
.secondary-action,
.email-form button,
.icon-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.header-action,
.primary-action,
.email-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: var(--amber);
  color: #1b1308;
  font-weight: 800;
  font-size: 14px;
}

.secondary-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 750;
  font-size: 14px;
}

.primary-action:hover,
.header-action:hover,
.email-form button:hover,
.secondary-action:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

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

.tool-intro {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.tool-intro h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.tool-intro p {
  margin: 16px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.hero-visual {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #161a17;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 19, 18, 0.24), transparent 45%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  padding: 32px 0 38px;
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34, 42, 37, 0.94), rgba(25, 30, 27, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.raid-panel {
  padding: 24px;
}

.upkeep-panel {
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel h2,
.section-head h2,
.content-columns h2,
.updates h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.panel p,
.section-head p,
.content-columns p,
.updates p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.input-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px minmax(220px, 1fr);
  gap: 12px;
}

.input-grid.single {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111614;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(229, 162, 58, 0.76);
  box-shadow: 0 0 0 3px rgba(229, 162, 58, 0.12);
}

.add-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 18px;
}

.compact {
  min-height: 38px;
}

.fineprint {
  color: var(--faint);
  font-size: 13px;
}

.raid-list {
  display: grid;
  gap: 10px;
  min-height: 56px;
}

.raid-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.raid-row strong {
  font-size: 14px;
}

.raid-row span {
  color: var(--muted);
  font-size: 13px;
}

.remove-row {
  border: 1px solid rgba(217, 111, 84, 0.35);
  border-radius: 8px;
  background: rgba(217, 111, 84, 0.08);
  color: #ffd0c4;
  cursor: pointer;
  padding: 8px 10px;
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.result-strip div,
.upkeep-results div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #121715;
  padding: 14px;
}

.metric-label,
.upkeep-results span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-strip strong,
.upkeep-results strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  color: var(--mint);
  line-height: 1;
}

.upkeep-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.guide-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  padding: 44px 0;
  border-top: 1px solid var(--line-soft);
}

.guide-list {
  display: grid;
  gap: 12px;
}

.compact-list {
  margin-top: 14px;
}

.guide-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.guide-item > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #241a0f;
  color: var(--amber-strong);
  font-weight: 900;
}

.guide-item h3,
.cta-box h3 {
  margin: 0;
  font-size: 18px;
}

.guide-item p,
.cta-box p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.content-columns article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 20px;
}

table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

th {
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--mint);
}

.cta-box {
  margin-top: 18px;
  border: 1px solid rgba(229, 162, 58, 0.35);
  border-radius: 8px;
  background: rgba(229, 162, 58, 0.08);
  padding: 14px;
}

.cta-box .monetization-link {
  margin-top: 14px;
}

.monetization-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 4px 0 34px;
  padding: 24px;
  border: 1px solid rgba(229, 162, 58, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(229, 162, 58, 0.13), rgba(115, 214, 154, 0.06)),
    var(--bg-soft);
}

.monetization-band h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.monetization-band p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.lab-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 0 38px;
  padding: 24px;
  border: 1px solid rgba(115, 214, 154, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(115, 214, 154, 0.1), rgba(229, 162, 58, 0.07)),
    var(--bg-soft);
}

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.updates {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.72fr);
  gap: 24px;
  align-items: end;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line-soft);
}

.email-form {
  display: grid;
  gap: 10px;
}

.email-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 12px;
}

.footer p {
  margin: 0;
}

.article-main {
  width: min(920px, calc(100% - 32px));
  padding: 34px 0 54px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.article-hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34, 42, 37, 0.94), rgba(25, 30, 27, 0.96));
  box-shadow: var(--shadow);
}

.article-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.article-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.article-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 22px;
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.article-card h3 {
  margin: 20px 0 8px;
  font-size: 18px;
}

.article-card p,
.article-card li {
  color: var(--muted);
  line-height: 1.65;
}

.article-card p {
  margin: 0 0 12px;
}

.article-card ul,
.article-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34, 42, 37, 0.94), rgba(25, 30, 27, 0.96));
  box-shadow: var(--shadow);
}

.premium-hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.premium-hero p {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.price-panel {
  display: grid;
  align-content: center;
  min-height: 210px;
  border: 1px solid rgba(229, 162, 58, 0.35);
  border-radius: 8px;
  background: rgba(229, 162, 58, 0.08);
  padding: 22px;
}

.price-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--amber-strong);
  font-size: 58px;
  line-height: 1;
}

.price-panel p,
.status-note {
  color: var(--muted);
  line-height: 1.55;
}

.premium-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.premium-form button {
  width: fit-content;
}

.source-list a {
  color: var(--amber-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-list {
  font-size: 14px;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .hero,
  .tool-grid,
  .guide-band,
  .content-columns,
  .updates,
  .premium-hero,
  .monetization-band,
  .lab-band {
    grid-template-columns: 1fr;
  }

  .lab-actions {
    justify-content: stretch;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual {
    aspect-ratio: 16 / 10;
  }

  .input-grid,
  .result-strip {
    grid-template-columns: 1fr;
  }

  .raid-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    padding: 14px 12px;
  }

  .header-action {
    width: 100%;
  }

  .tool-grid {
    padding-top: 18px;
  }

  .tool-intro h1 {
    font-size: 34px;
  }

  .add-row,
  .email-form div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action,
  .email-form button {
    width: 100%;
  }

  .premium-form button {
    width: 100%;
  }

  .price-panel {
    min-height: auto;
  }
}
