/* ================================================================
   Bookmarx AI — Apple-Inspired Light Design System
   ================================================================ */

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #06c;
  --border: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.06);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 980px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 32px 80px -24px rgba(0, 0, 0, 0.15);
  --ease-out: cubic-bezier(0.21, 0.47, 0.32, 0.98);
  --container: min(1024px, 90vw);
  --nav-height: 48px;
}

/* ── Base ──────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* ── Text Balance ─────────────────────────────────────── */
.text-balance { text-wrap: balance; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(29, 29, 31, 0.8);
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--bg-secondary);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 10px;
  width: 16px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle::before { transform: translateY(-4px); }
.nav-toggle::after  { transform: translateY(4px); }

.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after  { transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.3) 0%, #ffffff 40%, var(--bg-secondary) 100%);
  overflow: hidden;
}

/* Parallax background blobs */
.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.blob-blue {
  width: 256px;
  height: 256px;
  background: rgba(96, 165, 250, 0.2);
  top: 80px;
  left: 10%;
}

.blob-purple {
  width: 320px;
  height: 320px;
  background: rgba(167, 139, 250, 0.2);
  top: 160px;
  right: 15%;
}

.blob-green {
  width: 192px;
  height: 192px;
  background: rgba(52, 211, 153, 0.2);
  bottom: 40px;
  left: 20%;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 500;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 400;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--link);
  font-size: 1.1875rem;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link svg {
  display: inline;
}

