/* ─────────────────────────────────────────────────────────────
   Rupert Landing Page — Stylesheet
   ───────────────────────────────────────────────────────────── */

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

:root {
  --bg-deep:    #0d0d1a;
  --bg-surface: #16162a;
  --bg-card:    #1e1e38;
  --orange:     #E68C46;
  --orange-dark:#C86428;
  --yellow:     #FFFF96;
  --pink:       #FFB4B4;
  --white:      #FFFFFF;
  --text:       #e8e8f0;
  --text-dim:   #8888aa;
  --border:     #2e2e50;
  --pixel-font: 'Press Start 2P', monospace;
  --body-font:  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--yellow); }

canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

/* ── Typography ───────────────────────────────────────────── */
.pixel { font-family: var(--pixel-font); }

h1, h2, h3 { font-family: var(--pixel-font); line-height: 1.5; }

h2 {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--yellow);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ── Layout ───────────────────────────────────────────────── */
section { padding: 5rem 1.5rem; }

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

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand canvas { width: 24px; height: 24px; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

/* Pixel grid background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230,140,70,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,140,70,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}

/* CRT scanlines */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.08) 0px,
    rgba(0,0,0,0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#hero-canvas {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 0 24px rgba(230,140,70,0.5));
}

.hero-title {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  color: var(--orange);
  text-shadow: 4px 4px 0 var(--orange-dark);
  letter-spacing: 0.05em;
}

.hero-sub {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.8;
}

.hero-compat {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.hero-compat strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--orange);
  color: var(--bg-deep);
  font-family: var(--pixel-font);
  font-size: 0.65rem;
  border: 3px solid var(--orange-dark);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  /* pixel border effect */
  clip-path: polygon(
    0 4px, 4px 4px, 4px 0,
    calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
  );
}

.btn-download:hover {
  background: var(--yellow);
  color: var(--bg-deep);
  transform: translateY(-2px);
}

.btn-download:active { transform: translateY(0); }

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--pixel-font);
  font-size: 0.55rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn-github:hover {
  color: var(--white);
  border-color: var(--text-dim);
  transform: translateY(-2px);
}

.btn-github:active { transform: translateY(0); }

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--pixel-font);
  font-size: 0.55rem;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.1s;
  clip-path: polygon(
    0 4px, 4px 4px, 4px 0,
    calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
  );
}

.btn-secondary:hover {
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.btn-secondary:active { transform: translateY(0); }


.hero-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  font-family: var(--pixel-font);
  font-size: 0.45rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.badge-version { border-color: var(--orange); color: var(--orange); }

/* Sparkles */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--yellow);
  pointer-events: none;
}

@keyframes sparkle-pop {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  30%  { opacity: 1; transform: scale(1.5) rotate(45deg); }
  100% { opacity: 0; transform: scale(0.5) rotate(90deg) translateY(-12px); }
}

/* ── Crew Section ─────────────────────────────────────────── */
#crew {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.5rem;
  justify-items: center;
  max-height: calc(4 * (64px + 4rem) + 3 * 1.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
}

.crew-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.crew-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.crew-card canvas {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 8px rgba(230,140,70,0.25));
}

@keyframes pet-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

.crew-card canvas.pet-bob {
  animation: pet-bob 2s ease-in-out infinite;
}

