/* ==========================================================================
   DemoDesign — design system
   Dark, high-contrast, motion-forward. No frameworks, no external requests.
   ========================================================================== */

:root {
  --bg: #06080f;
  --bg-soft: #0a0e1a;
  --surface: #0e1322;
  --surface-2: #141a2d;
  --surface-3: #1b2238;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaeefb;
  --text-dim: #a4adc6;
  --text-faint: #6f7893;
  --accent: #8b7bff;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --grad: linear-gradient(120deg, #8b7bff 0%, #5eead4 48%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(139, 123, 255, 0.16), rgba(34, 211, 238, 0.08));
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 32px 80px -24px rgba(0, 0, 0, 0.85);
  --glow: 0 0 0 1px rgba(139, 123, 255, 0.35), 0 12px 40px -12px rgba(139, 123, 255, 0.5);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; background: rgba(139,123,255,0.12); padding: 0.15em 0.45em; border-radius: 6px; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container.narrow { max-width: 780px; }

/* ------------------------------------------------------------ background */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  will-change: transform;
}
.orb-a {
  width: 620px; height: 620px; top: -220px; left: -140px;
  background: radial-gradient(circle, rgba(139,123,255,0.55), transparent 68%);
  animation: float-a 22s ease-in-out infinite;
}
.orb-b {
  width: 560px; height: 560px; top: 12%; right: -180px;
  background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 68%);
  animation: float-b 27s ease-in-out infinite;
}
.orb-c {
  width: 520px; height: 520px; bottom: -200px; left: 32%;
  background: radial-gradient(circle, rgba(244,114,182,0.28), transparent 70%);
  animation: float-c 31s ease-in-out infinite;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 78%);
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, 60px) scale(1.12); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 80px) scale(1.08); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -70px) scale(1.14); }
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.brand-text small { font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; gap: 4px; margin-right: auto; }
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.is-active { color: var(--text); background: rgba(139,123,255,0.14); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-mini {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--text-faint);
  transition: border-color 0.25s, background 0.25s, width 0.3s var(--ease);
}
.search-mini:focus-within { border-color: rgba(139,123,255,0.5); background: rgba(139,123,255,0.07); }
.search-mini input {
  border: 0; background: transparent; outline: none; width: 148px; font-size: 14px; color: var(--text);
}
.search-mini input::placeholder { color: var(--text-faint); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block; width: 17px; height: 1.8px; background: var(--text);
  border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 22px;
  background: rgba(6,8,15,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.mobile-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: 0; }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: rgba(255,255,255,0.06);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.28s var(--ease), background 0.22s, border-color 0.22s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #080c16;
  box-shadow: 0 8px 24px -10px rgba(139,123,255,0.8);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(139,123,255,0.95); }
