:root {
  --bg: #f3eee4;
  --bg-deep: #d6e0d1;
  --panel: rgba(255, 252, 247, 0.84);
  --ink: #1f2a1f;
  --muted: #617062;
  --accent: #c2613c;
  --accent-dark: #964325;
  --line: rgba(31, 42, 31, 0.12);
  --shadow: 0 20px 60px rgba(72, 57, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(194, 97, 60, 0.16), transparent 34%),
    radial-gradient(circle at right, rgba(54, 99, 87, 0.18), transparent 30%),
    linear-gradient(160deg, var(--bg), var(--bg-deep));
}

a {
  color: inherit;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #f1bb65);
  color: white;
}

.searchbar {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 640px;
}

.searchbar input,
.searchbar button {
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
}

.searchbar input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
}

.searchbar button {
  padding: 14px 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.hero,
.panel {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.4fr 0.9fr;
  padding: 36px;
}

.panel {
  padding: 28px;
  margin-top: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 700;
}

h1, h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.lede,
.muted {
  color: var(--muted);
}

.stats-grid,
.spec-grid,
.card-list,
.chip-list {
  display: grid;
  gap: 14px;
}

.stats-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.stat-card,
.device-card,
.spec-grid div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.stat-card span,
.spec-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-card strong,
.spec-grid strong {
  font-size: 1.6rem;
}

.chip-list {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

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

.device-card a {
  text-decoration: none;
}

.device-hero {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 1fr;
}

.spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--accent-dark);
}

.report-link {
  margin-top: 18px;
  text-align: right;
}

.report-link a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.report-link a:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

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

  .searchbar {
    width: 100%;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }
}