.crew-name {
  font-family: var(--pixel-font);
  font-size: 0.45rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── Demo Section ─────────────────────────────────────────── */
#demo { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.demo-frame {
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: #111124;
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.demo-dot-red    { background: #ff5f57; }
.demo-dot-yellow { background: #febc2e; }
.demo-dot-green  { background: #28c840; }

.demo-titlebar-label {
  font-family: var(--pixel-font);
  font-size: 0.4rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
}

.demo-desktop {
  background: #07071a;
  background-image:
    linear-gradient(rgba(230,140,70,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,140,70,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 260px;
}

/* Pet widget */
.demo-pet-widget {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: rgba(22, 22, 42, 0.92);
  border: 1px solid var(--border);
  border-radius: 6px;
}

#demo-pet-canvas {
  width: 64px;
  height: 64px;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(230,140,70,0.4));
}

.demo-pet-label {
  font-family: var(--pixel-font);
  font-size: 0.45rem;
  color: var(--orange);
  text-align: center;
}

/* Notification panel */
.demo-notif-panel {
  flex: 1;
  background: rgba(13, 13, 26, 0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
}

.demo-notif-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.875rem;
  background: rgba(230,140,70,0.08);
  border-bottom: 1px solid var(--border);
  font-family: var(--pixel-font);
  font-size: 0.45rem;
  color: var(--orange);
}

.demo-notif-indicator {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.demo-notif-list {
  padding: 0.25rem 0;
  overflow: hidden;
  height: 190px;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.875rem;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}

.notif-item.entering {
  animation: notif-in 0.25s ease forwards;
}

.notif-item.exiting {
  animation: notif-out 0.25s ease forwards;
}

@keyframes notif-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes notif-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.notif-bullet {
  width: 5px; height: 5px;
  background: var(--orange);
  flex-shrink: 0;
  border-radius: 1px;
}

.notif-msg {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-family: var(--pixel-font);
  font-size: 0.35rem;
  color: var(--text-dim);
  flex-shrink: 0;
  min-width: 3.5rem;
  text-align: right;
}

/* Demo responsive */
@media (max-width: 520px) {
  .demo-desktop { flex-direction: column; align-items: stretch; padding: 1.25rem; }
  .demo-pet-widget { flex-direction: row; justify-content: center; }
}

/* ── Vibe Coders Section ──────────────────────────────────── */
#vibers {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#demo-video {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

#demo-video .container {
  padding: 0;
  max-width: 50%;
}

#demo-video video {
  display: block;
  width: 100%;
  height: auto;
}

.vibers-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: -1.5rem auto 3rem;
  line-height: 1.8;
}

.vibers-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Terminal */
.vibers-terminal {
  background: #07071a;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.vterm-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #111124;
  border-bottom: 1px solid var(--border);
}

.vterm-title {
  font-family: var(--pixel-font);
  font-size: 0.4rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
}

.vterm-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.vterm-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.vterm-prompt {
  color: var(--orange);
  flex-shrink: 0;
  user-select: none;
}

.vterm-prompt::before { content: '> '; }

.vterm-cmd { color: var(--text); }

.vterm-flag { color: var(--yellow); }

.vterm-out {
  color: var(--text-dim);
  padding-left: 1.4rem;
  font-size: 0.78rem;
}

.vterm-gap { height: 0.5rem; }

.vterm-comment {
  color: #445;
  padding-left: 1.4rem;
  font-size: 0.78rem;
}

.vterm-cursor {
  color: var(--orange);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Props */
.vibers-props {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vibe-prop { display: flex; flex-direction: column; gap: 0.5rem; }

.vibe-title {
  font-family: var(--pixel-font);
  font-size: 0.52rem;
  color: var(--text);
  line-height: 1.6;
}

.vibe-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
}

@media (max-width: 680px) {
  .vibers-layout { grid-template-columns: 1fr; }
}

/* ── Features Section ─────────────────────────────────────── */
#features { background: var(--bg-deep); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  transition: border-top-color 0.2s, transform 0.15s;
}

.feature-card:hover {
  border-top-color: var(--yellow);
  transform: translateY(-2px);
}

.feature-title {
  font-family: var(--pixel-font);
  font-size: 0.55rem;
  color: var(--orange);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Crew Community Bar ───────────────────────────────────── */
.crew-community-bar {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.community-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.8;
  margin: 0;
}

.crew-share-open-btn {
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.crew-share-open-btn:hover {
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(230,140,70,0.15);
}

.crew-share-open-btn.open {
  color: var(--text-dim);
  border-color: var(--border);
}

/* Collapsible wrapper using max-height */
.share-panel-wrapper {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.share-panel-wrapper.expanded {
  max-height: 700px;
}


.community-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.6;
  max-width: 520px;
  margin: 0 auto;
}

.community-disclaimer a {
  color: var(--text-dim);
  text-decoration: underline;
}

.community-sub code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.82rem;
  color: var(--yellow);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
}

.community-status {
  text-align: center;
  font-family: var(--pixel-font);
  font-size: 0.45rem;
  color: var(--text-dim);
  padding: 4rem 0;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.community-card {
  position: relative;
}

.community-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  min-height: 1.1rem;
}

.community-count {
  font-family: var(--pixel-font);
  font-size: 0.38rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  letter-spacing: 0.04em;
}

.community-dl-btn {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--pixel-font);
  font-size: 0.38rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.community-dl-btn:hover {
  background: var(--orange);
  color: var(--bg-deep);
}

.community-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--orange);
  color: var(--bg-deep);
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  border: 3px solid var(--orange-dark);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  clip-path: polygon(
    0 4px, 4px 4px, 4px 0,
    calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
  );
}

.community-share-btn:hover:not(:disabled) {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,140,70,0.3);
}

.community-share-btn:active { transform: translateY(0); }

.community-share-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--text-dim);
  border-color: #444;
}

/* ── Share Panel ─────────────────────────────────────────── */
.share-form--hidden { display: none !important; }

