/* ==========================================================================
   Blofinder Brand Design System (brand.css)
   Shared stylesheet for index.html & app-pin-guard/index.html
   ========================================================================== */

:root {
  color-scheme: light dark;
  scroll-padding-top: 84px;

  /* Typography */
  --font-sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Raw Light Tokens */
  --bg-light: #f8f9fa;
  --surface-light: #ffffff;
  --surface-elevated-light: #ffffff;
  --surface-subtle-light: #f1f5f9;
  --text-light: #111827;
  --muted-light: #4b5563;
  --border-light: #e5e7eb;
  --border-strong-light: #cbd5e1;
  --accent-light: #2563eb;
  --accent-hover-light: #1d4ed8;
  --accent-text-light: #1d4ed8;
  --accent-soft-light: #eff6ff;
  --on-accent-light: #ffffff;
  --header-bg-light: rgba(248, 249, 250, 0.82);
  --hero-glow-light: rgba(37, 99, 235, 0.08);
  --shadow-sm-light: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md-light: 0 14px 34px -10px rgba(15, 23, 42, 0.1), 0 4px 12px -4px rgba(15, 23, 42, 0.05);
  --scrollbar-track-light: #eef2f6;
  --scrollbar-thumb-light: #64748b;

  /* Raw Dark Tokens */
  --bg-dark: #0b0d14;
  --surface-dark: #131722;
  --surface-elevated-dark: #1a2030;
  --surface-subtle-dark: #161b28;
  --text-dark: #f9fafb;
  --muted-dark: #9ca3af;
  --border-dark: #262c3d;
  --border-strong-dark: #374151;
  --accent-dark: #3b82f6;
  --accent-hover-dark: #60a5fa;
  --accent-text-dark: #60a5fa;
  --accent-soft-dark: rgba(59, 130, 246, 0.14);
  --on-accent-dark: #070b14;
  --header-bg-dark: rgba(11, 13, 20, 0.82);
  --hero-glow-dark: rgba(59, 130, 246, 0.14);
  --shadow-sm-dark: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-md-dark: 0 18px 42px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --scrollbar-track-dark: #131722;
  --scrollbar-thumb-dark: #6b7280;

  /* Active Semantic Tokens (Light default) */
  --bg: var(--bg-light);
  --surface: var(--surface-light);
  --surface-elevated: var(--surface-elevated-light);
  --surface-subtle: var(--surface-subtle-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
  --border: var(--border-light);
  --border-strong: var(--border-strong-light);
  --accent: var(--accent-light);
  --accent-hover: var(--accent-hover-light);
  --accent-text: var(--accent-text-light);
  --accent-soft: var(--accent-soft-light);
  --on-accent: var(--on-accent-light);
  --header-bg: var(--header-bg-light);
  --hero-glow: var(--hero-glow-light);
  --shadow-sm: var(--shadow-sm-light);
  --shadow-md: var(--shadow-md-light);
  --scrollbar-track: var(--scrollbar-track-light);
  --scrollbar-thumb: var(--scrollbar-thumb-light);

  /* Layout & Radii */
  --container-max: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* Fallback for browsers without light-dark() */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--bg-dark);
    --surface: var(--surface-dark);
    --surface-elevated: var(--surface-elevated-dark);
    --surface-subtle: var(--surface-subtle-dark);
    --text: var(--text-dark);
    --muted: var(--muted-dark);
    --border: var(--border-dark);
    --border-strong: var(--border-strong-dark);
    --accent: var(--accent-dark);
    --accent-hover: var(--accent-hover-dark);
    --accent-text: var(--accent-text-dark);
    --accent-soft: var(--accent-soft-dark);
    --on-accent: var(--on-accent-dark);
    --header-bg: var(--header-bg-dark);
    --hero-glow: var(--hero-glow-dark);
    --shadow-sm: var(--shadow-sm-dark);
    --shadow-md: var(--shadow-md-dark);
    --scrollbar-track: var(--scrollbar-track-dark);
    --scrollbar-thumb: var(--scrollbar-thumb-dark);
  }
}

