*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-panel: #1c2128;
  --border: #30363d;
  --border-subtle: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --accent: #58a6ff;
  --accent-strong: #1f6feb;
  --accent-glow: rgba(88, 166, 255, 0.15);
  --green: #3fb950;
  --orange: #d29922;
  --purple: #a371f7;
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

code {
  padding: 0.15em 0.4em;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

kbd {
  display: inline-block;
  padding: 0.1em 0.45em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--border);
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

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

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.site-nav a:not(.btn) {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

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

.site-nav .btn-primary,
.site-nav .btn-primary:hover,
.site-nav .btn-primary:focus-visible {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

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

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

.btn-primary {
  color: #fff;
  background: var(--accent-strong);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  color: #fff;
  background: #388bfd;
  text-decoration: none;
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-panel);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--text-dim);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 10px;
}

/* Hero */

.hero {
  position: relative;
  padding: 80px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent),
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-dim);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* App preview mock */

.app-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
}

.app-titlebar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.app-titlebar .dot.red { background: #ff5f57; }
.app-titlebar .dot.yellow { background: #febc2e; }
.app-titlebar .dot.green { background: #28c840; }

.app-titlebar span {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.app-body {
  display: grid;
  grid-template-columns: 160px 1fr 140px;
  min-height: 280px;
}

.app-panel {
  padding: 12px 10px;
  border-right: 1px solid var(--border-subtle);
  font-size: 11px;
}

.app-panel:last-child {
  border-right: none;
}

.app-panel-label {
  margin-bottom: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.app-item {
  padding: 5px 8px;
  margin-bottom: 3px;
  border-radius: 4px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-item.active {
  background: rgba(31, 111, 235, 0.25);
  color: #cce7ff;
}

.app-terminal {
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  background: #0a0e14;
}

.app-terminal .prompt {
  color: var(--green);
}

.app-terminal .cmd {
  color: var(--text);
}

.app-terminal .out {
  color: var(--text-dim);
}

.app-terminal .cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--text-muted);
  vertical-align: text-bottom;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Sections */

section {
  padding: 72px 0;
}

section:nth-child(even) {
  background: var(--bg-elevated);
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 17px;
}

/* Features */

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

.feature-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

section:nth-child(even) .feature-card {
  background: var(--bg-panel);
}

.feature-card:hover {
  border-color: var(--text-dim);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  font-size: 18px;
  border-radius: 8px;
}

.feature-icon.blue { background: rgba(88, 166, 255, 0.12); }
.feature-icon.green { background: rgba(63, 185, 80, 0.12); }
.feature-icon.orange { background: rgba(210, 153, 34, 0.12); }
.feature-icon.purple { background: rgba(163, 113, 247, 0.12); }

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

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

/* Workflow */

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.workflow-step {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.workflow-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 50%;
}

.workflow-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.workflow-step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Download */

.download-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.12), rgba(163, 113, 247, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.download-box h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.download-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.download-note {
  font-size: 12px;
  color: var(--text-dim);
}

/* Footer */

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

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

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

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

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

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

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

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-top: 48px;
  }

  .app-preview {
    max-width: 520px;
    margin-inline: auto;
  }

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

  .download-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-actions {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.btn) {
    display: none;
  }

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

  .app-body {
    grid-template-columns: 120px 1fr;
  }

  .app-body .app-panel:last-child {
    display: none;
  }
}

.pricing-grid {
  align-items: stretch;
  max-width: 720px;
  margin-inline: auto;
  grid-template-columns: repeat(2, 1fr);
}

#pricing .pricing-card {
  text-align: center;
}

#pricing .checkout-actions {
  align-items: center;
}

.pricing-card .price-tag {
  font-size: 14px;
  color: #8fd9a8;
  font-weight: 600;
  margin: 0 0 12px;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.pricing-note {
  margin-top: 20px;
  color: #858585;
  font-size: 14px;
  text-align: center;
}

.pricing-note[hidden] {
  display: none;
}

.checkout-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* FAQ */

#faq {
  background: var(--bg-elevated);
}

.faq-panel {
  max-width: 760px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.faq-item summary:hover {
  color: #fff;
  background: rgba(88, 166, 255, 0.08);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.faq-item summary:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.faq-item[open] summary {
  color: var(--accent);
  background: rgba(88, 166, 255, 0.1);
}

.faq-item[open] summary::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.faq-item summary:hover::after {
  opacity: 1;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  opacity: 1;
}

.faq-item p {
  margin: 0;
  padding: 4px 28px 26px 44px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.6), transparent);
}

/* Feedback */

#feedback {
  background: var(--bg);
}

.feedback-card {
  max-width: 640px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.feedback-card-header {
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.14), rgba(163, 113, 247, 0.08));
  border-bottom: 1px solid var(--border-subtle);
}

.feedback-card-header h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.feedback-card-header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.feedback-form {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feedback-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-field span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.feedback-field textarea {
  min-height: 160px;
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
  color: var(--text-dim);
}

.feedback-field input:hover,
.feedback-field textarea:hover {
  border-color: var(--text-dim);
}

.feedback-field input:focus,
.feedback-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-panel);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.feedback-footer .btn {
  width: 100%;
}

.feedback-status {
  margin: 0;
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.5;
}

.feedback-status--success {
  color: var(--green);
}

.feedback-status--error {
  color: #f85149;
}

.feedback-status--pending {
  color: var(--text-dim);
}

.feedback-status[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .faq-item summary {
    padding: 18px 20px;
    font-size: 16px;
    gap: 16px;
  }

  .faq-item p {
    padding: 4px 20px 22px 32px;
    font-size: 14px;
  }

  .feedback-card-header,
  .feedback-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .feedback-form {
    padding-bottom: 24px;
  }
}

.purchase-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.purchase-page h1 {
  margin-bottom: 12px;
}

.license-key-box {
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.license-key-box code {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  color: #8fd9a8;
}