/* ── Hero Mockup ──────────────────────────────────────── */
.hero-mockup {
  margin-top: 64px;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

.mockup-frame {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.mockup-screen {
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mockup-dot-grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

.mockup-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mockup-icons {
  display: flex;
  gap: 12px;
}

.mockup-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-icon-box svg {
  width: 24px;
  height: 24px;
}

.mockup-bar {
  width: 128px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.mockup-window {
  width: 256px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 16px;
}

.mockup-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.dot-red { width: 8px; height: 8px; border-radius: 50%; background: #f87171; display: block; }
.dot-yellow { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; display: block; }
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: block; }

.mockup-window-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
}

.line-75 { width: 75%; }
.line-50 { width: 50%; }
.line-66 { width: 66%; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
  padding: 96px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  transition: transform 0.3s var(--ease-out);
}

.feature-card:hover {
  transform: scale(1.01);
}

.feature-chat {
  background: linear-gradient(to bottom right, #fff, rgba(219, 234, 254, 0.3));
}

.feature-graph {
  background: linear-gradient(to bottom right, #fff, rgba(237, 233, 254, 0.3));
}

.feature-search {
  grid-column: 1 / -1;
  background: linear-gradient(to bottom right, #fff, rgba(209, 250, 229, 0.3));
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
}

.feature-chat .feature-icon { color: #2563eb; }
.feature-graph .feature-icon { color: #9333ea; }
.feature-search .feature-icon { color: #059669; }

.feature-top h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-top p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-wrap: balance;
  line-height: 1.6;
}

/* Chat Demo */
.chat-demo {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.chat-header span {
  font-size: 0.875rem;
  font-weight: 500;
}

.chat-message {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Graph Demo */
.graph-demo {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graph-orbit {
  position: relative;
  width: 192px;
  height: 192px;
}

.graph-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(168, 85, 247, 0.2);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.graph-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: #9333ea;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.graph-node {
  position: absolute;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.node-2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.node-3 { left: 0; top: 50%; transform: translateY(-50%); }

/* Search Demo */
.feature-search-layout {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.feature-search-layout .feature-top {
  flex: 1;
}

.feature-search .feature-top h3 {
  font-size: 2.25rem;
}

.feature-search .feature-top p {
  font-size: 1.25rem;
}

.search-demo {
  flex: 1;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  margin-bottom: 24px;
}

.search-bar svg { display: inline; flex-shrink: 0; }

.search-bar span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: var(--bg-secondary);
}

.result-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-icon svg { display: inline; }

.result-icon-twitter { background: rgba(219, 234, 254, 0.5); }
.result-icon-github { background: rgba(244, 244, 245, 0.8); }

.result-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.result-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================================
   X BOOKMARKS
   ============================================================ */
.x-bookmarks-section {
  padding: 96px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.x-bookmarks-container {
  max-width: 100%;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: rgba(29, 161, 242, 0.1);
  color: #0f5f94;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.x-bookmarks-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out);
}

.x-bookmarks-card:hover {
  transform: scale(1.01);
}

.x-bookmarks-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
}

.x-bookmarks-copy {
  flex: 1;
  min-width: 0;
}

.x-bookmarks-copy h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.x-bookmarks-copy p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-wrap: balance;
  line-height: 1.6;
}

.x-bookmarks-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.x-import-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1DA1F2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.x-import-icon:last-child {
  color: #0071e3;
}

.x-arrow {
  color: var(--text-secondary);
}

/* ============================================================
   DEVELOPERS
   ============================================================ */
.developers-section {
  padding: 96px 24px;
  background: var(--bg-secondary);
}

.developers-container {
  max-width: var(--container);
  margin: 0 auto;
}

.developers-grid {
  display: flex;
  align-items: center;
  gap: 64px;
}

.developers-copy {
  flex: 1;
}

.developers-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.developers-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.developers-copy p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  text-wrap: balance;
}

.developers-code {
  flex: 1;
  width: 100%;
}

.code-window {
  background: #1d1d1f;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: rgba(161, 161, 170, 1);
}

.code-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.code-dots .dot-red { width: 12px; height: 12px; background: #ff5f56; }
.code-dots .dot-yellow { width: 12px; height: 12px; background: #ffbd2e; }
.code-dots .dot-green { width: 12px; height: 12px; background: #27c93f; }

.code-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-body p {
  line-height: 1.6;
}

.code-indent {
  padding-left: 24px;
}

.code-blue { color: #60a5fa; }
.code-yellow { color: #fde68a; }
.code-green { color: #34d399; }
.code-orange { color: #fdba74; }

/* ============================================================
   INTEGRATIONS MARQUEE
   ============================================================ */
.integrations-section {
  padding: 96px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.integrations-header {
  max-width: var(--container);
  margin: 0 auto 64px;
  padding: 0 24px;
  text-align: center;
}

.integrations-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.marquee-track {
  position: relative;
  display: flex;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 96px;
  padding: 16px 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(212, 212, 216, 1);
  filter: grayscale(1);
  transition: all 0.3s ease;
  cursor: default;
  flex-shrink: 0;
}

.marquee-item:hover {
  filter: grayscale(0);
  color: var(--text-primary);
}

.marquee-item svg {
  display: inline;
  flex-shrink: 0;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  padding: 128px 24px;
  text-align: center;
}

.cta-container {
  max-width: 720px;
  margin: 0 auto;
}

.cta-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 32px;
  color: var(--text-primary);
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.cta-section p {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 48px;
  text-wrap: balance;
}

.cta-form {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 16px 24px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: none;
  font-size: 1.125rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: box-shadow 0.2s ease;
}

.cta-form input:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.cta-form .btn-primary {
  white-space: nowrap;
  padding: 16px 32px;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  padding: 64px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-brand-name svg {
  display: inline;
}

.footer-brand-name span {
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-locale {
  display: flex;
  gap: 24px;
}

.footer-locale a {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-locale a:hover {
  text-decoration: underline;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BLOG (preserved from original)
   ============================================================ */
.blog-page-section {
  min-height: 56vh;
  padding: 100px 24px;
}

.blog-page-header {
  margin-bottom: 34px;
}

.blog-page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.blog-list-grid {
  display: grid;
  gap: 16px;
}

.blog-list-item {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 20px;
  align-items: stretch;
  text-decoration: none;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.blog-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.blog-list-thumb-wrap {
  min-height: 170px;
  background: rgba(0, 0, 0, 0.03);
}

.blog-list-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}

.blog-list-copy {
  display: grid;
  gap: 10px;
  padding: 20px 22px 22px;
  align-content: center;
}

.blog-list-meta {
  color: var(--text-secondary);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-list-title {
  color: var(--text-primary);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.24;
}

.blog-list-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.62;
}

.blog-empty-state {
  display: grid;
  gap: 10px;
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--accent);
  background: rgba(0, 113, 227, 0.04);
}

.blog-empty-state h2,
.blog-empty-state h3 {
  font-size: 1.3rem;
}

.blog-empty-state p {
  color: var(--text-secondary);
}

.blog-article-page {
  padding-top: 56px;
}

.blog-article-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
}

.blog-article-shell h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 4px;
}

.blog-article-date {
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-article-hero {
  aspect-ratio: 5 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.03);
}

.blog-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article-content {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.78;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.blog-article-content p,
.blog-article-content ul,
.blog-article-content ol,
.blog-article-content blockquote,
.blog-article-content pre {
  margin-bottom: 16px;
}

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 24px;
}

.blog-article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article-content blockquote {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(0, 113, 227, 0.04);
}

.blog-article-content code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.blog-article-content pre {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow-x: auto;
}

.blog-article-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  display: inline;
}

.blog-article-actions {
  margin-top: 8px;
}

.section-kicker {
  display: inline-flex;
  justify-self: center;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.16);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-article-kicker {
  justify-self: start;
}

/* Landing container for blog pages */
.landing-container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 100px 24px;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  display: grid;
  gap: 14px;
  max-width: 740px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Landing nav (for blog pages that still reference it) */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Landing footer for blog pages */
.landing-footer {
  padding: 36px 24px 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-search {
    grid-column: auto;
  }

  .feature-search-layout {
    flex-direction: column;
    gap: 32px;
  }

  .developers-grid {
    flex-direction: column;
    gap: 40px;
  }

  .x-bookmarks-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .blog-list-item {
    grid-template-columns: minmax(180px, 220px) 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .nav-container {
    display: grid;
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 4vw;
    right: 4vw;
    display: grid;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
    z-index: 20;
  }

  .nav-links a {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-actions {
    display: none;
  }

  .hero {
    padding: 60px 24px 48px;
  }

  .hero-mockup {
    margin-top: 40px;
  }

  .x-bookmarks-section {
    padding: 72px 24px;
  }

  .x-bookmarks-card {
    padding: 28px;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form input,
  .cta-form .btn-primary {
    width: 100%;
  }

  .blog-list-item {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-list-thumb-wrap {
    min-height: 180px;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --container: 92vw;
  }

  .feature-card {
    padding: 24px;
    min-height: auto;
  }

  .feature-search-layout .feature-top h3 {
    font-size: 1.875rem;
  }

  .feature-search-layout .feature-top p {
    font-size: 1.125rem;
  }

  .x-bookmarks-copy h2 {
    font-size: 1.875rem;
  }

  .x-bookmarks-copy p {
    font-size: 1.125rem;
  }

  .blog-article-shell {
    padding: 20px;
  }

  .blog-article-page {
    padding-top: 30px;
  }
}

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

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