:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #111726;
  --bg-card: #161f33;
  --bg-card-hover: #1c2742;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-purple: #c084fc;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #f43f5e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --glow-blue: 0 0 25px rgba(56, 189, 248, 0.15);
  --glow-emerald: 0 0 25px rgba(52, 211, 153, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header & Navigation */
header {
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

nav a.active {
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 56px 0 40px;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-blue);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 32px;
}

/* Verdict Banner */
.verdict-box {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: var(--glow-blue), var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.verdict-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.verdict-tag {
  background: var(--accent-emerald);
  color: #064e3b;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.verdict-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
}

.verdict-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
}

.verdict-pricing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-primary);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.price-row.highlight {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* System Comparison Cards Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 56px;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.system-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.system-card.laptop::before {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.system-card.desktop::before {
  background: linear-gradient(90deg, #f43f5e, #c084fc);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.system-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.system-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.system-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-blue {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-purple {
  background: rgba(192, 132, 252, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
}

.spec-icon {
  color: var(--accent-blue);
  font-size: 1.1rem;
  min-width: 22px;
}

.spec-content strong {
  color: var(--text-primary);
  display: block;
}

.spec-content span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.card-footer {
  background: rgba(0, 0, 0, 0.25);
  margin: 0 -28px -28px;
  padding: 18px 28px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.val-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.val-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Feature Matrix Table */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.925rem;
}

th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.winner-cell {
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Scenario Decision Grid */
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.scenario-card.active {
  border-color: var(--accent-blue);
  box-shadow: var(--glow-blue);
}

.scenario-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.badge-green {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-emerald);
}

.badge-amber {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-amber);
}

.scenario-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.scenario-payout {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.scenario-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Interactive Calculator */
.calc-card {
  background: linear-gradient(145deg, #131b2e, #0f172a);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 56px;
}

.calc-header {
  margin-bottom: 24px;
}

.calc-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.calc-header p {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.calc-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.calc-select, .calc-input {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.calc-result-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.calc-result-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.calc-result-val {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent-emerald);
  margin-bottom: 8px;
}

.calc-result-sub {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* Checklist Section */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.check-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.check-item.done {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.05);
}

.check-box {
  min-width: 22px;
  height: 22px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: var(--transition);
}

.check-item.done .check-box {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.check-box::after {
  content: '✓';
  color: #064e3b;
  font-weight: 900;
  font-size: 0.85rem;
  display: none;
}

.check-item.done .check-box::after {
  display: block;
}

.check-content strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.check-content span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

footer a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 860px) {
  .verdict-box, .comparison-grid, .scenario-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  nav ul {
    display: none; /* simple mobile fallback or flex wrap */
  }
}
