:root {
  --bg: #0b0f14;
  --card: #141b24;
  --line: #243041;
  --text: #e8eef6;
  --muted: #9aa8b8;
  --accent: #6ee7b7;
  --accent2: #38bdf8;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.5; min-height: 100vh;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: rgba(11,15,20,.9); backdrop-filter: blur(8px); z-index: 10;
}
.logo { color: var(--text); font-weight: 700; letter-spacing: -.02em; display: flex; gap: 8px; align-items: center; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.top nav { display: flex; gap: 16px; font-size: 14px; }
.top nav a { color: var(--muted); }
main { max-width: 980px; margin: 0 auto; padding: 28px 20px 80px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.03em; }
.hero .sub { color: var(--muted); font-size: 1.05rem; max-width: 54ch; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 28px; }
.badges li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent2); transform: translateY(-2px); }
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.btn, button.primary, button.ghost {
  appearance: none; border: none; cursor: pointer; border-radius: 10px;
  padding: 10px 16px; font-weight: 600; font-size: 14px;
}
.btn, button.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #062016; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: .5; cursor: not-allowed; }
.section { margin-top: 48px; }
.section h2 { margin: 0 0 16px; font-size: 1.35rem; }
.pricing .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.price { font-size: 2rem; font-weight: 700; margin: 4px 0; }
.card.hot { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(110,231,183,.25); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
footer { border-top: 1px solid var(--line); padding: 24px 20px; text-align: center; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); margin: 0 8px; }
/* generator */
.gen-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .gen-layout { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.upload {
  border: 2px dashed var(--line); border-radius: 12px; min-height: 200px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 8px; color: var(--muted); cursor: pointer; overflow: hidden; position: relative;
}
.upload img { max-width: 100%; max-height: 280px; object-fit: contain; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 12px 0; display: none; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; }
.result-box { min-height: 220px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--muted); position: relative; }
.result-box img { max-width: 100%; border-radius: 8px; }
.watermark {
  position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.65);
  color: var(--warn); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
}
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.status { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 16px;
}
.modal[hidden] { display: none; }
.modal .box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 400px; width: 100%; }
.modal h3 { margin-top: 0; }
.credits-pill { font-size: 12px; color: var(--muted); }
