* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #101216;
  color: #f3f5f7;
  font-family: "Yu Gothic UI", system-ui, sans-serif;
  line-height: 1.55;
}

.nav {
  height: 68px;
  max-width: 1120px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand b {
  background: #7c5cff;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 5px;
}

.nav nav {
  display: flex;
  align-items: center;
}

.nav a {
  color: #a9b2bd;
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
}

.nav a:hover {
  color: #fff;
}

.nav select {
  background: #1a1f27;
  color: #fff;
  border: 1px solid #495568;
  border-radius: 6px;
  padding: 6px;
  margin-left: 20px;
}

.intro {
  max-width: 860px;
  text-align: center;
  margin: 34px auto 50px;
  padding: 35px 25px 10px;
}

.eyebrow {
  color: #a996ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0 0 10px;
}

.intro h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.18;
  letter-spacing: -2px;
  margin: 0;
}

.intro em {
  font-style: normal;
  color: #ab9aff;
}

.intro > p:not(.eyebrow) {
  max-width: 570px;
  margin: 18px auto;
  color: #a9b2bd;
  font-size: 17px;
}

.primary,
.secondary {
  border: 0;
  cursor: pointer;
  border-radius: 9px;
  color: #fff;
  font: 700 16px "Yu Gothic UI", sans-serif;
}

.primary {
  background: #7c5cff;
  padding: 14px 20px;
  width: 100%;
}

.primary:hover {
  background: #9278ff;
}

.jump {
  display: inline-block;
  text-decoration: none;
  width: auto;
  margin-top: 6px;
}

.trust {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: #a9b2bd;
  font-size: 13px;
  margin-top: 19px;
}

.tool {
  max-width: 860px;
  margin: auto;
  padding: 0 20px;
}

.tool-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 15px;
}

.tool-title h2,
.info h2,
.privacy h2,
.faq h2 {
  font-size: 27px;
  margin: 0;
}

.tool-title > p {
  font-size: 13px;
  color: #a9b2bd;
  margin: 0;
}

.card {
  background: #1a1f27;
  border: 1px solid #343d4a;
  border-radius: 14px;
  padding: 22px;
  margin: 14px 0;
}

.card h3 {
  margin: 0;
  font-size: 17px;
}

.muted {
  color: #a9b2bd;
}

.card > p {
  margin: 5px 0 15px;
}

.select,
input {
  width: 100%;
  background: #11151b;
  border: 1px solid #343d4a;
  border-radius: 8px;
  color: #f3f5f7;
  padding: 11px;
  font: inherit;
}

.wide {
  font-size: 16px;
}

.note,
.help {
  font-size: 13px;
  color: #a9b2bd;
  margin: 10px 0 0;
}

.dropzone {
  border: 2px dashed #495568;
  border-radius: 14px;
  padding: 35px 20px;
  text-align: center;
  background: #151922;
  transition: 0.16s;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #9278ff;
  background: #1d1a34;
}

.drop-icon {
  color: #a996ff;
  font-size: 34px;
  line-height: 30px;
}

.dropzone h3 {
  font-size: 17px;
  margin: 12px 0 5px;
}

.dropzone p,
.dropzone small {
  color: #a9b2bd;
}

.dropzone small {
  display: block;
  margin-top: 14px;
}

.secondary {
  background: #28313d;
  padding: 10px 17px;
}

.settings h3 small {
  font-weight: 400;
  color: #a9b2bd;
  font-size: 12px;
  margin-left: 6px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 14px;
}

.settings label {
  font-size: 13px;
  color: #a9b2bd;
  position: relative;
}

.settings input,
.settings select {
  margin-top: 6px;
}

.settings .span2 {
  grid-column: span 2;
}

output {
  position: absolute;
  right: 11px;
  top: 35px;
  color: #fff;
  font-size: 12px;
  background: #303845;
  padding: 2px 5px;
  border-radius: 4px;
}

.file-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-button {
  color: #ff8d9a;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.file-list,
.result-list {
  max-height: 250px;
  overflow: auto;
  margin: 10px 0 16px;
}

.file-row,
.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #2b3340;
  font-size: 14px;
}

