:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-soft: #0d1727;
  --panel: rgba(15, 24, 39, 0.82);
  --panel-strong: #101b2d;
  --text: #eef4ff;
  --muted: rgba(238, 244, 255, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8ad4ff;
  --accent-strong: #d9b3ff;
  --accent-gold: #ffd285;
  --danger: #ff8f8f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(138, 212, 255, 0.16), transparent 35%),
    radial-gradient(circle at top right, rgba(217, 179, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #060b14 0%, var(--bg) 45%, #07101c 100%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 12, 22, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-strong)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15));
  box-shadow: 0 14px 28px rgba(138, 212, 255, 0.24);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 24px;
  align-items: stretch;
  padding: 18px 0 34px;
}

.hero-copy,
.hero-card,
.info-card,
.example-card,
.form-panel,
.result-panel,
.pricing-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at top right, rgba(217, 179, 255, 0.08), transparent 32%),
    var(--panel);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(138, 212, 255, 0.2);
  background: rgba(138, 212, 255, 0.08);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 5.2vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.lede {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #07101c;
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
}

.btn.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--muted);
}

.hero-card-header,
.result-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.badge,
.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(138, 212, 255, 0.2);
  background: rgba(138, 212, 255, 0.08);
  color: var(--accent);
  font-size: 12px;
}

.preview-block {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.preview-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.preview-block p {
  color: var(--muted);
  line-height: 1.7;
}

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

.mini-stats div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.mini-stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.mini-stats span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 6px;
}

.info-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.info-card h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

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

.info-card ul,
.info-card ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.example-section,
.app-section,
.pricing-section {
  padding-top: 48px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

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

.example-card,
.form-panel,
.result-panel {
  border-radius: var(--radius-xl);
}

.example-card {
  padding: 22px;
}

.example-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input-sample,
.bullet-list,
.summary-box,
.checklist,
.paywall-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.input-sample {
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.input-sample strong {
  color: var(--text);
}

.bullet-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.bullet-item,
.generated-bullet {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bullet-item p,
.generated-bullet p {
  line-height: 1.65;
}

.bullet-item small,
.generated-bullet small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.form-panel {
  padding: 24px;
}

.form-panel label {
  display: block;
  margin-bottom: 16px;
}

.form-panel span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-panel input,
.form-panel textarea,
.form-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-panel textarea {
  resize: vertical;
  min-height: 126px;
}

.form-panel input::placeholder,
.form-panel textarea::placeholder {
  color: rgba(238, 244, 255, 0.42);
}

.form-panel input:focus,
.form-panel textarea:focus,
.form-panel select:focus {
  border-color: rgba(138, 212, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(138, 212, 255, 0.12);
}

.form-panel small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

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

.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.microcopy {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.result-panel {
  padding: 24px;
}

.result-section + .result-section {
  margin-top: 18px;
}

.result-section h4 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.summary-box {
  padding: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.bullet-stack {
  display: grid;
  gap: 12px;
}

.locked {
  opacity: 0.78;
  border-style: dashed;
}

.checklist {
  margin: 0;
  padding: 16px 18px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
  color: var(--muted);
}

.checklist li + li {
  margin-top: 10px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.paywall-note {
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--muted);
  line-height: 1.7;
}

.paywall-note ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.pricing-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.plan-name {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.plan-price {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 10px;
}

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

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

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 20px;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(100%, 520px);
  padding: 24px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.checkout-card {
  width: min(100%, 640px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.checkout-summary strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.checkout-summary p {
  margin-top: 0;
}

.checkout-price {
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.checkout-field {
  display: block;
  margin-top: 16px;
}

.checkout-field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.checkout-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}

.checkout-field input:focus {
  border-color: rgba(138, 212, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(138, 212, 255, 0.12);
}

.checkout-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-help {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.checkout-error {
  margin-top: 12px;
  color: var(--danger);
  line-height: 1.65;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .hero,
  .example-layout,
  .app-grid,
  .pricing-card,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    align-items: start;
  }

  .hero-copy {
    padding: 34px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, var(--max-width));
    padding-top: 12px;
  }

  .topbar {
    position: static;
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-card,
  .info-card,
  .example-card,
  .form-panel,
  .result-panel,
  .pricing-card {
    padding: 20px;
    border-radius: 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .mini-stats,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .result-actions,
  .modal-actions {
    flex-direction: column;
  }

  .checkout-summary {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