.share-panel {
  border: 2px solid var(--orange-dark);
  background: var(--bg-card);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 8px 40px rgba(0,0,0,0.55),
    0 0 80px rgba(230,140,70,0.05),
    inset 0 1px 0 rgba(255,255,255,0.035);
  overflow: hidden;
}

.share-panel-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #1c1c32 0%, #111124 100%);
  border-bottom: 2px solid var(--orange-dark);
}

.share-panel-title {
  font-family: var(--pixel-font);
  font-size: 0.42rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
  text-shadow: 0 0 14px rgba(230,140,70,0.45);
}

.share-panel-body {
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  flex-direction: column;
}

/* Side-by-side when preview is loaded */
.share-panel-body:has(> .share-preview:not(.share-form--hidden)) {
  flex-direction: row;
  align-items: flex-start;
}

.share-panel-body:has(> .share-preview:not(.share-form--hidden)) .share-drop-zone {
  flex: 1;
  min-width: 0;
}

.share-drop-zone {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-file-area {
  position: relative;
  border: 2px dashed rgba(46,46,80,0.9);
  padding: 2.75rem 2rem;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(230,140,70,0.04) 0%, transparent 65%),
    rgba(13,13,26,0.5);
}

.share-file-area:hover {
  border-color: var(--orange);
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 110%, rgba(230,140,70,0.09) 0%, transparent 65%),
    rgba(230,140,70,0.02);
  box-shadow: inset 0 0 0 1px rgba(230,140,70,0.08);
}

.share-file-area.drag-over {
  border-color: var(--yellow);
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255,255,150,0.08) 0%, transparent 65%),
    rgba(255,255,150,0.02);
}

.share-file-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 0; /* suppress "no file selected" label text */
}

.share-drop-glyph {
  font-size: 2.25rem;
  color: var(--orange-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
  transition: color 0.2s, transform 0.3s;
  filter: drop-shadow(0 2px 10px rgba(200,100,40,0.35));
}

.share-file-area:hover .share-drop-glyph {
  color: var(--orange);
  transform: translateY(-5px);
  filter: drop-shadow(0 6px 16px rgba(230,140,70,0.55));
}

.share-drop-main {
  font-family: var(--pixel-font);
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  color: inherit;
  line-height: 1.6;
}

.share-drop-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.75;
}

.share-hint {
  font-size: 0.78rem;
  min-height: 1.2rem;
  padding: 0.2rem 0.25rem;
}

.share-hint.error { color: #ff6b6b; }
.share-hint.ok    { color: #6bff9e; }

.share-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem 1.25rem;
  border: 1px solid var(--orange-dark);
  background: rgba(13,13,26,0.65);
  box-shadow: 0 0 24px rgba(230,140,70,0.07), inset 0 1px 0 rgba(255,255,255,0.03);
  min-width: 120px;
}

#share-preview-canvas {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 10px rgba(230,140,70,0.35));
}

.share-preview-name {
  font-family: var(--pixel-font);
  font-size: 0.46rem;
  color: var(--text);
  text-align: center;
  line-height: 1.6;
}

.share-preview-id {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

.share-preview-info {
  width: 100%;
  text-align: center;
}

.share-footer {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(46,46,80,0.8);
  flex-wrap: wrap;
  background: rgba(10,10,22,0.3);
}

.share-footer-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

.share-footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.share-label {
  font-family: var(--pixel-font);
  font-size: 0.42rem;
  color: var(--text-dim);
  letter-spacing: 0.07em;
}

.share-input {
  background: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.875rem;
  padding: 0.6rem 0.8rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.share-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230,140,70,0.1);
}

.share-status {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--pixel-font);
  line-height: 1.5;
  max-width: 160px;
  word-break: break-word;
}

/* ── Install Section ──────────────────────────────────────── */
#install {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.step-num {
  font-family: var(--pixel-font);
  font-size: 1.2rem;
  color: var(--orange);
  min-width: 2.5rem;
  line-height: 1;
  padding-top: 0.15rem;
}

.step-body h3 {
  font-family: var(--pixel-font);
  font-size: 0.55rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.step-body p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.step-body code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  color: var(--yellow);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-pet { width: 32px; height: 32px; }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-links a {
  font-family: var(--pixel-font);
  font-size: 0.45rem;
  color: var(--text-dim);
}

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

.footer-copy {
  font-family: var(--pixel-font);
  font-size: 0.4rem;
  color: var(--text-dim);
  opacity: 0.6;
  line-height: 2;
}

/* ── Scroll animation ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0.75rem 1rem; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-height: calc(4 * (64px + 4rem) + 3 * 0.75rem); }
  section { padding: 3.5rem 1rem; }
  .gallery-slide { width: calc(80% - 0.5rem); }
}