/* Adaptive tokens via light-dark() */
@supports (color: light-dark(white, black)) {
  :root {
    --bg: light-dark(var(--bg-light), var(--bg-dark));
    --surface: light-dark(var(--surface-light), var(--surface-dark));
    --surface-elevated: light-dark(var(--surface-elevated-light), var(--surface-elevated-dark));
    --surface-subtle: light-dark(var(--surface-subtle-light), var(--surface-subtle-dark));
    --text: light-dark(var(--text-light), var(--text-dark));
    --muted: light-dark(var(--muted-light), var(--muted-dark));
    --border: light-dark(var(--border-light), var(--border-dark));
    --border-strong: light-dark(var(--border-strong-light), var(--border-strong-dark));
    --accent: light-dark(var(--accent-light), var(--accent-dark));
    --accent-hover: light-dark(var(--accent-hover-light), var(--accent-hover-dark));
    --accent-text: light-dark(var(--accent-text-light), var(--accent-text-dark));
    --accent-soft: light-dark(var(--accent-soft-light), var(--accent-soft-dark));
    --on-accent: light-dark(var(--on-accent-light), var(--on-accent-dark));
    --header-bg: light-dark(var(--header-bg-light), var(--header-bg-dark));
    --hero-glow: light-dark(var(--hero-glow-light), var(--hero-glow-dark));
    --shadow-sm: light-dark(var(--shadow-sm-light), var(--shadow-sm-dark));
    --shadow-md: light-dark(var(--shadow-md-light), var(--shadow-md-dark));
    --scrollbar-track: light-dark(var(--scrollbar-track-light), var(--scrollbar-track-dark));
    --scrollbar-thumb: light-dark(var(--scrollbar-thumb-light), var(--scrollbar-thumb-dark));
  }
}

