:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --border: #1e1e2e;
  --cyan: #00f5ff;
  --green: #00ff88;
  --pink: #ff2d78;
  --text: #e0e0f0;
  --muted: #555570;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}
.nav-store-link {
  color: var(--cyan) !important;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: .25rem .7rem !important;
  font-size: .8rem;
  letter-spacing: .04em;
}
.nav-store-link:hover { background: rgba(0,255,255,.08); }
.nav-mobile-store { color: var(--cyan) !important; }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile drawer */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
  transition: right 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
.nav-mobile.open { right: 0; }
.nav-mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 4px 8px;
}
.nav-mobile-link {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-mobile-link:hover { color: var(--cyan); }
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.nav-mobile-overlay.open { display: block; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, color 0.15s;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { color: var(--cyan); border-color: var(--cyan); }

/* Hero */
.hero {
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.product-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.product-icon { font-size: 2rem; }

.product-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.product-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Page content */
.page-content {
  max-width: 640px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.page-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.page-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* CTA row */
.cta-row { margin-top: 2rem; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:active { transform: scale(0.98); }

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
}

.form-group textarea { resize: vertical; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-label { font-size: 0.8rem; color: var(--muted); }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--cyan); }

/* ═══════════════════════════════════════════════════════════════════════════
   HOME PAGE REDESIGN — Design System Extension
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS additions ─────────────────────────────────────────────────────────── */
:root {
  --gold: #f5c842;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --glass-bg: rgba(19, 19, 26, 0.7);
  --glass-border: rgba(255,255,255,0.06);
  --section-gap: 5rem;
}

/* ── Grain texture overlay ─────────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Nav scrolled state ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.nav--scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

/* ── Ghost button ──────────────────────────────────────────────────────────── */
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 6rem 4rem 4rem;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,245,255,0.18) 0%, transparent 70%);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,45,120,0.14) 0%, transparent 70%);
  bottom: 5%; right: 10%;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,255,136,0.10) 0%, transparent 70%);
  top: 55%; left: 35%;
  animation-delay: -5.5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.hero-name {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Hero 3D card ──────────────────────────────────────────────────────────── */
.hero-card-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.hero-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 360px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform-style: preserve-3d;
  box-shadow:
    0 0 0 1px rgba(0,245,255,0.06),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(0,245,255,0.04);
}
.hero-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,245,255,0.15), transparent 50%, rgba(255,45,120,0.1));
  pointer-events: none;
}
.hero-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-card-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.2rem 0;
}
.hcs-n {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hcs-plus {
  font-size: 1.6rem;
  color: var(--cyan);
}
.hcs-l {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-card-divider {
  height: 1px;
  background: var(--glass-border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(0.8); }
}

/* ── Section base ──────────────────────────────────────────────────────────── */
.section {
  padding-top: var(--section-gap);
  padding-bottom: calc(var(--section-gap) * 0.5);
  position: relative;
}
.contact-section {
  padding-bottom: var(--section-gap);
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}
.section-inner--narrow {
  max-width: 760px;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.section-heading {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 3rem;
}

/* ── About section ─────────────────────────────────────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-left .section-heading { margin-bottom: 1.5rem; }
.about-bio {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chip svg { flex-shrink: 0; }

.differentiator-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.diff-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.diff-item:last-child { border-bottom: none; }
.diff-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.55rem;
}
.diff-dot--cyan  { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.diff-dot--green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.diff-dot--pink  { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.diff-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.diff-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Experience timeline ───────────────────────────────────────────────────── */
.experience-section { background: linear-gradient(to bottom, transparent, rgba(19,19,26,0.5), transparent); }
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.5rem;
  position: relative;
}
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.25rem;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.15), 0 0 12px rgba(0,245,255,0.4);
  flex-shrink: 0;
  z-index: 1;
}
.timeline-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), rgba(0,245,255,0.1));
  margin-top: 4px;
  min-height: 60px;
}
.timeline-content {
  padding-bottom: 3rem;
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.timeline-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  background: rgba(0,245,255,0.1);
  border: 1px solid rgba(0,245,255,0.25);
  color: var(--cyan);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.timeline-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  background: rgba(30,30,46,0.8);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Achievement cards (glassmorphism) ─────────────────────────────────────── */
.achievements-section { background: linear-gradient(to bottom, transparent, rgba(10,10,15,0.8)); }
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.achievement-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.achievement-card:hover {
  border-color: rgba(0,245,255,0.2);
  box-shadow: 0 0 40px rgba(0,245,255,0.06), 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}
.ach-number {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.ach-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.achievement-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.ach-context {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.ach-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.ach-metrics {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.ach-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ach-metric-n {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ach-metric-l {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Tech stack ────────────────────────────────────────────────────────────── */
.stack-section { background: rgba(19,19,26,0.3); }
.stack-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.stack-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
}
.pill:hover { transform: scale(1.06); }
.pill--expert {
  background: rgba(0,245,255,0.08);
  border-color: rgba(0,245,255,0.25);
  color: var(--cyan);
}
.pill--expert:hover { box-shadow: 0 0 14px rgba(0,245,255,0.25); }
.pill--advanced {
  background: rgba(0,255,136,0.06);
  border-color: rgba(0,255,136,0.2);
  color: var(--green);
}
.pill--advanced:hover { box-shadow: 0 0 14px rgba(0,255,136,0.2); }
.pill--mid {
  background: rgba(30,30,46,0.7);
  border-color: var(--border);
  color: var(--muted);
}

/* ── Products v2 ───────────────────────────────────────────────────────────── */
.product-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card-v2 {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.product-card-v2:focus-visible,
.product-feat-card:focus-visible,
.tool-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.product-card-v2 {
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
  will-change: transform;
}
.product-card-v2:hover { border-color: rgba(255,255,255,0.12); }
.pcv2-accent {
  height: 3px;
  width: 100%;
}
.pcv2-accent--cyan  { background: linear-gradient(90deg, var(--cyan), transparent); }
.pcv2-accent--green { background: linear-gradient(90deg, var(--green), transparent); }
.pcv2-accent--pink  { background: linear-gradient(90deg, var(--pink), transparent); }
.pcv2-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pcv2-icon { font-size: 2rem; }
.product-card-v2 h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
.product-card-v2 p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.pcv2-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.product-card-v2:hover .pcv2-link { color: var(--text); }

/* ── Portfolio grid ────────────────────────────────────────────────────────── */
.portfolio-section { background: rgba(10,10,15,0.4); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.portfolio-card:hover {
  border-color: rgba(0,245,255,0.2);
  box-shadow: 0 0 40px rgba(0,245,255,0.06), 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}
.pf-accent {
  height: 3px;
  width: 100%;
}
.pf-accent--cyan  { background: linear-gradient(90deg, var(--cyan), transparent); }
.pf-accent--green { background: linear-gradient(90deg, var(--green), transparent); }
.pf-accent--pink  { background: linear-gradient(90deg, var(--pink), transparent); }
.pf-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pf-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pf-lang {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pf-lang--go {
  background: rgba(0,245,255,0.1);
  border: 1px solid rgba(0,245,255,0.2);
  color: var(--cyan);
}
.pf-lang--cpp {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
  color: var(--green);
}
.pf-status {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
}
.pf-status--live {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.25);
  color: var(--green);
}
.pf-status--active {
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.2);
  color: var(--cyan);
}
.pf-status--shipped {
  background: rgba(255,45,120,0.08);
  border: 1px solid rgba(255,45,120,0.2);
  color: var(--pink);
}
.portfolio-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.pf-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}
.pf-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: rgba(30,30,46,0.8);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Minor projects ───────────────────────────────────────────────────────── */
.pf-minor-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 1.25rem;
}
.pf-minor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}
.pf-minor-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}
.pf-minor-card:hover {
  border-color: rgba(0,245,255,0.15);
  transform: translateY(-1px);
}
.pf-minor-name {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.pf-minor-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pf-minor-card .pf-lang {
  flex-shrink: 0;
}

/* ── Infrastructure Timeline ───────────────────────────────────────────────── */
.infra-section {
  background: rgba(10,10,15,0.6);
}
.infra-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.infra-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 2rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,245,255,0.2) transparent;
}
.infra-track::-webkit-scrollbar { height: 4px; }
.infra-track::-webkit-scrollbar-thumb { background: rgba(0,245,255,0.2); border-radius: 2px; }
/* Horizontal line through all markers */
.infra-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(2rem + 3.2rem);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--pink), var(--cyan));
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.infra-marker {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 0.5rem;
}
/* Problem label above the line */
.infra-problem {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-align: center;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
/* Date above problem */
.infra-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
/* Dot on the line */
.infra-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.infra-dot--cyan { background: var(--cyan); box-shadow: 0 0 14px rgba(0,245,255,0.5); }
.infra-dot--green { background: var(--green); box-shadow: 0 0 14px rgba(0,255,136,0.5); }
.infra-dot--pink { background: var(--pink); box-shadow: 0 0 14px rgba(255,45,120,0.5); }
/* Card below the line */
.infra-card {
  padding: 1.25rem;
  border-radius: 12px;
  width: 260px;
  flex-shrink: 0;
}
.infra-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.infra-solution {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}
.infra-compare {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 0.5rem 0.6rem;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid rgba(0,245,255,0.2);
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.5rem;
}
.infra-label {
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}
.infra-delta {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
}
.infra-delta--ahead {
  color: var(--green);
  background: rgba(0,255,136,0.08);
}
.infra-proof {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.5;
  font-style: italic;
}
@media (max-width: 768px) {
  .infra-track {
    flex-direction: column;
    overflow-x: visible;
    gap: 1.5rem;
    align-items: stretch;
  }
  .infra-track::before {
    top: 0;
    bottom: 0;
    left: 1rem;
    right: auto;
    width: 2px;
    height: auto;
  }
  .infra-marker {
    flex: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 0 0 2.5rem;
  }
  .infra-dot {
    position: absolute;
    left: 0.45rem;
    top: 0;
    margin-bottom: 0;
  }
  .infra-date {
    position: absolute;
    left: 2.5rem;
    top: -0.1rem;
  }
  .infra-problem {
    margin-bottom: 0;
    margin-top: 1rem;
  }
  .infra-card {
    width: 100%;
  }
}

/* ── Contact section ───────────────────────────────────────────────────────── */
.contact-section {
  text-align: center;
  overflow: hidden;
}
.contact-glow-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,245,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
}
.contact-heading { text-align: center; margin: 0 auto 1.5rem; }
.contact-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}
.contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.cd-sep { opacity: 0.35; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cyan);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-full {
    grid-template-columns: 1fr;
    padding: 5rem 2rem 3rem;
    text-align: center;
    min-height: auto;
  }
  .hero-cta { justify-content: center; }
  .hero-card-wrap { justify-content: center; }
  .hero-card { max-width: 320px; }
  .hero-scroll-hint { display: none; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-inner { padding: 0 1.5rem; }
  .section-heading { font-size: 2rem; }
  .achievement-grid { grid-template-columns: 1fr; }
  .stack-categories { grid-template-columns: 1fr 1fr; }
  .site-footer-inner { padding: 0 1.5rem; }

  /* Show hamburger, hide desktop nav links */
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .stack-categories { grid-template-columns: 1fr; }
  .hero-name { font-size: 3.2rem; }
}