.btn-accent {
  background: rgba(34,211,238,0.14);
  border-color: rgba(34,211,238,0.4);
  color: #7de8f7;
}
.btn-accent:hover { background: rgba(34,211,238,0.22); }
.btn-ghost { background: rgba(255,255,255,0.04); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--border-strong); }
.btn-danger { background: rgba(251,113,133,0.12); border-color: rgba(251,113,133,0.35); color: #fda4af; }

/* ----------------------------------------------------------------- hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.pulse-dot, .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero-title {
  margin: 22px 0 0;
  font-size: clamp(2.4rem, 5.6vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: var(--text-dim);
  max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats {
  display: flex; gap: clamp(24px, 4vw, 48px);
  margin: 44px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.hero-stats dt {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats dd { margin: 2px 0 0; font-size: 13px; color: var(--text-faint); letter-spacing: 0.02em; }

/* browser mock */
.hero-visual { position: relative; }
.browser-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}
.browser-frame:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.browser-url {
  margin-left: 10px; font-size: 12px; color: var(--text-faint);
  font-family: var(--mono);
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.browser-body { padding: 18px; display: grid; gap: 12px; }
.mini-card {
  display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center;
  padding: 10px; border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  animation: float-mini 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.7s);
}
.mini-card img { width: 108px; height: 66px; object-fit: cover; border-radius: 9px; }
.mini-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-meta strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta span { font-size: 11.5px; color: var(--text-faint); }
@keyframes float-mini {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
.hero-badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(14,19,34,0.92);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(10px);
  animation: float-b 6s ease-in-out infinite;
}
.hero-badge-1 { top: 14%; left: -22px; color: #7de8f7; }
.hero-badge-2 { bottom: 12%; right: -16px; color: var(--success); animation-delay: -3s; }

/* -------------------------------------------------------------- marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 42px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-item {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- section */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-alt { background: rgba(255,255,255,0.018); border-block: 1px solid var(--border); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.section-title {
  margin: 12px 0 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15; letter-spacing: -0.03em; font-weight: 750;
}
.section-sub { margin: 10px 0 0; color: var(--text-dim); font-size: 16px; max-width: 62ch; }
.split-head { margin-bottom: 40px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------------------------------------------------------------- cards */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139,123,255,0.13), transparent 62%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(139,123,255,0.4); box-shadow: var(--shadow-lg); }
.card:hover::after { opacity: 1; }
.card-media {
  position: relative; display: block; aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--surface-2), var(--surface-3));
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: 46px; font-weight: 800; color: rgba(255,255,255,0.2);
}
.card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(8,11,20,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;
  color: #7de8f7;
}
.card-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(6,8,15,0.1), rgba(6,8,15,0.72));
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.card:hover .card-overlay { opacity: 1; }
.card-overlay-cta {
  padding: 10px 20px; border-radius: 999px;
  background: var(--grad); color: #080c16; font-weight: 700; font-size: 14px;
  transform: translateY(10px); transition: transform 0.35s var(--ease);
}
.card:hover .card-overlay-cta { transform: translateY(0); }
.card-body { padding: 20px 22px 22px; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-faint); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(139,123,255,0.12); border: 1px solid rgba(139,123,255,0.24);
  font-size: 12px; font-weight: 600; color: #b9aeff;
  transition: background 0.2s, transform 0.2s;
}
a.chip:hover { background: rgba(139,123,255,0.24); transform: translateY(-1px); }
.chip.is-active { background: var(--grad); color: #080c16; border-color: transparent; }
.chip-count { opacity: 0.65; font-weight: 500; }
.card-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.card-title a { transition: color 0.2s; }
.card-title a:hover { color: #b9aeff; }
.card-text { margin: 0; font-size: 14.2px; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-link { font-size: 12.5px; color: var(--text-faint); transition: color 0.2s; }
.tag-link:hover { color: var(--accent-2); }
.card-cta {
  display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border);
  transition: background 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.card:hover .card-cta { background: var(--grad); border-color: transparent; color: #080c16; transform: translateX(3px); }
.post-read { font-size: 12.5px; color: var(--text-faint); }

/* categories */
.cat-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.cat-card:hover { transform: translateY(-5px); border-color: rgba(34,211,238,0.42); box-shadow: var(--shadow-md); }
.cat-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; background: var(--grad-soft);
  border: 1px solid var(--border); color: #9ce8f7;
  margin-bottom: 6px;
}
.cat-card h3 { margin: 0; font-size: 16.5px; font-weight: 700; }
.cat-card p { margin: 0; font-size: 13.5px; color: var(--text-dim); }
.cat-count { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--text-faint); }

/* steps */
.step { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255,255,255,0.025); position: relative; overflow: hidden; }
.step-num {
  display: inline-block; margin-bottom: 16px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.step p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ------------------------------------------------------------ page hero */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-faint); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs [aria-current] { color: var(--text-dim); }
.page-title { margin: 0; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.page-sub { margin: 14px 0 0; color: var(--text-dim); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 66ch; }

.toolbar { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.toolbar-search {
  flex: 1 1 280px; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,0.03); color: var(--text-faint);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.toolbar-search:focus-within { border-color: rgba(139,123,255,0.55); box-shadow: 0 0 0 4px rgba(139,123,255,0.1); }
.toolbar-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--text); }
.select {
  padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,0.03); color: var(--text); font-size: 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a4adc6' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.filter-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.result-count { color: var(--text-faint); font-size: 14px; margin: 0 0 24px; }
.result-count strong { color: var(--text); }

/* ------------------------------------------------------------- detail */
.detail-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-media img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
}
.detail-media-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.detail-badges { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.badge-free { background: rgba(52,211,153,0.14); border-color: rgba(52,211,153,0.35); color: #6ee7b7; }
.badge-new { background: rgba(251,191,36,0.14); border-color: rgba(251,191,36,0.35); color: #fcd34d; }
.detail-title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.65rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.detail-sub { margin: 12px 0 0; color: var(--accent-2); font-size: 16px; font-weight: 500; }
.detail-excerpt { margin: 16px 0 0; color: var(--text-dim); font-size: 15.5px; }
.detail-meta { list-style: none; margin: 26px 0 0; padding: 22px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px; border-block: 1px solid var(--border); }
.detail-meta li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-faint); }
.detail-meta strong { color: var(--text); font-size: 15px; }
.stack-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tech-pill {
  padding: 5px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  font-size: 12.5px; font-family: var(--mono); color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
a.tech-pill:hover { border-color: rgba(34,211,238,0.4); color: #7de8f7; }
.detail-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.detail-note { margin: 16px 0 0; font-size: 13px; color: var(--text-faint); }

.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.prose { font-size: 16px; color: var(--text-dim); }
.prose h2 { color: var(--text); font-size: 24px; letter-spacing: -0.025em; margin: 40px 0 14px; font-weight: 750; }
.prose h3 { color: var(--text); font-size: 18px; margin: 30px 0 10px; font-weight: 700; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.feature-list { list-style: none; padding: 0; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.feature-list svg { color: var(--success); flex-shrink: 0; margin-top: 4px; }

.side-card {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  margin-bottom: 20px;
}
.side-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.side-card p { margin: 0 0 16px; font-size: 14px; color: var(--text-dim); }
.side-card .btn + .btn { margin-top: 9px; }
.side-list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.side-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); margin-bottom: 9px; }
.side-list svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.side-note { margin: 12px 0 0; font-size: 13px; color: var(--text-faint); }
.rating { display: flex; gap: 5px; }
.star { background: none; border: 0; padding: 3px; cursor: pointer; color: var(--text-faint); transition: color 0.2s, transform 0.2s; }
.star:hover, .star.is-on { color: #fbbf24; transform: scale(1.15); }

.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.025); overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 650; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform 0.3s var(--ease); flex-shrink: 0; color: var(--text-faint); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* --------------------------------------------------------------- forms */
.form-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.field input, .field textarea, .field select, .admin-input {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); color: var(--text);
  font-size: 14.5px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(139,123,255,0.6); background: rgba(139,123,255,0.06);
  box-shadow: 0 0 0 4px rgba(139,123,255,0.1);
}
.form-note { margin: 0; font-size: 13.5px; color: var(--text-faint); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 14.5px; }
.alert-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); color: #6ee7b7; }
.alert-error { background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.3); color: #fda4af; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.checklist { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255,255,255,0.025); margin-bottom: 26px; }
.checklist h3 { margin: 0 0 14px; font-size: 16px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-dim); }
.checklist svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }

/* ---------------------------------------------------------- article */
.article { padding: clamp(36px, 5vw, 64px) 0; }
.article-head { margin-bottom: 34px; }
.article-title { margin: 14px 0 0; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.article-excerpt { margin: 16px 0 0; font-size: 17px; color: var(--text-dim); }
.article-meta { display: flex; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--text-faint); flex-wrap: wrap; }
.article-cover { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 34px; }
.article-body { font-size: 16.5px; }
.article-cta { margin-top: 44px; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--grad-soft); text-align: center; }
.article-cta h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.article-cta p { margin: 0 0 18px; color: var(--text-dim); }

/* --------------------------------------------------------------- cta */
.cta-band { padding-bottom: clamp(60px, 8vw, 100px); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  background: var(--grad-soft);
  position: relative; overflow: hidden;
}
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.cta-inner p { margin: 0; color: var(--text-dim); max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------- errors */
.error-page { padding: clamp(80px, 14vw, 160px) 0; text-align: center; }
.error-code {
  display: block; font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.05em;
}
.error-page .page-sub { margin-inline: auto; }
.error-page .hero-actions { justify-content: center; }
.error-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.error-links a { font-size: 14px; color: var(--text-faint); border-bottom: 1px solid var(--border); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s; }
.error-links a:hover { color: var(--accent-2); border-color: var(--accent-2); }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--border); color: var(--text-faint); }
.empty-state h2 { margin: 0 0 8px; font-size: 22px; }
.empty-state p { margin: 0 0 22px; color: var(--text-dim); }