.file-row img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 5px;
}

.file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  color: #a9b2bd;
  font-size: 12px;
}

.remove {
  color: #ff8d9a;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 18px;
}

.result-row a {
  color: #b4a5ff;
  text-decoration: none;
}

.hidden {
  display: none;
}

.info,
.privacy,
.faq {
  max-width: 1050px;
  margin: 100px auto 0;
  padding: 0 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.steps article {
  background: #1a1f27;
  border: 1px solid #343d4a;
  border-radius: 14px;
  padding: 22px;
}

.steps b {
  color: #ab9aff;
  font-size: 20px;
}

.steps h3 {
  margin: 9px 0 4px;
}

.steps p,
.privacy p,
.faq p {
  color: #a9b2bd;
}

.privacy {
  max-width: 860px;
  background: #1a1f27;
  border: 1px solid #343d4a;
  border-radius: 14px;
  padding: 27px;
  margin-top: 80px;
}

.privacy p:last-child {
  margin-bottom: 0;
}

.faq {
  max-width: 860px;
  margin-top: 80px;
}

.faq details {
  background: #1a1f27;
  border: 1px solid #343d4a;
  border-radius: 10px;
  padding: 15px 17px;
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

/* PicBatch Pro */
.pro-section {
  max-width: 860px;
  margin: 72px auto 0;
  padding: 0 28px;
}

.pro-card {
  position: relative;
  overflow: hidden;
  padding: 34px 28px;
  border: 1px solid rgba(124, 92, 255, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(124, 92, 255, 0.30), transparent 38%),
    linear-gradient(135deg, #1d1935, #171c28);
  text-align: center;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.pro-label {
  display: inline-block;
  margin: 0 0 9px;
  padding: 4px 10px;
  border: 1px solid rgba(171, 154, 255, 0.65);
  border-radius: 999px;
  color: #c5b9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.pro-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.pro-lead {
  margin: 12px 0 24px;
  color: #c2c9d3;
  font-size: 16px;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 25px;
  text-align: left;
}

.pro-feature {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf0f5;
  font-size: 14px;
}

.pro-feature::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  margin-right: 8px;
  border-radius: 50%;
  background: #7c5cff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: -1px;
}

.pro-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0 0 18px;
  color: #c2c9d3;
  font-size: 14px;
}

.pro-price strong {
  color: #fff;
  font-size: 35px;
  line-height: 1;
  letter-spacing: -1px;
}

.pro-price small {
  color: #9ea8b6;
  font-size: 12px;
}

.pro-button {
  width: min(100%, 330px);
  padding: 14px 18px;
  border: 0;
  border-radius: 9px;
  background: #7c5cff;
  color: #fff;
  cursor: pointer;
  font: 700 16px "Yu Gothic UI", system-ui, sans-serif;
  transition: background 0.16s, transform 0.16s;
}

.pro-button:hover {
  background: #9278ff;
  transform: translateY(-1px);
}

.pro-note {
  margin: 13px 0 0;
  color: #9ea8b6;
  font-size: 12px;
}

footer {
  text-align: center;
  color: #6f7987;
  font-size: 12px;
  margin: 65px 0 25px;
  padding: 0 20px;
}

footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #a9b2bd;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 650px) {
  .nav {
    padding: 0 16px;
  }

  .nav a {
    display: none;
  }

  .nav select {
    margin-left: 10px;
  }

  .intro {
    margin-top: 15px;
    padding: 28px 18px 3px;
  }

  .tool {
    padding: 0 14px;
  }

  .tool-title {
    display: block;
  }

  .tool-title > p {
    margin-top: 7px;
  }

  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings .span2 {
    grid-column: span 2;
  }

  .card {
    padding: 17px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .info,
  .privacy,
  .faq {
    margin-top: 65px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .privacy {
    margin-left: 14px;
    margin-right: 14px;
    padding: 21px;
  }

  .trust {
    gap: 10px 16px;
  }

  .pro-section {
    margin-top: 60px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .pro-card {
    padding: 27px 17px;
  }

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