:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2fb;
  --border: #e1e7f2;
  --text: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-2: #0891b2;
  --grad: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(30, 41, 90, .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 400px at 85% -100px, rgba(99, 102, 241, .12), transparent 70%),
    radial-gradient(700px 300px at 0% 0, rgba(6, 182, 212, .08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin-top: 0; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
strong { color: var(--text); }

.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 600; white-space: nowrap; }
.logo svg { color: var(--text); }
.logo b { font-weight: 800; margin-left: .25em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: .25rem; overflow-x: auto; flex: 1; scrollbar-width: none; padding: .25rem 0; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--muted); padding: .35rem .8rem; border-radius: 999px; font-size: .92rem; white-space: nowrap; transition: .2s; }
.main-nav a:hover { color: var(--accent); background: var(--surface-2); }
.site-link { font-size: .85rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 720px) { .site-link { display: none; } }

main { padding-block: 2rem 4rem; }

/* Hero */
.hero { padding: 2.5rem 0 1.5rem; }
.hero.center { text-align: center; max-width: 760px; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: #b6c0d3; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* Cards & grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.section { margin-top: 2.5rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.brand-card {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1.1rem 1.2rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(30, 41, 90, .04);
  color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.brand-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 26px rgba(79, 70, 229, .15); color: var(--text); }
.brand-card strong { font-size: 1.15rem; }
.brand-card span { color: var(--muted); font-size: .85rem; }

.model-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.model-list a {
  display: block; padding: .55rem .85rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .93rem;
  transition: .2s;
}
.model-list a:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.center .chips { justify-content: center; }
.chip { padding: .4rem .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .9rem; transition: .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Product */
.product { display: grid; gap: clamp(1.2rem, 4vw, 3rem); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); }
.shot img { width: 100%; }
.shot .tag {
  position: absolute; left: 12px; top: 12px; padding: .3rem .8rem; border-radius: 999px;
  background: rgba(15, 23, 42, .85); color: #fff; font-weight: 600; font-size: .9rem; backdrop-filter: blur(6px);
}
.ticks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--body); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.5 14.5l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.5 14.5l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.8rem; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 1.05rem; border: 0; cursor: pointer;
  box-shadow: 0 8px 22px rgba(99, 102, 241, .3); transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; box-shadow: 0 12px 28px rgba(6, 182, 212, .3); }
.btn.big { padding: 1rem 2.4rem; font-size: 1.15rem; }

.prose { color: var(--body); max-width: 75ch; }
.prose p { margin-bottom: 1em; }

/* Search */
.search { position: relative; display: block; max-width: 520px; margin: 1.2rem 0; }
.search input {
  width: 100%; padding: .85rem 1rem .85rem 2.8rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit;
  box-shadow: 0 2px 8px rgba(30, 41, 90, .04);
}
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.brand-group[hidden], .model-list li[hidden] { display: none; }
.brand-group { margin-top: 1.8rem; }
.brand-group h3 { display: flex; align-items: baseline; gap: .6rem; }
.brand-group h3 small { color: var(--muted); font-weight: 400; }
.empty { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2rem 0; color: var(--muted); font-size: .9rem; text-align: center; }
.foot-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-bottom: 1rem; }
.foot-brands a, .site-footer p a { color: var(--muted); }
.foot-brands a:hover, .site-footer p a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
