:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #111827;
  --muted: #667085;
  --line: #d9e0ea;
  --primary: #0f766e;
  --primary-2: #115e59;
  --chip: #e6fffb;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111827;
  --surface-2: #182132;
  --text: #f3f4f6;
  --muted: #9aa4b2;
  --line: #263244;
  --primary: #2dd4bf;
  --primary-2: #14b8a6;
  --chip: #0f2e2c;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section-block { padding: 40px 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 999; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; }
.brand-text small { color: var(--muted); }
.theme-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 24px; align-items: stretch; }
.hero-copy, .hero-panel, .filters-panel, .compare-panel, .featured-card, .phone-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.hero-copy { padding: 32px; }
.hero-panel { padding: 24px; }
.eyebrow, .section-kicker, .meta-label, .listing-meta { color: var(--muted); }
h1 { font-size: clamp(2.2rem, 4vw, 4.5rem); line-height: 1.05; margin: 12px 0 16px; }
h2 { margin: 0; font-size: clamp(1.4rem, 2vw, 2rem); }
.hero-text { max-width: 60ch; }
.search-shell {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 24px;
}
.search-shell input, .control {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text);
}
.search-button {
  padding: 14px 18px; border: none; border-radius: 16px; background: var(--primary); color: white; cursor: pointer;
}
.hero-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.meta-card, .panel-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.panel-tag {
  display: inline-block; margin-bottom: 12px; padding: 6px 10px; border-radius: 999px; background: var(--chip); color: var(--primary-2);
}
.panel-list { padding-left: 18px; margin: 12px 0 0; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.featured-grid, .phone-grid { display: grid; gap: 18px; }
.featured-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.phone-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.featured-card, .phone-card { padding: 20px; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.brand-chip {
  display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--chip); color: var(--primary-2); font-size: 0.875rem;
}
.spec-list { display: grid; gap: 10px; margin-top: 18px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.spec-row strong { color: var(--text); font-weight: 700; }
.filters-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
.filters-panel, .compare-panel { padding: 24px; }
.filter-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.results-summary { margin-bottom: 18px; color: var(--muted); }
.empty-state { padding: 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; }

@media (max-width: 900px) {
  .hero-grid, .filters-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .search-shell, .filter-controls, .section-heading { grid-template-columns: 1fr; display: grid; }
  .header-inner { align-items: flex-start; flex-direction: column; }
}
