:root {
  --bg: #0b1020;
  --card: #0f1724;
  --muted: #9aa4b2;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 16px;
  --maxw: 1200px;
  --container-padding: 24px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(180deg, #071026 0%, #07101a 100%);
  color: #e6eef8;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--container-padding);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  position: sticky;
  top: 0;
  background: rgba(11, 16, 32, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800;
  font-family: 'Roboto Slab', serif;
  color: #061226;
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #fff;
}

.btn {
  background: linear-gradient(90deg, var(--accent), #a88bff);
  padding: 10px 18px;
  border-radius: 12px;
  color: #071026;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.5);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.ghost:hover {
  border-color: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  margin-top: 40px;
  align-items: center;
}

.hero-card {
  background: var(--glass);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 36px;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: var(--glass);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.price {
  font-size: 18px;
  font-weight: 800;
  margin-top: 12px;
}

/* Footer */
footer {
  margin-top: 60px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
}

.modal.active {
  display: grid;
}

.modal .box {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 400px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