/* Never transition or animate scrollbar-color (WebKit flicker prevention) */
:root {
  accent-color: var(--accent);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout Container & Sticky Glass Header
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-block: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes header-shrink {
      from {
        padding-block: 0.75rem;
        box-shadow: none;
      }
      to {
        padding-block: 0.45rem;
        box-shadow: var(--shadow-sm);
      }
    }

    .site-header {
      animation: header-shrink auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 120px;
    }
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-mark img,
.brand-mark svg {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background-color: var(--surface-subtle);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  min-height: 34px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

button.lang-toggle:hover {
  background-color: var(--surface-elevated);
  border-color: var(--accent);
  color: var(--accent);
}

.lang-toggle button,
.lang-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-toggle :is(button, a)[aria-pressed="true"],
.lang-toggle :is(button, a).is-active {
  background-color: var(--surface-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Hero & Product Hero
   ========================================================================== */

.hero,
.product-hero {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(3.5rem, 8vw, 6.25rem) clamp(2.75rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 75% 55% at 50% -10%, var(--hero-glow), transparent 70%);
}

.product-hero {
  border-bottom: 1px solid var(--border);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  align-self: flex-start;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 750;
  color: var(--text);
  word-break: keep-all;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 1.15rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--surface-elevated);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost {
  background-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background-color: var(--accent-soft);
  color: var(--accent-text);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */

.section {
  padding-block: clamp(3.25rem, 6.5vw, 5.25rem);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.below-fold-section {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 480px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 64ch;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
  word-break: keep-all;
}

.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  word-break: keep-all;
}

/* ==========================================================================
   Bento Grid & Cards (Modern Card Pattern)
   ========================================================================== */

.bento-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

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

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

.card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.card > :is(img, picture, video) {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.card > header,
.card > hgroup {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card h3 {
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
  word-break: keep-all;
}

.card p {
  color: var(--muted);
  font-size: 0.96875rem;
  line-height: 1.6;
  word-break: keep-all;
}

@container (min-width: 560px) {
  .card:has(> img, > picture, > video) {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.3fr);
    align-items: start;
    column-gap: 1.5rem;
  }

  .card:has(> img, > picture, > video) > :is(img, picture, video) {
    grid-column: 1;
    grid-row: 1 / span 4;
    height: 100%;
    aspect-ratio: 4 / 3;
  }

  .card:has(> img, > picture, > video) > :not(img, picture, video) {
    grid-column: 2;
  }
}

.card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: none;
}

.card-footer,
.card > footer {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Stretched Card Link Interaction */
.card:has(a.card-link) {
  position: relative;
}

.card a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card:has(a.card-link) a:not(.card-link),
.card:has(a.card-link) button {
  position: relative;
  z-index: 1;
}

.card a.card-link:focus-visible {
  outline: none;
}

.card:focus-visible,
.card:has(a.card-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card:has(a.card-link:hover) {
  background-color: var(--surface-elevated);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .card:has(a.card-link:hover) {
    transform: none;
  }
}

/* Chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ==========================================================================
   Principles Grid
   ========================================================================== */

.principles-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.principle-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.principle-num {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.principle-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  word-break: keep-all;
}

.principle-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  word-break: keep-all;
}

/* ==========================================================================
   Product Specs, Release Meta, Trust & Code Copy
   ========================================================================== */

.release-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  color: var(--muted);
}

.release-meta-bar strong {
  color: var(--text);
  font-weight: 600;
}

.spec-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  word-break: keep-all;
}

.spec-table thead th {
  background-color: var(--surface-subtle);
  color: var(--text);
  font-weight: 650;
  font-size: 0.875rem;
  white-space: nowrap;
}

.spec-table tbody th {
  color: var(--text);
  font-weight: 600;
  width: 28%;
  min-width: 140px;
}

.spec-table tbody td {
  color: var(--muted);
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.trust-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.trust-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.trust-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.trust-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  word-break: keep-all;
}

.code-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-md);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.84375rem;
  line-height: 1.5;
  color: var(--text);
}

.code-copy-box code,
.code-copy-box pre {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background-color: var(--surface-elevated);
  border-color: var(--border-strong);
}

.copy-btn[data-copied="true"],
.copy-btn.is-copied {
  background-color: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* ==========================================================================
   Native FAQ Accordion (Modern Details / ::details-content)
   ========================================================================== */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion details {
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.accordion details[open] {
  border-color: var(--border-strong);
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
  word-break: keep-all;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: "";
  inline-size: 1rem;
  block-size: 1rem;
  flex-shrink: 0;
  background-color: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: 0deg;
}

.accordion summary:dir(rtl)::before {
  rotate: 180deg;
}

.accordion details[open] > summary::before {
  background-color: var(--accent-text);
  rotate: 90deg;
}

.accordion summary:hover {
  color: var(--accent-text);
}

.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.accordion details:not([open])::details-content {
  block-size: 0;
}

.accordion details > :not(summary) {
  padding: 0 1.25rem 1.2rem 2.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  word-break: keep-all;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before {
    transition: rotate 0.2s ease, background-color 0.2s ease;
  }

  .accordion details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.25s;
    transition-timing-function: ease;
    transition-behavior: allow-discrete;
  }
}

/* ==========================================================================
   Callout Banner & Footer
   ========================================================================== */

.bento-grid + .callout-banner {
  margin-top: 1.5rem;
}

.callout-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, var(--hero-glow), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.callout-banner h2,
.callout-banner h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  word-break: keep-all;
}

.callout-banner p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.96875rem;
  max-width: 56ch;
  word-break: keep-all;
}

.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
}

.footer-grid h3,
.footer-grid h4 {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ==========================================================================
   Scroll Reveal (View Timeline Progressive Enhancement)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-enter {
      from {
        opacity: 0;
        transform: translateY(16px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-item {
      animation: reveal-enter auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
  }
}

/* ==========================================================================
   Responsive Breakpoints (Mobile <= 768px)
   ========================================================================== */

@media (max-width: 960px) {
  .bento-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    scroll-padding-top: 104px;
  }

  .nav-inner {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .nav-links a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .product-hero-grid,
  .bento-grid--2,
  .bento-grid--3,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .release-meta-bar {
    gap: 0.55rem 1rem;
    padding: 0.85rem 1rem;
  }

  .code-copy-box {
    flex-wrap: wrap;
  }

  .copy-btn {
    width: 100%;
  }

  .accordion summary {
    padding: 1rem;
  }

  .accordion details > :not(summary) {
    padding: 0 1rem 1rem 2.55rem;
  }

  .bento-grid + .callout-banner {
  margin-top: 1.5rem;
}

.callout-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
