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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface2: #222;
  --border: #2a2a2a;
  --text: #ffffff;
  --text2: #aaaaaa;
  --text3: #666666;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 10px;
}

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #2a2a2a; text-decoration: none; color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn-danger { background: var(--danger); color: #fff; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
label { font-size: 13px; font-weight: 500; color: var(--text2); }
input[type="text"], input[type="email"] {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--accent); }
.form-hint { font-size: 12px; color: var(--text3); }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-info    { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.3); color: #c4b5fd; }

/* Hero */
.hero {
  text-align: center;
  padding: 96px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--text2); margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.feature-icon { font-size: 24px; margin-bottom: 10px; }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text2); }

/* Pricing */
.pricing {
  max-width: 400px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 36px;
}
.price { font-size: 52px; font-weight: 800; letter-spacing: -2px; }
.price-period { font-size: 16px; color: var(--text2); font-weight: 400; }
.price-note { font-size: 13px; color: var(--text3); margin-top: 6px; margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }

/* Section */
section { padding: 20px 0; }
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

/* Centered layout */
.center-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 24px;
}
.center-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.center-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.center-card .subtitle { color: var(--text2); font-size: 14px; margin-bottom: 28px; }

/* Dashboard */
.dashboard-wrap { max-width: 640px; margin: 48px auto; padding: 0 24px; }
.dashboard-wrap h1 { font-size: 24px; font-weight: 700; margin-bottom: 28px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge-pro     { background: rgba(124,58,237,0.2); color: #c4b5fd; border: 1px solid rgba(124,58,237,0.4); }
.badge-trial   { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.4); }
.badge-expired { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }
.key-display {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--accent);
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0 16px;
  word-break: break-all;
}
.machines-count { font-size: 13px; color: var(--text3); margin-bottom: 20px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px;
  color: var(--text3);
  font-size: 13px;
}

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; }
.tab-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  transition: all 0.15s;
}
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

@media (max-width: 600px) {
  nav { padding: 12px 20px; }
  .hero { padding: 60px 20px 48px; }
  .pricing-card { padding: 24px; }
}


/* Screenshots gallery */
#screenshots { padding: 0 24px 64px; }
.gallery-wrap { max-width: 960px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top left;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.15s, border-color 0.15s;
  display: block;
}
.gallery-grid img:hover { transform: scale(1.02); border-color: var(--accent); }
.gallery-grid img:first-child { grid-column: span 2; height: 260px; }

/* Lightbox */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lb-overlay.open { display: flex; }
.lb-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lb-inner img {
  max-width: 80vw;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 32px 96px rgba(0,0,0,0.8);
  border: 1px solid #333;
  display: block;
}
.lb-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-close {
  position: absolute;
  top: -48px; right: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-counter {
  position: absolute;
  bottom: -32px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px; color: #888;
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img:first-child { grid-column: span 2; height: 180px; }
  .gallery-grid img { height: 140px; }
}
