:root {
  color-scheme: dark;
  --bg: #070a08;
  --panel: #101412;
  --panel-2: #151917;
  --line: #2b312e;
  --text: #f4f7f5;
  --muted: #a9b4ad;
  --soft: #d9e1dc;
  --green: #10c987;
  --green-strong: #05f29b;
  --blue: #74b9ff;
  --amber: #f6c453;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Segoe UI",
    "Pretendard",
    "Apple SD Gothic Neo",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

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

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 8, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  border: 1px solid rgba(78, 255, 182, 0.24);
  background: #020504;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(5, 242, 155, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 24px);
  color: var(--soft);
  font-size: 14px;
}

nav a {
  padding: 8px 0;
}

nav a:hover {
  color: var(--green-strong);
}

.inline-link {
  color: var(--green-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 102px clamp(16px, 4vw, 56px) 32px;
  background:
    linear-gradient(90deg, rgba(7, 10, 8, 0.96) 0%, rgba(7, 10, 8, 0.78) 44%, rgba(7, 10, 8, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 10, 8, 0.82) 0%, rgba(7, 10, 8, 0) 34%),
    url("./minestart-dashboard.png") center right / cover no-repeat;
}

.hero-overlay {
  width: min(880px, 100%);
}

.release-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(650px, 100%);
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid rgba(16, 201, 135, 0.46);
  border-radius: 8px;
  background: rgba(7, 10, 8, 0.78);
  backdrop-filter: blur(14px);
}

.release-banner span,
.release-banner small {
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 800;
}

.release-banner strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.release-banner:hover,
.release-banner:focus-visible {
  border-color: var(--green-strong);
  background: rgba(16, 201, 135, 0.12);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 690px;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-copy-break {
  display: block;
}

.section,
.download-list,
.step-lane,
.core-bands,
.history-layout,
.security-layout {
  width: min(1180px, calc(100vw - 32px));
}

.hero-actions,
.trust-strip {
  width: min(1180px, calc(100vw - clamp(32px, 8vw, 112px)));
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button.primary {
  border-color: transparent;
  background: var(--green);
  color: #001b12;
}

.button.primary:hover {
  background: var(--green-strong);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--green);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.trust-strip span {
  padding: 18px;
  background: rgba(9, 14, 12, 0.78);
  color: var(--soft);
  font-weight: 800;
}

.section {
  margin: 0 auto;
  padding: 74px 0;
  scroll-margin-top: 112px;
}

.cockpit {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: center;
}

.section-copy p {
  font-size: 17px;
}

.preview-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.preview-frame img {
  width: 100%;
  height: auto;
}

.management-tabs {
  width: 100%;
  margin-top: 28px;
}

.tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-buttons label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(16, 201, 135, 0.26);
  border-radius: 8px;
  background: rgba(16, 201, 135, 0.08);
  color: #d9ffe8;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.tab-buttons label:hover,
#panel-properties:checked ~ .tab-buttons label[for="panel-properties"],
#panel-logs:checked ~ .tab-buttons label[for="panel-logs"],
#panel-plugins:checked ~ .tab-buttons label[for="panel-plugins"],
#panel-worlds:checked ~ .tab-buttons label[for="panel-worlds"],
#panel-players:checked ~ .tab-buttons label[for="panel-players"],
#panel-network:checked ~ .tab-buttons label[for="panel-network"],
#panel-mods:checked ~ .tab-buttons label[for="panel-mods"] {
  border-color: var(--green);
  background: rgba(16, 201, 135, 0.22);
  color: #ffffff;
}

.mock-panels {
  margin-top: 14px;
}

.preview-panel {
  display: none;
  min-height: 238px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(16, 201, 135, 0.12), rgba(21, 25, 23, 0.92) 48%),
    var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}

#panel-properties:checked ~ .mock-panels .properties-preview,
#panel-logs:checked ~ .mock-panels .logs-preview,
#panel-plugins:checked ~ .mock-panels .plugins-preview,
#panel-worlds:checked ~ .mock-panels .worlds-preview,
#panel-players:checked ~ .mock-panels .players-preview,
#panel-network:checked ~ .mock-panels .network-preview,
#panel-mods:checked ~ .mock-panels .mods-preview {
  display: block;
}

.tab-panels {
  display: none;
}

.preview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-title span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.preview-title strong {
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #050706;
  color: #d9ffe8;
  padding: 8px 10px;
  font-size: 12px;
}

.property-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8px;
}

.property-grid span,
.property-grid b,
.player-row,
.file-list li,
.world-card,
.address-box {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.46);
}

