:root {
  --bg-app: #0b0c16;
  --bg-panel: #15172a;
  --bg-elevated: #1d2038;
  --bg-hover: #262a47;
  --bg-input: #181a2c;

  --border: #272a42;
  --border-light: rgba(255, 255, 255, 0.06);
  --text: #eef0fa;
  --text-dim: #8c8fae;
  --text-faint: #5c5f7d;

  --accent: #9b3bff;
  --accent-2: #c6ff3a;
  --accent-gradient: linear-gradient(135deg, #9b3bff 0%, #c6ff3a 100%);
  --accent-gradient-btn: linear-gradient(135deg, #b35bff 0%, #8b2cf5 100%);
  --accent-soft: rgba(155, 59, 255, 0.16);
  --accent-dim: rgba(155, 59, 255, 0.22);
  --lime-soft: rgba(198, 255, 58, 0.14);
  --danger: #ff5c7a;
  --success: #4ade80;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 4px 16px rgba(155, 59, 255, 0.35);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-app);
  color: var(--text);
  font-family: 'Segoe UI Variable Display', 'Segoe UI', -apple-system, system-ui, 'Helvetica Neue',
    Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 500px at 85% -10%, rgba(155, 59, 255, 0.25), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, rgba(198, 255, 58, 0.08), transparent 60%);
  pointer-events: none;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 12, 22, 0.72);
  border-bottom: 1px solid var(--border-light);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--text-faint);
}

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

.btn-primary {
  background: var(--accent-gradient-btn);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* Hero */

.hero {
  padding: 96px 0 64px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-faint);
}

/* Screenshots */

.screenshot {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.screenshot a {
  display: block;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.screenshot a:hover {
  opacity: 0.9;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-screenshot {
  margin: 56px auto 0;
  max-width: 960px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 32px;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

/* Feature grid */

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

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-2);
  color: #0a0a12;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.price-card .price-period {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 18px;
}

.price-card .price-amount {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 4px;
}

.price-card .price-amount sup {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dim);
}

.price-card .price-sub {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 24px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* Checkout form */

.checkout-box {
  max-width: 460px;
  margin: 48px auto 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.checkout-box h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.checkout-box p.hint {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 20px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dim);
}

.form-row select,
.form-row input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row select:focus-visible,
.form-row input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 10px 0 0;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-note {
  font-size: 12px;
  color: var(--text-faint);
  margin: 14px 0 0;
  text-align: center;
}

/* FAQ */

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 14px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* Status pages (success/cancel) */

.status-page {
  min-height: calc(100vh - 64px - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.status-card {
  max-width: 480px;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.status-icon.success {
  background: rgba(74, 222, 128, 0.16);
  color: var(--success);
}

.status-icon.cancel {
  background: rgba(255, 92, 122, 0.16);
  color: var(--danger);
}

.status-card h1 {
  margin: 0 0 12px;
  font-size: 24px;
}

.status-card p {
  color: var(--text-dim);
  margin: 0 0 24px;
}

.status-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal pages */

.legal-page {
  padding: 56px 0 80px;
}

.legal-page h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.legal-page .updated {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0 0 36px;
}

.legal-page h2 {
  font-size: 18px;
  margin: 32px 0 12px;
}

.legal-page p,
.legal-page li {
  color: var(--text-dim);
  font-size: 14px;
}

.legal-page ul {
  padding-left: 22px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 13px;
}

.footer-copy {
  color: var(--text-faint);
  font-size: 13px;
}

/* Responsive */

@media (max-width: 860px) {
  .hero h1 {
    font-size: 36px;
  }

  .feature-grid,
  .pricing-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 16px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
