:root {
  --bg: #07100c;
  --panel: rgba(8, 25, 17, .86);
  --panel-2: rgba(13, 38, 25, .90);
  --border: rgba(107, 210, 130, .28);
  --text: #f5fbf6;
  --muted: #bed0c3;
  --green: #6edb8c;
  --green-strong: #45c86d;
  --green-dark: #123d25;
  --danger: #ff8c8c;
  --warning: #f6d67a;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(3,12,8,.50), rgba(3,10,7,.78)),
    url("../assets/palworld-background.png") center top / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 10%, rgba(10,30,18,.05), rgba(3,10,7,.46) 72%),
    linear-gradient(90deg, rgba(2,8,5,.18), transparent 30%, transparent 70%, rgba(2,8,5,.18));
}

button, input, select { font: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(115,211,140,.12);
  background: rgba(3, 13, 8, .78);
  backdrop-filter: blur(18px) saturate(120%);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand strong { display: block; font-size: 18px; letter-spacing: .01em; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #06210e;
  box-shadow: 0 0 28px rgba(57,184,102,.18);
}

.pro-link { color: var(--green); text-decoration: none; font-weight: 700; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.hero h1 { margin: 4px 0 10px; font-size: clamp(32px, 5vw, 58px); line-height: 1.02; }
.hero p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .16em; margin: 0; }
.privacy-badge {
  border: 1px solid var(--border);
  background: rgba(16,37,26,.72);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}

.editor-card, .pro-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16,37,26,.96), rgba(10,24,16,.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  align-items: center;
}
.editor-toolbar h2 { margin: 0 0 5px; font-size: 24px; }
.editor-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }

.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.primary { background: linear-gradient(135deg, var(--green), var(--green-strong)); color: #05200d; }
.button.secondary { color: var(--text); border-color: var(--border); background: #14291d; }

.tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 18px;
  border-top: 1px solid rgba(115,211,140,.10);
  border-bottom: 1px solid rgba(115,211,140,.10);
  background: rgba(4,11,7,.4);
}
.tab {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 15px 14px 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.tab.active { color: var(--text); border-bottom-color: var(--green); }

.tab-panel { display: none; padding: 28px; }
.tab-panel.active { display: block; }

.section-heading { margin-bottom: 22px; }
.section-heading h3 { margin: 0 0 5px; font-size: 22px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }

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

.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 750; }
.field .help { color: var(--muted); font-size: 12px; line-height: 1.4; }

.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #315d41;
  border-radius: 9px;
  padding: 10px 12px;
  background: #07150d;
  color: var(--text);
  outline: none;
}
.field input:focus, .field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(115,211,140,.10);
}
.field input.invalid { border-color: var(--danger); }

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px;
  border: 1px solid #244735;
  background: #0b1b12;
  border-radius: 10px;
}
.check-field input { width: 18px; height: 18px; accent-color: var(--green-strong); }
.check-field label { font-weight: 750; cursor: pointer; }

