.sr-only[data-astro-cid-nen7h5rs] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #eef1f5;
  --text: #111827;
  --text-soft: #5f6b7a;
  --line: #dde2e9;
  --accent: #6557ff;
  --accent-strong: #4737ee;
  --accent-soft: #eeecff;
  --success: #087f5b;
  --warning-bg: #fff7e5;
  --warning-text: #7c4b00;
  --shadow-sm: 0 1px 2px rgb(17 24 39 / 5%), 0 8px 24px rgb(17 24 39 / 5%);
  --shadow-lg: 0 20px 60px rgb(17 24 39 / 14%);
  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
  --max: 76rem;
  --header-height: 4.5rem;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e13;
  --surface: #14171d;
  --surface-raised: #191d25;
  --surface-soft: #1e232d;
  --text: #f5f7fa;
  --text-soft: #aab3c1;
  --line: #2a303b;
  --accent: #8b80ff;
  --accent-strong: #a79fff;
  --accent-soft: #262243;
  --success: #63e6be;
  --warning-bg: #2a2112;
  --warning-text: #ffd98a;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 20%), 0 10px 28px rgb(0 0 0 / 22%);
  --shadow-lg: 0 24px 80px rgb(0 0 0 / 45%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 20rem;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 15% -5%, color-mix(in srgb, var(--accent) 12%, transparent) 0, transparent 30rem),
    radial-gradient(circle at 90% 8%, color-mix(in srgb, #28c5d9 9%, transparent) 0, transparent 28rem);
  content: "";
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  translate: 0 -150%;
  border-radius: 0.6rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 0.85rem;
}

.skip-link:focus { translate: 0; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section-sm { padding-block: clamp(2rem, 4vw, 3.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before { width: 1.5rem; height: 2px; background: currentColor; content: ""; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h1 { margin-bottom: 1.25rem; font-size: clamp(2.6rem, 6.5vw, 5.8rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { margin-bottom: 0.55rem; font-size: 1.25rem; }
.lede { max-width: 44rem; color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.muted { color: var(--text-soft); }
.small { font-size: 0.875rem; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
}

.header-inner { display: flex; min-height: var(--header-height); align-items: center; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; font-size: 1.05rem; font-weight: 850; letter-spacing: -0.035em; }
.wordmark-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 0.65rem; background: var(--text); color: var(--bg); font-size: 0.9rem; transform: rotate(-4deg); }
.site-nav { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; }
.site-nav a, .nav-action { border: 0; border-radius: 0.7rem; background: transparent; padding: 0.55rem 0.72rem; color: var(--text-soft); cursor: pointer; font-size: 0.92rem; font-weight: 650; }
.site-nav a:hover, .nav-action:hover { background: var(--surface-soft); color: var(--text); }
.nav-action { display: inline-grid; min-width: 2.45rem; height: 2.45rem; padding: 0; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.nav-icon { width: 1.1rem; height: 1.1rem; }
.nav-label { display: none; }
.mobile-menu { position: relative; display: none; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { border-color: var(--accent); background: var(--accent-soft); }
.mobile-menu-panel { position: absolute; top: calc(100% + 0.65rem); right: 0; display: grid; width: min(18rem, calc(100vw - 1.25rem)); overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-raised); padding: 0.45rem; box-shadow: var(--shadow-lg); }
.mobile-menu-panel a { display: flex !important; align-items: center; justify-content: space-between; border-radius: 0.7rem; padding: 0.8rem 0.9rem; color: var(--text); }

.preview-banner { border-bottom: 1px solid color-mix(in srgb, #e3a008 28%, var(--line)); background: var(--warning-bg); color: var(--warning-text); font-size: 0.85rem; }
.preview-banner .container { display: flex; align-items: center; justify-content: center; gap: 0.55rem; padding-block: 0.55rem; text-align: center; }

.hero { overflow: hidden; padding-block: clamp(4rem, 9vw, 8.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr); }
.hero h1 span { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  padding: 0.7rem 1rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.button-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-strong); }
.button-ghost { background: transparent; }

.search-launch {
  display: flex;
  width: min(100%, 38rem);
  min-height: 4rem;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 0.8rem 1rem;
  color: var(--text-soft);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.search-launch:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.search-launch kbd { margin-left: auto; border: 1px solid var(--line); border-radius: 0.45rem; background: var(--surface-soft); padding: 0.1rem 0.45rem; color: var(--text-soft); font-size: 0.75rem; }

.hero-visual { position: relative; display: grid; min-height: 27rem; place-items: center; }
.hero-orbit { position: absolute; width: min(100%, 27rem); aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { position: absolute; inset: 12%; border: 1px dashed color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 50%; content: ""; }
.hero-orbit::after { inset: 29%; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.phone-stack { position: relative; width: 13rem; height: 24rem; }
.phone-shell { position: absolute; inset: 0; overflow: hidden; border: 0.5rem solid #252936; border-radius: 2.5rem; background: linear-gradient(155deg, #1b2040, #6b60ff 54%, #84dbe5); box-shadow: 0 28px 70px rgb(20 16 70 / 30%); transform: rotate(7deg); }
.phone-shell::before { position: absolute; top: 0.65rem; left: 50%; width: 4.2rem; height: 1.25rem; border-radius: 1rem; background: #252936; content: ""; translate: -50%; }
.phone-shell::after { position: absolute; inset: 28% -30% -35%; border-radius: 48%; background: rgb(255 255 255 / 23%); content: ""; transform: rotate(-20deg); }
.phone-shadow { position: absolute; inset: 8% 5% -3% -10%; border: 0.5rem solid #cfd4dd; border-radius: 2.5rem; background: var(--surface-soft); box-shadow: var(--shadow-lg); transform: rotate(-7deg); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-heading > div > :last-child { margin-bottom: 0; }
.text-link { color: var(--accent-strong); font-weight: 750; }
.text-link:hover { text-decoration: underline; text-underline-offset: 0.2rem; }

.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.device-card { position: relative; display: flex; min-height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.device-card:hover { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); box-shadow: 0 16px 42px rgb(17 24 39 / 10%); transform: translateY(-4px); }
.device-art { position: relative; display: grid; min-height: 13rem; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--accent) 11%, var(--surface))); }
.device-art::before { width: 5.4rem; height: 10.5rem; border: 0.35rem solid color-mix(in srgb, var(--text) 82%, transparent); border-radius: 1.25rem; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 80%, #111827), color-mix(in srgb, #32bccc 60%, var(--surface))); box-shadow: 0 18px 32px rgb(17 24 39 / 18%); content: ""; transform: rotate(5deg); }
.device-art::after { position: absolute; top: calc(50% - 4.8rem); left: 50%; width: 1.75rem; height: 0.4rem; border-radius: 1rem; background: #1a1d25; content: ""; translate: -50%; transform: rotate(5deg); }
.device-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.15rem; }
.device-brand { margin-bottom: 0.25rem; color: var(--accent-strong); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.device-card h3 { margin-bottom: 0.85rem; }
.device-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; color: var(--text-soft); font-size: 0.8rem; }
.pill { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); padding: 0.24rem 0.55rem; }

.brand-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.brand-card { display: grid; min-height: 8rem; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 1rem; text-align: center; transition: transform 160ms ease, border-color 160ms ease; }
.brand-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.brand-monogram { display: grid; width: 2.8rem; height: 2.8rem; margin-bottom: 0.55rem; place-items: center; border-radius: 0.85rem; background: var(--accent-soft); color: var(--accent-strong); font-weight: 850; }

.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: clamp(1.3rem, 3vw, 2rem); }
.feature-icon { display: grid; width: 3rem; height: 3rem; margin-bottom: 1.25rem; place-items: center; border-radius: 0.85rem; background: var(--accent-soft); color: var(--accent-strong); font-weight: 900; }

.page-hero { padding-block: clamp(3rem, 7vw, 6rem) 2rem; }
.page-hero h1 { max-width: 58rem; font-size: clamp(2.5rem, 6vw, 4.8rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.25rem; color: var(--text-soft); font-size: 0.85rem; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.breadcrumbs span[aria-current="page"] { color: var(--text); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.field, .select { min-height: 3rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); padding: 0.65rem 0.8rem; color: var(--text); }
.field { width: min(100%, 28rem); }
.field::placeholder { color: var(--text-soft); }
.field-label { display: grid; gap: 0.35rem; color: var(--text-soft); font-size: 0.82rem; font-weight: 700; }

.detail-hero { display: grid; align-items: center; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr); }
.detail-art { min-height: 34rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.detail-art::before { width: 9rem; height: 18rem; border-width: 0.55rem; border-radius: 2rem; }
.detail-art::after { top: calc(50% - 8.3rem); width: 2.8rem; height: 0.55rem; }
.detail-title h1 { margin-bottom: 0.55rem; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.detail-title .device-brand { font-size: 0.85rem; }
.key-specs { display: grid; gap: 0.7rem; margin-top: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.key-spec { border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); padding: 0.8rem; }
.key-spec dt { color: var(--text-soft); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.key-spec dd { margin: 0.18rem 0 0; font-weight: 760; line-height: 1.3; }

.spec-layout { display: grid; align-items: start; gap: 1rem; grid-template-columns: minmax(0, 1fr) 18rem; }
.spec-sections { display: grid; gap: 1rem; }
.spec-section { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: clamp(1.1rem, 3vw, 1.7rem); }
.spec-section h2 { font-size: 1.35rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { border-top: 1px solid var(--line); padding: 0.8rem 0; text-align: left; vertical-align: top; }
.spec-table th { width: 33%; color: var(--text-soft); font-size: 0.83rem; font-weight: 700; }
.spec-table td { font-weight: 570; }
.detail-aside { position: sticky; top: calc(var(--header-height) + 1rem); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 1.2rem; }
.detail-aside .button { width: 100%; }
.detail-aside ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.detail-aside li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 0.65rem; color: var(--text-soft); font-size: 0.85rem; }
.detail-aside li strong { color: var(--text); }

.compare-shell, .finder-shell { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.compare-picker { display: grid; gap: 0.75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compare-picker select { width: 100%; }
.compare-table-wrap { overflow-x: auto; margin-top: 2rem; }
.compare-table { width: 100%; min-width: 44rem; border-collapse: collapse; }
.compare-table th, .compare-table td { min-width: 11rem; border: 1px solid var(--line); padding: 0.8rem; text-align: left; }
.compare-table th { background: var(--surface-soft); }
.compare-table td:first-child, .compare-table th:first-child { min-width: 9rem; color: var(--text-soft); font-size: 0.82rem; font-weight: 750; }

.finder-controls { display: grid; gap: 1rem; margin-bottom: 2rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.finder-results { margin-top: 1rem; }

.search-dialog { width: min(calc(100% - 1.5rem), 42rem); max-height: min(44rem, calc(100vh - 2rem)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 0; color: var(--text); box-shadow: var(--shadow-lg); }
.search-dialog::backdrop { background: rgb(9 12 18 / 62%); backdrop-filter: blur(4px); }
.search-head { display: flex; align-items: center; gap: 0.7rem; border-bottom: 1px solid var(--line); padding: 0.8rem; }
.search-head input { flex: 1; border: 0; background: transparent; padding: 0.6rem; color: var(--text); font-size: 1.05rem; outline: 0; }
.search-close { border: 1px solid var(--line); border-radius: 0.6rem; background: var(--surface-soft); padding: 0.4rem 0.6rem; cursor: pointer; }
.search-results { max-height: 32rem; overflow-y: auto; padding: 0.6rem; }
.search-result { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: 0.8rem; border-radius: 0.8rem; padding: 0.7rem; }
.search-result:hover, .search-result[aria-selected="true"] { background: var(--accent-soft); }
.search-result-mark { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 0.7rem; background: var(--surface-soft); color: var(--accent-strong); font-weight: 850; }
.search-empty { padding: 2rem; color: var(--text-soft); text-align: center; }

.empty-state { border: 1px dashed var(--line); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface) 65%, transparent); padding: 2.5rem 1rem; color: var(--text-soft); text-align: center; }

.site-footer { margin-top: clamp(3rem, 7vw, 7rem); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem; grid-template-columns: 1.3fr repeat(3, 0.7fr); }
.footer-grid h2 { margin-bottom: 0.7rem; font-size: 1rem; letter-spacing: -0.02em; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 0.5rem; }
.footer-grid a { color: var(--text-soft); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1.2rem; color: var(--text-soft); font-size: 0.82rem; }

@media (max-width: 64rem) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .finder-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a:nth-child(-n + 4) { display: none; }
  .mobile-menu { display: block; }
}

@media (max-width: 48rem) {
  :root { --header-height: 4rem; }
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .hero-grid, .detail-hero, .spec-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 22rem; }
  .phone-stack { width: 10.5rem; height: 19.5rem; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .detail-art { min-height: 27rem; }
  .detail-aside { position: static; }
  .compare-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 34rem) {
  h1 { font-size: clamp(2.45rem, 15vw, 4rem); }
  .card-grid, .compare-picker, .finder-controls, .key-specs { grid-template-columns: 1fr; }
  .section-heading, .toolbar { align-items: flex-start; flex-direction: column; }
  .detail-art { min-height: 23rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .search-launch kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
