:root {
  --bg: #080b14;
  --panel: rgba(255,255,255,.07);
  --panel-strong: rgba(255,255,255,.12);
  --text: #f6f7fb;
  --muted: #aab2c8;
  --line: rgba(255,255,255,.14);
  --brand: #8b5cf6;
  --brand2: #06b6d4;
  --success: #2dd4bf;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(139,92,246,.35), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(6,182,212,.22), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(59,130,246,.18), transparent 35%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8,11,20,.72);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 12px;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 40px rgba(139,92,246,.35);
}
.nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); font-weight: 600; }
.inline-form { margin: 0; }
.link-button { background: transparent; border: 0; color: var(--muted); font: inherit; cursor: pointer; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(59,130,246,.25);
}
.btn.secondary { background: rgba(255,255,255,.08); border-color: var(--line); box-shadow: none; }
.btn-sm { padding: 9px 14px; }
.btn.full { width: 100%; }
.pill, .badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(139,92,246,.16);
  border: 1px solid rgba(139,92,246,.35);
  color: #d8c9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 76px 0 48px;
}
.hero h1, .section-head h1, .section-head h2 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .96;
  letter-spacing: -0.06em;
}
.hero p, .section-head p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.microcopy { font-size: 13px !important; color: #8791aa !important; }
.demo-card, .panel-card, .auth-card, .price-card, .feature-card, .result-card, .stat-card, .credits-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.demo-card { padding: 18px; transform: rotate(2deg); }
.demo-toolbar { display: flex; gap: 7px; margin-bottom: 14px; }
.demo-toolbar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.demo-product {
  height: 260px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.15)),
    radial-gradient(circle at center, rgba(6,182,212,.8), transparent 40%);
  position: relative;
  overflow: hidden;
}
.demo-product:after {
  content: '';
  position: absolute;
  inset: 64px 82px;
  border-radius: 32px;
  background: linear-gradient(135deg, #111827, #475569);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.fake-ad-button { margin-top: 14px; padding: 12px; border-radius: 16px; background: rgba(6,182,212,.22); text-align: center; font-weight: 800; }
.features-grid, .pricing-grid, .generator-grid, .stats-grid, .history-grid {
  display: grid; gap: 18px; margin: 28px 0;
}
.features-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid.compact .price-card { min-height: auto; }
.generator-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.history-grid { grid-template-columns: repeat(2, 1fr); }
.feature-card, .price-card, .panel-card, .result-card, .stat-card { padding: 24px; }
.price-card { position: relative; min-height: 390px; }
.price-card.featured { border-color: rgba(6,182,212,.5); background: linear-gradient(180deg, rgba(6,182,212,.16), rgba(255,255,255,.07)); }
.price { font-size: 44px; font-weight: 900; letter-spacing: -0.05em; margin: 14px 0; }
.price span { font-size: 14px; color: var(--muted); letter-spacing: 0; }
ul { padding-left: 20px; color: var(--muted); line-height: 1.9; }
.section-head { text-align: center; margin: 60px auto 24px; max-width: 760px; }
.section-head.left { text-align: left; margin-left: 0; }
.auth-card { width: min(460px, 100%); margin: 70px auto; padding: 28px; }
.form { display: grid; gap: 14px; }
label { color: var(--muted); font-size: 14px; font-weight: 700; display: grid; gap: 8px; }
input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}
textarea { resize: vertical; }
select option { color: #111827; }
.optional { color: #64748b; font-weight: 500; }
.alert { padding: 13px 16px; border-radius: 16px; margin: 18px 0; border: 1px solid; }
.alert.success { background: rgba(45,212,191,.12); border-color: rgba(45,212,191,.35); color: #99f6e4; }
.alert.error { background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.35); color: #fecdd3; }
.dashboard-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 42px 0 8px; }
.dashboard-head h1 { font-size: clamp(36px, 5vw, 56px); margin: 10px 0 0; letter-spacing: -0.05em; }
.credits-card { min-width: 210px; padding: 22px; text-align: center; }
.credits-card span { color: var(--muted); }
.credits-card strong { display: block; font-size: 54px; line-height: 1; margin: 8px 0; }
.card-headline { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.history-list { display: grid; gap: 12px; }
.history-item { display: flex; gap: 12px; align-items: center; padding: 12px; background: rgba(255,255,255,.06); border-radius: 16px; }
.history-item small { margin-left: auto; color: var(--muted); }
.result-card { display: grid; gap: 14px; }
.thumb { width: 100%; max-height: 180px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }
.generated-img { width: 100%; border-radius: 22px; border: 1px solid var(--line); }
.text-result { white-space: pre-wrap; overflow-x: auto; background: rgba(0,0,0,.24); border: 1px solid var(--line); border-radius: 18px; padding: 16px; color: #e5e7eb; line-height: 1.6; }
.stat-card span { color: var(--muted); }
.stat-card strong { display: block; font-size: 38px; margin-top: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); }
th { color: var(--text); }
.legal { max-width: 860px; margin: 48px auto; color: var(--muted); line-height: 1.8; }
.footer { width: min(1140px, calc(100% - 32px)); margin: 60px auto 24px; padding: 18px; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.paypal-box { min-height: 70px; margin-top: 16px; }
@media (max-width: 860px) {
  .hero, .generator-grid, .pricing-grid, .features-grid, .history-grid, .stats-grid { grid-template-columns: 1fr; }
  .dashboard-head { flex-direction: column; align-items: stretch; }
  .nav { align-items: flex-start; }
  .nav-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .footer { flex-direction: column; gap: 8px; }
}