/* ── Live Build Feed ──────────────────────────────────────────────────────── */
.livebuild-section { background: transparent; }
.section-sub { color: var(--text-muted); margin-top: -1rem; margin-bottom: 2.5rem; max-width: 560px; }
.inline-link { color: var(--accent); text-decoration: underline; }

.live-feed-card {
  max-width: 760px;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--accent);
}
.live-feed-inner { min-height: 80px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #22d3ee; margin-bottom: 1rem;
}
.live-badge--idle { color: var(--text-muted); }
.live-idle { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; opacity: 0.7; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.live-dot--idle { background: var(--text-muted); box-shadow: none; animation: none; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Multi-project ecosystem rows */
.live-project-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.live-project-row:last-child { border-bottom: none; padding-bottom: 0; }
.live-project-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 0.3rem; gap: 1rem;
}
.live-project-name {
  font-size: 1rem; font-weight: 600; color: var(--text);
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.live-project-completion {
  font-size: 0.75rem; font-weight: 600; color: #22d3ee;
  white-space: nowrap;
}
.live-project-desc {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 0.35rem;
}
.live-project-built {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 0.35rem; opacity: 0.75;
}
.live-project-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem;
}
.live-project-next { color: #a78bfa; }
.live-time { color: var(--text-muted); opacity: 0.6; margin-left: auto; }

/* Legacy single-task styles */
.live-task-title { font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.live-task-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.live-project { color: var(--accent); font-weight: 500; }
.live-sep { opacity: 0.4; }
.live-task-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── OSS Projects ─────────────────────────────────────────────────────────── */
.projects-section { background: transparent; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.project-card { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.proj-header { display: flex; align-items: flex-start; gap: 1rem; }
.proj-icon { font-size: 1.8rem; line-height: 1; padding-top: 0.2rem; flex-shrink: 0; }
.proj-meta h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--text); }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.project-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.proj-findings {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
  border-left: 2px solid rgba(99,102,241,0.4);
  padding-left: 0.875rem;
}
.proj-findings strong { color: var(--text); }
.proj-findings code { font-family: monospace; font-size: 0.8rem; color: #a5b4fc; background: rgba(99,102,241,0.1); padding: 0.1em 0.3em; border-radius: 3px; }
.proj-link {
  display: inline-flex; align-items: center;
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent); text-decoration: none; margin-top: auto;
  transition: gap 0.2s;
}
.proj-link:hover { gap: 0.3rem; }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT PAGES — Shared styles for /products/* pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.pp-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--accent) 12%, var(--bg)) 50%, var(--bg) 100%);
}
.pp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.pp-hero-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -10%; left: 10%;
}
.pp-hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,45,120,0.1) 0%, transparent 70%);
  bottom: 0; right: 10%;
  animation-delay: -4s;
}
.pp-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.pp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  border-radius: 9999px;
  padding: 8px 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}
.pp-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}
.pp-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.pp-hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.pp-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.pp-btn {
  background: var(--accent) !important;
  color: #000 !important;
}
.pp-btn:hover { opacity: 0.9; }

/* ── Stats bar ─────────────────────────────────────────────────────────────── */
.pp-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 1rem;
}
.pp-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.pp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.pp-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pp-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Feature cards ─────────────────────────────────────────────────────────── */
.pp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.pp-feature-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.2s;
}
.pp-feature-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
}
.pp-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.pp-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.pp-feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* ── Differentiator section ────────────────────────────────────────────────── */
.pp-diff-section {
  background: linear-gradient(to bottom, transparent, rgba(19,19,26,0.5), transparent);
}
.pp-diff-note {
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
  margin-top: 0.4rem;
}

