:root {
  --bg-main: #020617;        /* Deep Midnight */
  --bg-card: #0f172a;        /* Slate Blue */
  --bg-hover: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;         /* Sky Blue */
  --accent-glow: rgba(56, 189, 248, 0.2);
  --success: #22c55e;        /* Emerald */
  --border: #1e293b;
  --radius: 12px;
}

* { box-sizing: border-box; transition: all 0.2s ease-in-out; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% -20%, #1e293b 0%, #020617 80%);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
}

.logo span { color: var(--accent); }

.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-left: 24px;
  text-decoration: none;
}

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

/* ---------- Typography ---------- */
.page-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 60px 0 12px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

/* ---------- Search ---------- */
.search-box {
  position: relative;
  margin-bottom: 60px;
}

.search-box input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ---------- Index Grid ---------- */
.alpha-section { margin-bottom: 48px; }
.alpha-label {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}

.product-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.product-name { color: #fff; font-weight: 600; }
.product-price { 
  color: var(--success); 
  font-weight: 700; 
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
}

/* ---------- Product Detail ---------- */
.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.deal-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deal-platform { font-weight: 700; font-size: 18px; display: block; }
.deal-type {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--accent);
}

.go-btn {
  background: var(--accent);
  color: #020617;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.go-btn:hover { background: #fff; transform: scale(1.05); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
