:root {
  --bg: #0f0f0f;
  --surface: #171717;
  --border: #242424;
  --border2: #2e2e2e;
  --accent: #7B6EE8;
  --accent2: #A99FF5;
  --text: #e8e8e8;
  --muted: #666;
  --muted2: #888;
  --red: #E24B4A;
  --blue: #378ADD;
  --green: #1D9E75;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--accent2);
  box-shadow: 0 0 20px rgba(123, 110, 232, 0.3);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(123, 110, 232, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  background: var(--surface);
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

h1 em {
  font-style: normal;
  color: var(--accent2);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted2);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 0 30px rgba(123, 110, 232, 0.35);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--border2);
  color: var(--muted2);
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  background: var(--surface);
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
}

.hero-note {
  margin-top: 18px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  animation: fadeUp 0.6s 0.4s ease both;
}



/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.stat {
  flex: 1;
  max-width: 220px;
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

/* ── FEATURES ── */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 60px;
  max-width: 500px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s;
  position: relative;
}

.feature:hover {
  background: var(--surface);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border2);
}

.feature-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-body {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.65;
}

.pro-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--accent2);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 2px 6px;
  opacity: 0.7;
}

/* ── VS TABLE ── */
.vs-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px;
}

.vs-inner {
  max-width: 760px;
  margin: 0 auto;
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}

.vs-table th {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0 20px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border2);
}

.vs-table th:last-child,
.vs-table th:nth-child(2) {
  text-align: center;
}

.vs-table td {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--muted2);
  border-bottom: 1px solid var(--border);
}

.vs-table tr:last-child td {
  border-bottom: none;
}

.vs-table td:nth-child(2),
.vs-table td:last-child {
  text-align: center;
}

.check {
  color: var(--green);
  font-size: 16px;
}

.cross {
  color: var(--muted);
  font-size: 16px;
}

.vs-table td:last-child {
  color: var(--text);
}

.col-us {
  color: var(--accent2) !important;
  font-weight: 500;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.pricing-card {
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 32px 28px;
  background: var(--surface);
  position: relative;
  transition: border-color 0.2s;
}

.pricing-card:hover {
  border-color: var(--muted);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: #16143a;
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
}

.plan-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.plan-price {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 6px;
}

.plan-period {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 13px;
  color: var(--muted2);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: '—';
  color: var(--accent2);
  font-size: 12px;
  flex-shrink: 0;
}

.plan-btn {
  display: block;
  width: 100%;
  padding: 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border2);
  color: var(--muted2);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}

.plan-btn:hover {
  border-color: var(--muted);
  color: var(--text);
}

.plan-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.plan-btn.primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  box-shadow: 0 0 20px rgba(123, 110, 232, 0.3);
}

/* ── PRIVACY ── */
.privacy-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.privacy-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 24px;
  background: var(--surface);
}

.privacy-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.privacy-section p {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── LIVE DEMO ── */
.demo-wrap {
  width: 100%;
  max-width: 860px;
  margin: 60px auto 0;
  animation: fadeUp 0.7s 0.45s ease both;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.demo-topbar {
  background: #1c1c1c;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.demo-dots span:nth-child(1) {
  background: #E24B4A;
}

.demo-dots span:nth-child(2) {
  background: #F5A623;
}

.demo-dots span:nth-child(3) {
  background: #1D9E75;
}

.demo-title {
  flex: 1;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-right: 54px;
}

.demo-toolbar {
  background: #222;
  border-bottom: 1px solid var(--border);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.demo-tool-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  transition: background 0.1s;
  font-family: system-ui, sans-serif;
}

.demo-tool-btn:hover {
  background: #333;
}

.demo-tool-btn.active {
  background: #3c3489;
  border-color: #534AB7;
  color: #fff;
}

.demo-divider {
  width: 1px;
  height: 20px;
  background: #333;
  margin: 0 3px;
}

.demo-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s;
}

.demo-swatch:hover {
  transform: scale(1.2);
}

.demo-swatch.active {
  border-color: #fff;
}

.demo-action-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #333;
  background: transparent;
  color: #aaa;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
}

.demo-action-btn:hover {
  background: #333;
  color: #fff;
}

.demo-action-btn.primary {
  background: #534AB7;
  border-color: #534AB7;
  color: #fff;
}

.demo-action-btn.primary:hover {
  background: #6058c8;
}

.demo-spacer {
  flex: 1;
}

.demo-hint {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.demo-canvas-area {
  position: relative;
  width: 100%;
  height: 420px;
  background: #1a1e2e;
  cursor: crosshair;
  overflow: hidden;
}

#demo-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#demo-draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.demo-status {
  background: #1c1c1c;
  border-top: 1px solid var(--border);
  padding: 6px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  flex-shrink: 0;
}

/* ── SHORTCUTS TAG ── */
.shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}

kbd {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--muted2);
  font-family: 'DM Mono', monospace;
}

@media (max-width: 600px) {
  nav {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat {
    padding: 20px 16px;
  }

  .stat-val {
    font-size: 24px;
  }
}