/* ── Tech stack grid ───────────────────────────────────────────────────────── */
.pp-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.pp-tech-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.pp-tech-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.pp-tech-items {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── FAQ list ──────────────────────────────────────────────────────────────── */
.pp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pp-faq-item {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.pp-faq-item:hover {
  border-color: var(--accent-glow);
}
.pp-faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.pp-faq-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── CTA section ───────────────────────────────────────────────────────────── */
.pp-cta-section {
  background: linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--accent) 8%, var(--bg)) 50%, var(--bg) 100%);
}
.pp-cta-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ── Product page responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pp-hero { min-height: auto; padding: 4rem 1.5rem 3rem; }
  .pp-hero-title { font-size: 2.2rem; }
  .pp-stats-inner { gap: 1.5rem; }
  .pp-features-grid { grid-template-columns: 1fr; }
  .pp-tech-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .pp-tech-grid { grid-template-columns: 1fr; }
}

/* ── Product card accent color extensions ──────────────────────────────────── */
.pcv2-accent--sky     { background: linear-gradient(90deg, #0284c7, transparent); }
.pcv2-accent--indigo  { background: linear-gradient(90deg, #4f46e5, transparent); }
.pcv2-accent--violet  { background: linear-gradient(90deg, #7c3aed, transparent); }
.pcv2-accent--amber   { background: linear-gradient(90deg, #d97706, transparent); }
.pcv2-accent--teal    { background: linear-gradient(90deg, #0d9488, transparent); }
.pcv2-accent--rose    { background: linear-gradient(90deg, #e11d48, transparent); }
.pcv2-accent--orange  { background: linear-gradient(90deg, #ea580c, transparent); }
.pcv2-accent--lime    { background: linear-gradient(90deg, #65a30d, transparent); }
.pcv2-accent--slate   { background: linear-gradient(90deg, #3b82f6, transparent); }
.pcv2-accent--fuchsia { background: linear-gradient(90deg, #c026d3, transparent); }
.pcv2-accent--navy    { background: linear-gradient(90deg, #1e40af, transparent); }

/* ── Companion articles section (generated product pages) ──────────────────── */
.pp-companions-section { background: var(--bg); }

.pp-companions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pp-companion-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.15s, transform 0.12s;
}
.pp-companion-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.pp-companion-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  align-self: flex-start;
}
.pp-companion-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}
.pp-companion-arrow {
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
}

/* ── Web-eater URL eater section ───────────────────────────────────────────── */
.we-eat-section {
  border-top: 1px solid #1e1e1e;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}
.we-eat-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.we-eat-section p {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 0.85rem;
}
.we-eat-result {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
}
.we-eat-result-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.we-eat-result-meta {
  font-size: 0.72rem;
  color: #555;
  margin-bottom: 0.75rem;
}
.we-eat-result-body {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.65;
  max-height: 280px;
  overflow-y: auto;
}
.we-eat-publish-bar {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.we-eat-publish-slug {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  color: #e0e0e0;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-family: monospace;
}
.we-eat-btn-pub {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.we-eat-btn-pub:hover { background: #6d28d9; }

/* ─── Hero search bar ────────────────────────────────────────────────────── */
.hero-search-bar {
  margin-top: 2.5rem;
  max-width: 560px;
}
.hero-search-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}
.hero-search-form {
  display: flex;
  gap: 0.5rem;
}
.hero-search-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.hero-search-input::placeholder { color: var(--muted); }
.hero-search-input:focus { border-color: var(--cyan); }
.hero-search-btn {
  background: var(--cyan);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.hero-search-btn:hover { opacity: 0.85; }

/* ─── Featured product row ───────────────────────────────────────────────── */
.products-featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 1100px) { .products-featured-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .products-featured-row { grid-template-columns: 1fr; } }

.product-feat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-feat-card:hover { border-color: rgba(255,255,255,0.2); }
.pfc-accent {
  height: 4px;
  width: 100%;
}
.pfc-body {
  padding: 1.4rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.pfc-icon { font-size: 1.6rem; }
.pfc-body h3 { font-size: 1rem; font-weight: 700; }
.pfc-body p  { font-size: 0.82rem; color: var(--muted); line-height: 1.5; flex: 1; }
.pfc-link {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
}

/* ─── Tools section ──────────────────────────────────────────────────────── */
.tools-section { background: linear-gradient(180deg, transparent, rgba(0,245,255,0.02) 50%, transparent); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 960px)  { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
}
.tool-card-icon { font-size: 2.2rem; }
.tool-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.tool-card-accent--cyan  { background: var(--cyan); }
.tool-card-accent--pink  { background: var(--pink); }
.tool-card-accent--green { background: var(--green); }

.tool-card h3 { font-size: 1.1rem; font-weight: 700; }
.tool-card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.tool-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tool-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 0.25rem;
}

.tool-search-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.tool-search-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
  transition: border-color 0.15s;
}
.tool-search-input::placeholder { color: var(--muted); }
.tool-search-input:focus { border-color: var(--cyan); }

/* ── 3D Model Viewer Section ─────────────────────────── */
.pp-model3d-section { background: var(--surface); }
.pp-model3d-inner { text-align: center; }
.pp-model3d-viewer {
  margin: 2rem auto 0;
  max-width: 600px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0d1117 0%, #000 100%);
}
.pp-model3d-viewer model-viewer {
  --poster-color: transparent;
}