.property-grid span,
.property-grid b {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.property-grid span {
  color: var(--muted);
}

.property-grid b {
  color: #ffffff;
}

.preview-panel pre {
  min-height: 154px;
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  background: #020403;
  color: #c7f8df;
  padding: 14px;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list li,
.player-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
}

.file-list b,
.player-row b {
  color: var(--green);
  font-size: 12px;
}

.world-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.world-card span,
.world-card small,
.network-preview p {
  color: var(--muted);
}

.address-box {
  margin-bottom: 12px;
  color: #c7f8df;
  padding: 18px;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 22px;
  font-weight: 900;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.step-lane,
.core-bands,
.security-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.security-layout .hash-card {
  grid-column: 1 / -1;
}

.step-lane article,
.core-bands article,
.security-layout article,
.download-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.step-lane article,
.core-bands article,
.security-layout article {
  padding: 22px;
}

.step-lane {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-lane article {
  min-height: 212px;
  display: flex;
  flex-direction: column;
}

.step-lane span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--green);
  color: #001b12;
  font-weight: 900;
}

.step-lane p {
  margin-bottom: 0;
}

.step-lane article:nth-child(2n),
.core-bands article:nth-child(2n) {
  background: var(--panel-2);
}

.core-bands {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.core-bands article {
  border-top: 3px solid var(--green);
}

.core-bands article:nth-child(2) {
  border-top-color: var(--blue);
}

.core-bands article:nth-child(3) {
  border-top-color: var(--amber);
}

.core-bands article:nth-child(4) {
  border-top-color: #ff7f87;
}

.update-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.update-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.update-grid article:nth-child(2n) {
  background: var(--panel-2);
}

.update-number {
  display: block;
  margin-bottom: 32px;
  color: var(--green-strong);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.update-grid p {
  margin-bottom: 0;
}

.release-status,
.download-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 17px 18px;
  border: 1px solid rgba(116, 185, 255, 0.38);
  border-radius: 8px;
  background: rgba(116, 185, 255, 0.08);
}

.release-status > span {
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(116, 185, 255, 0.18);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.release-status strong,
.download-notice strong {
  display: block;
  color: var(--text);
}

.release-status p {
  margin: 4px 0 0;
}

.download-notice {
  flex-direction: column;
  gap: 4px;
  border-color: rgba(246, 196, 83, 0.38);
  background: rgba(246, 196, 83, 0.07);
}

.download-notice span {
  color: var(--muted);
  line-height: 1.65;
}

.update-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(16, 201, 135, 0.4);
  border-radius: 8px;
  background: rgba(16, 201, 135, 0.08);
}

.update-actions span {
  color: var(--soft);
  font-weight: 800;
}

.download {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.download-list {
  display: grid;
  gap: 14px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.download-card.recommended {
  border-color: rgba(16, 201, 135, 0.5);
  background: linear-gradient(90deg, rgba(16, 201, 135, 0.14), rgba(21, 25, 23, 1));
}

.history-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.copyright-card,
.version-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.copyright-card {
  background:
    linear-gradient(160deg, rgba(16, 201, 135, 0.14), rgba(16, 20, 18, 0.96) 52%),
    var(--panel);
}

.copyright-card p,
.version-card li {
  color: var(--muted);
  line-height: 1.7;
}

.version-card.current-version {
  border-color: rgba(16, 201, 135, 0.52);
  background: var(--panel-2);
}

.version-card.announced-version {
  grid-column: 1 / -1;
  border-color: rgba(116, 185, 255, 0.48);
  background:
    linear-gradient(150deg, rgba(116, 185, 255, 0.11), rgba(16, 20, 18, 0.98) 58%),
    var(--panel);
}

.announced-version .version-head span,
.announced-version .release-date {
  color: var(--blue);
}

.version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.version-head span,
.release-date {
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 800;
}

.version-head strong {
  border-radius: 8px;
  background: #050706;
  color: #d9ffe8;
  padding: 8px 10px;
  font-family: Consolas, "Cascadia Mono", monospace;
}

.version-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 20px;
}

.version-card li::marker {
  color: var(--green);
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(116, 185, 255, 0.16);
  color: var(--blue);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

code {
  grid-column: 1 / -1;
  display: block;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #050706;
  color: #c7f8df;
  padding: 12px;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.security-layout ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.security-layout li::marker {
  color: var(--amber);
}

.hash-card p {
  color: var(--muted);
}

.hash-card dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.hash-card dt {
  color: var(--text);
  font-weight: 800;
}

.hash-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #050706;
  color: #c7f8df;
  padding: 10px 12px;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(16px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.policy-page {
  padding-top: 74px;
}

.policy-hero {
  padding-bottom: 34px;
}

.policy-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
}

.policy-hero p {
  max-width: 920px;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.policy-date {
  color: var(--green-strong);
  font-weight: 800;
}

.policy-layout {
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.policy-card {
  padding: 24px;
}

.policy-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.policy-card p,
.policy-card ul {
  color: var(--muted);
  line-height: 1.8;
}

.policy-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.policy-card li::marker {
  color: var(--green);
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 84vh;
    padding-top: 54px;
    background:
      linear-gradient(0deg, rgba(7, 10, 8, 0.96) 0%, rgba(7, 10, 8, 0.78) 58%, rgba(7, 10, 8, 0.58) 100%),
      url("./minestart-dashboard.png") center top / cover no-repeat;
  }

  .trust-strip,
  .cockpit,
  .step-lane,
  .core-bands,
  .update-grid,
  .history-layout,
  .security-layout,
  .download-card,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .download-card .button {
    width: 100%;
  }

  .update-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .update-actions .button {
    width: 100%;
  }

  .version-card.announced-version {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .release-banner {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .release-status {
    flex-direction: column;
  }
}