.password-wrap { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.reveal {
  min-width: 70px;
  border-radius: 9px;
  border: 1px solid #315d41;
  background: #14291d;
  color: var(--text);
  cursor: pointer;
}

.message {
  display: none;
  margin: 0 24px 18px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
}
.message.show { display: block; }
.message.error { color: #ffd2d2; background: rgba(151,34,34,.25); border: 1px solid rgba(255,140,140,.4); }
.message.success { color: #dfffe7; background: rgba(31,112,58,.25); border: 1px solid rgba(115,211,140,.35); }

.editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid rgba(115,211,140,.10);
  color: var(--muted);
  font-size: 12px;
}
.local-note { color: var(--green); }

.pro-card {
  margin-top: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.pro-card h2 { margin: 5px 0 8px; font-size: 28px; }
.pro-card p:not(.eyebrow) { color: var(--muted); line-height: 1.6; margin: 0; max-width: 800px; }

footer { color: #718679; text-align: center; font-size: 12px; padding: 24px; }

code { color: #b9f7c8; }

@media (max-width: 760px) {
  .site-header { position: static; }
  .hero, .pro-card { grid-template-columns: 1fr; align-items: start; }
  .privacy-badge { width: fit-content; white-space: normal; }
  .editor-toolbar { align-items: flex-start; flex-direction: column; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .editor-footer { flex-direction: column; }
  .toolbar-actions, .toolbar-actions .button { width: 100%; }
}


/* v0.3 mockup-matched layout */
body {
  background:
    linear-gradient(180deg, rgba(3,10,7,.47), rgba(3,10,7,.72)),
    url("../assets/palworld-background.png") center top / cover fixed no-repeat;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px clamp(24px, 4vw, 54px);
  background: rgba(3, 12, 8, .78);
  border-bottom: 1px solid rgba(109, 218, 138, .12);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(310px, 46vw);
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  margin-left: auto;
}

.top-nav a {
  color: #f2f7f3;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
  opacity: .88;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--green);
  opacity: 1;
}

.shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.hero {
  min-height: auto;
  margin: 0 0 28px;
  padding: 20px 4px 10px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}

.hero-copy {
  max-width: 830px;
  text-shadow: 0 2px 18px rgba(0,0,0,.65);
}

.hero h1 {
  margin: 5px 0 10px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.hero p:not(.eyebrow) {
  color: #d9e8dd;
  font-size: 16px;
  line-height: 1.55;
}

.privacy-badge {
  border: 1px solid rgba(111,218,140,.28);
  background: rgba(3, 18, 10, .82);
  color: #eaf8ed;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
}

.privacy-badge span {
  color: var(--green);
  margin-right: 6px;
}

.editor-card,
.pro-card {
  background: linear-gradient(180deg, rgba(5, 22, 13, .94), rgba(3, 17, 10, .95));
  border: 1px solid rgba(111, 218, 140, .30);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
}

.editor-toolbar {
  padding: 24px 26px 18px;
}

.editor-toolbar h2 {
  font-size: 25px;
}

.toolbar-actions {
  gap: 12px;
}

.button {
  gap: 8px;
  border-radius: 8px;
  font-size: 14px;
  padding: 11px 17px;
}

.button.secondary {
  background: rgba(5, 20, 12, .82);
  border-color: rgba(111, 218, 140, .30);
}

.btn-icon {
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}

.button.primary .btn-icon {
  color: #05200d;
}

.tabs {
  padding: 0 14px;
  background: rgba(1, 10, 6, .78);
  border-top: 1px solid rgba(115,211,140,.12);
  border-bottom: 1px solid rgba(115,211,140,.12);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 17px 12px;
  font-size: 14px;
}

.tab-icon {
  font-size: 17px;
  color: #b8c7bc;
}

.tab.active .tab-icon {
  color: var(--green);
}

.tab-panel {
  padding: 27px 26px 30px;
  background: rgba(2, 15, 9, .20);
}

.section-heading h3 {
  color: var(--green);
  font-size: 23px;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field select {
  background: rgba(1, 11, 6, .84);
  border-color: rgba(111, 218, 140, .33);
  border-radius: 8px;
}

.reveal {
  background: rgba(5, 20, 12, .82);
  border-color: rgba(111, 218, 140, .33);
}

.editor-footer {
  background: rgba(2, 13, 8, .48);
}

.pro-card {
  padding: 24px 28px;
  grid-template-columns: 1fr auto;
}

.pro-card h2 {
  font-size: 27px;
}

.pro-action {
  display: grid;
  gap: 9px;
  min-width: 300px;
}

.pro-button {
  width: 100%;
  justify-content: space-between;
}

.windows-note {
  color: #b8c9bd;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 940px) {
  .top-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }

  .site-header {
    position: static;
  }

  .brand-logo {
    width: min(260px, 72vw);
    height: 46px;
  }

  .shell {
    width: min(100% - 24px, 1240px);
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 14px 2px 2px;
  }

  .privacy-badge {
    width: fit-content;
  }

  .pro-card {
    grid-template-columns: 1fr;
  }

  .pro-action {
    min-width: 0;
  }
}




/* v0.3.4 navigation + Coming Soon polish */
.pro-button {
  justify-content: center !important;
  text-align: center !important;
}


/* v0.3.6: Full Version CTA in editor navigation */
.top-nav .full-version-nav-button {
  background: var(--green);
  color: #06160b !important;
  border-radius: 8px;
  padding: 9px 15px;
  font-weight: 900;
}
.top-nav .full-version-nav-button:hover {
  filter: brightness(1.06);
  color: #06160b !important;
}


/* v0.3.7 Ko-fi support */
.support-card {
  margin-top: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(109, 218, 138, .30);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8,31,19,.93), rgba(4,20,12,.94));
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
}
.support-card h2 {
  margin: 5px 0 8px;
  font-size: 27px;
}
.support-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.support-button {
  min-width: 210px;
}
@media (max-width:760px) {
  .support-card {
    grid-template-columns: 1fr;
  }
  .support-button {
    width: 100%;
  }
}


/* v0.3.9: prominent Full Version nav CTA + footer legal copy */
.top-nav .full-version-nav-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--green) !important;
  color: #06160b !important;
  border: 1px solid var(--green) !important;
  border-radius: 8px !important;
  padding: 9px 16px !important;
  font-weight: 900 !important;
  opacity: 1 !important;
}
.top-nav .full-version-nav-button:hover {
  color: #06160b !important;
  filter: brightness(1.06);
}
footer p {
  max-width: 1050px;
  margin: 0 auto;
  line-height: 1.65;
}
