:root {
  --bg: #0f0f10;
  --surface: #161617;
  --elev: #1d1d1f;
  --text: #e8e8ea;
  --muted: #9b9ba1;
  --primary: #4d7cff;
  --border: #2a2a2e;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(15,15,16,0.7); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-logo { width: 28px; height: 28px; }
.brand-emoji { font-size: 24px; line-height: 1; display: inline-block; }
.nav a { color: var(--text); text-decoration: none; margin-left: 18px; opacity: .9; }
.nav a:hover { opacity: 1; }

.hero { padding: 56px 0 24px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero-copy h1 { margin: 0 0 8px; font-size: 2.4rem; letter-spacing: -0.02em; }
.hero-copy .subtitle { margin-top: 0; margin-bottom: 18px; }
.cta-row { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.btn:hover { transform: translateY(-1px); border-color: #3a3a3f; }
.btn-primary { background: var(--primary); border-color: #3d67d6; color: white; }
.btn-primary:hover { background: #3d67d6; }
.btn-secondary { background: var(--surface); }

.hero-visual .preview-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; min-height: 220px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.gesture-animation { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.gesture-card { position: absolute; display: grid; place-items: center; gap: 12px; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.gesture-card.active { opacity: 1; transform: translateY(0); }
.gesture-icon { font-size: 48px; line-height: 1; }
.app-preview { display: grid; place-items: center; gap: 6px; }
.app-icon { width: 32px; height: 32px; background: var(--elev); border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.app-name { font-size: 12px; color: var(--muted); font-weight: 500; }

.download { padding: 16px 0 40px; }
.command-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.command-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: transform .25s ease, border-color .2s ease, background .2s ease; }
.command-card:hover { transform: translateY(-2px); border-color: #3a3a3f; background: var(--elev); }
.command-card .card-icon { margin-bottom: 12px; }
.command-card .card-icon img { width: 28px; height: 28px; }
.command-card .card-title { font-weight: 600; margin-bottom: 4px; }
.command-card .card-sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.command-card .command-container { display: flex; align-items: center; gap: 8px; background: var(--elev); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.command-card .command-text { flex: 1; font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace; font-size: 0.9rem; color: var(--muted); background: none; border: none; outline: none; font-style: italic; }
.command-card .copy-btn { background: var(--primary); border: none; border-radius: 6px; color: white; padding: 8px 12px; cursor: pointer; font-size: 14px; transition: background .2s ease; flex-shrink: 0; }
.command-card .copy-btn:hover { background: #3d67d6; }
.command-card.active { outline: 2px solid var(--primary); outline-offset: 0; }


.features { padding: 14px 0 64px; border-top: 1px solid var(--border); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; transition: transform .25s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); border-color: #3a3a3f; }
.card-media { width: 44px; height: 44px; display: grid; place-items: center; background: var(--elev); border-radius: 10px; margin-bottom: 10px; }
.card-media img { width: 24px; height: 24px; }
.emoji-icon { font-size: 22px; line-height: 1; display: inline-block; }

.built-with { padding: 14px 0 64px; border-top: 1px solid var(--border); }
.tech-canvas-container { position: relative; margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.canvas-controls { position: absolute; top: 20px; right: 20px; display: flex; gap: 8px; z-index: 10; }
.canvas-btn { width: 32px; height: 32px; background: var(--elev); border: 1px solid var(--border); border-radius: 6px; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; transition: all .2s ease; }
.canvas-btn:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-1px); }
#tech-canvas { display: block; margin: 0 auto; border-radius: 8px; cursor: grab; }
#tech-canvas:active { cursor: grabbing; }
.canvas-instructions { text-align: center; margin-top: 12px; }
.tech-legend { margin-top: 20px; padding: 16px; background: var(--elev); border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.tech-legend h4 { margin: 0 0 12px; font-size: 0.95rem; color: var(--primary); }
.legend-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-emoji { font-size: 16px; }
.legend-label { font-size: 0.85rem; color: var(--muted); }

/* Node details panel */
.node-details { position: absolute; left: 20px; top: 20px; background: rgba(0,0,0,.85); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; max-width: 420px; backdrop-filter: blur(12px); animation: fadeIn .2s ease; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.node-details.hidden { display: none; }
.node-details .node-title { font-weight: 700; margin-bottom: 12px; font-size: 1.2rem; color: var(--primary); }
.node-details .node-desc { line-height: 1.7; font-size: 0.95rem; color: var(--text); }

/* Technology categories panel */
.tech-categories { position: absolute; right: 20px; top: 20px; background: rgba(0,0,0,.85); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; max-width: 280px; backdrop-filter: blur(12px); animation: fadeIn .2s ease; box-shadow: 0 12px 40px rgba(0,0,0,.4); transition: transform 0.3s ease, opacity 0.3s ease; }
.tech-categories.hidden { transform: translateX(100%); opacity: 0; pointer-events: none; }
.tech-categories .categories-title { font-weight: 700; margin-bottom: 16px; font-size: 1.1rem; color: var(--primary); }
.tech-categories .categories-list { display: flex; flex-direction: column; gap: 12px; }
.tech-categories .category-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; transition: all 0.2s ease; }
.tech-categories .category-item.highlighted { background: rgba(77, 124, 255, 0.1); border-radius: 6px; padding: 8px 12px; margin: 0 -12px; }
.tech-categories .category-emoji { font-size: 18px; line-height: 1; display: inline-block; }
.tech-categories .category-label { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.tech-categories .category-item.highlighted .category-label { color: var(--primary); font-weight: 600; }

.site-footer { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.foot-right a { color: var(--text); text-decoration: none; margin-left: 12px; opacity: .9; }
.foot-right a:hover { opacity: 1; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 900px) { 
  .hero-inner { grid-template-columns: 1fr; } 
  .download-grid, .cards { grid-template-columns: 1fr; } 
}