/* ------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(4, 6, 12, 0.75); padding: clamp(48px, 6vw, 76px) 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-tagline { margin: 16px 0 20px; color: var(--text-dim); font-size: 14px; max-width: 44ch; }
.subscribe { display: flex; gap: 8px; max-width: 380px; }
.subscribe input {
  flex: 1; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text); font-size: 14px; outline: none;
}
.subscribe input:focus { border-color: rgba(139,123,255,0.55); }
.subscribe-note { margin: 10px 0 0; font-size: 13px; color: var(--success); min-height: 18px; }
.footer-col h3 { margin: 0 0 16px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-faint);
}
.footer-bottom p { margin: 0; }

.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: rgba(14,19,34,0.9);
  color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.scroll-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--grad); color: #080c16; border-color: transparent; }

/* ------------------------------------------------------------ preview */
.preview-body { background: #04060c; }
.preview-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px;
  background: rgba(8,11,20,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.preview-bar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.preview-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); transition: background 0.2s; }
.preview-back:hover { background: rgba(255,255,255,0.07); }
.preview-title { display: flex; flex-direction: column; min-width: 0; }
.preview-title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-title span { font-size: 11.5px; color: var(--text-faint); }
.preview-devices { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.03); }
.device-btn { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 999px; border: 0; background: transparent; color: var(--text-faint); cursor: pointer; transition: background 0.2s, color 0.2s; }
.device-btn:hover { color: var(--text); }
.device-btn.is-active { background: var(--grad); color: #080c16; }
.preview-bar-right { display: flex; gap: 8px; }
.preview-stage { display: grid; place-items: start center; padding: 22px; min-height: calc(100vh - 62px); }
.preview-stage iframe {
  width: 100%; height: calc(100vh - 106px);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-lg);
  transition: max-width 0.4s var(--ease);
}
.preview-stage.is-tablet iframe { max-width: 820px; }
.preview-stage.is-mobile iframe { max-width: 400px; }
.preview-stage.is-full iframe { max-width: none; }

/* --------------------------------------------------------- pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 48px; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background 0.2s, border-color 0.2s; }
.page-btn:hover { background: rgba(255,255,255,0.06); border-color: var(--border-strong); }
.page-btn.is-disabled { opacity: 0.35; pointer-events: none; }
.page-numbers { display: flex; gap: 6px; }
.page-num { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; border: 1px solid transparent; font-size: 14px; font-weight: 600; color: var(--text-dim); transition: background 0.2s, color 0.2s; }
.page-num:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.page-num.is-active { background: var(--grad); color: #080c16; }

/* --------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .marquee-track, .mini-card, .hero-badge { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; }
  .detail-columns { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .search-mini { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { display: flex; }
  .mobile-nav[hidden] { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .preview-bar { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .preview-stage { padding: 10px; }
  .cta-inner { text-align: left; }
}
