/* ============================= */
/* RESET */
/* ============================= */

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

:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --text: #f1f5f9;
  --muted: #94a3b8;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: var(--text);
  line-height: 1.6;
}

/* ============================= */
/* GLOBAL CONTAINER */
/* ============================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================= */
/* NAVBAR */
/* ============================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  height: 120px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s ease;
}

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

.cart-link {
  background: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  color: white !important;
  font-weight: 600;
}

.cart-link:hover {
  background: var(--primary-hover);
}

/* ============================= */
/* HERO */
/* ============================= */

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

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.highlight {
  display: block;
  font-size: 22px;
  color: var(--primary);
  margin-top: 10px;
  font-weight: 600;
}

.hero-subtext {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.primary-btn {
  background: var(--primary);
  padding: 14px 28px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

.ghost-btn {
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.ghost-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* ============================= */
/* FEATURES */
/* ============================= */

/* ================= PREMIUM FEATURES ================= */

.features {
  padding: 100px 0;
  background: linear-gradient(180deg, #0f1117 0%, #0c0e13 100%);
}

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

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
}

.section-subtext {
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 35px;
  border-radius: 18px;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 15px 40px rgba(88, 101, 242, 0.15);
}

.icon-wrapper {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.1);
  color: #5865F2;
  margin-bottom: 20px;
}

.icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-card p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

/* ============================= */
/* PRODUCTS */
/* ============================= */

.products {
  padding: 100px 0;
  text-align: center;
}

.products h2 {
  font-size: 36px;
}

.section-subtext {
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 50px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* product cards injected by JS */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 16px;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.card h3 {
  margin-bottom: 10px;
}

.card button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.card button:hover {
  background: var(--primary-hover);
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  margin-top: 60px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

  .hero h1 {
    font-size: 40px;
  }

  .highlight {
    font-size: 18px;
  }

  .nav-links {
    gap: 16px;
  }

}

/* ============================= */
/* CART PAGE */
/* ============================= */

.cart-page {
  padding: 100px 0;
}

.cart-container {
  max-width: 1100px;
}

.cart-header {
  margin-bottom: 40px;
}

.cart-header h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* individual cart item (injected by JS) */
.cart-item {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item button {
  background: #ef4444;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.cart-summary {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.summary-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  font-size: 18px;
}

.full-width {
  width: 100%;
  margin-bottom: 12px;
}

/* responsive */
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

/* ============================= */
/* DOWNLOADS PAGE */
/* ============================= */

.downloads-page {
  padding: 100px 0;
}

.page-header {
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.download-section {
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.download-table-wrapper {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.download-table {
  width: 100%;
  border-collapse: collapse;
}

.download-table thead {
  background: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--muted);
}

.download-table th,
.download-table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.download-table tbody tr:last-child td {
  border-bottom: none;
}

.download-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.file-name {
  font-weight: 500;
}

.size {
  color: var(--muted);
}

.version-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.version-badge.beta {
  background: rgba(245, 158, 11, 0.15);
  color: #facc15;
}

.small-btn {
  padding: 8px 14px;
  font-size: 14px;
}

/* ============================= */
/* DOWNLOAD PROGRESS ANIMATION */
/* ============================= */

.download-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.download-btn:hover {
  background: var(--primary-hover);
}

.download-btn.loading {
  background: #334155;
  cursor: default;
}

.progress-bar {
  height: 6px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
  opacity: 0;
  transform: scaleX(0.95);
  transition: 0.3s ease;
}

.progress-bar.active {
  opacity: 1;
  transform: scaleX(1);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.instant-setup-icon {
  height: auto;
  width: auto;
  align-items: center;
}

