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

:root {
  --bg: #f8f8ff;
  --bg-2: #eeeeff;
  --bg-3: #e4e4f8;
  --surface: #ffffff;
  --surface-2: #f0f0ff;
  --border: rgba(100, 80, 200, 0.15);
  --text: #1a1228;
  --text-2: #4a4060;
  --text-3: #7a6a9a;
  --accent: #6c5ce7;
  --accent-2: #a78bfa;
  --accent-glow: rgba(108, 92, 231, 0.25);
  --gradient: linear-gradient(135deg, #6c5ce7 0%, #a78bfa 100%);
  --shadow: 0 4px 24px rgba(108, 92, 231, 0.12);
  --shadow-lg: 0 12px 48px rgba(108, 92, 231, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0b0b18;
  --bg-2: #0f0f22;
  --bg-3: #13132e;
  --surface: #14142a;
  --surface-2: #1a1a38;
  --border: rgba(140, 120, 255, 0.12);
  --text: #e8e4ff;
  --text-2: #b0a8d8;
  --text-3: #7068a8;
  --accent: #8b7cf8;
  --accent-2: #c4b5fd;
  --accent-glow: rgba(139, 124, 248, 0.3);
  --gradient: linear-gradient(135deg, #7c6ff0 0%, #c4b5fd 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(var(--bg-raw, 11, 11, 24), 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .header.scrolled { background: rgba(11, 11, 24, 0.85); }
[data-theme="light"] .header.scrolled { background: rgba(248, 248, 255, 0.85); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.logo img { border-radius: 8px; }

.logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.btn-icon, .btn-lang {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s, box-shadow 0.2s;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon { width: 38px; height: 38px; font-size: 1rem; }
.btn-lang { padding: 0 0.9rem; height: 38px; min-width: 54px; letter-spacing: 0.05em; }

.btn-icon:hover, .btn-lang:hover {
  background: var(--surface-2);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.icon-sun, .icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: inline; }
[data-theme="light"] .icon-sun { display: inline; }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  top: -200px;
  right: -200px;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  max-width: 100vw;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-version {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 8px 30px var(--accent-glow); }

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { background: var(--surface-2); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  font-size: 1.4rem;
  color: var(--text-3);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}


.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  animation-delay: var(--delay, 0ms);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}

.install { background: var(--bg-2); }

.tabs {
  max-width: 680px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.tab-btn.active {
  background: var(--gradient);
  color: #fff;
}

.tab-btn:not(.active):hover { background: var(--surface-2); color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.code-block {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  gap: 0.75rem;
  position: relative;
}

.code-block code {
  flex: 1;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.88rem;
  color: var(--accent-2);
  white-space: nowrap;
  overflow-x: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.code-block code::-webkit-scrollbar { height: 3px; }
.code-block code::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  border-radius: 6px;
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.copy-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }
.copy-btn.copied { color: #28c840; border-color: #28c840; }


.install-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.install-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.install-note a:hover { color: var(--accent-2); }

.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer-left img { border-radius: 6px; opacity: 0.7; }
.footer-sep { opacity: 0.4; }

.footer-right {
  display: flex;
  gap: 1.25rem;
}

.footer-right a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.animate {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.fade-up { transform: translateY(28px); }
.animate.slide-left { transform: translateX(-40px); }
.animate.slide-right { transform: translateX(40px); }
.animate.fade-up.visible, .animate.slide-left.visible, .animate.slide-right.visible {
  opacity: 1;
  transform: none;
}

.animate.visible { transition-delay: var(--delay, 0ms); }

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  .tab-buttons { flex-wrap: wrap; border-radius: var(--radius-sm); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
}

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

/* ── LIVE DEMO ──────────────────────────────────────────────── */
.demo-subtitle {
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

.demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Two-column layout */
.demo-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.demo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  min-width: 280px;
  max-width: 340px;
}

.demo-col .gnome-window {
  width: 100%;
  flex: 1;
}

.demo-col-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── GNOME Window ── */
.gnome-window {
  width: 100%;
  max-width: 360px;
  background: #11101e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
}

.gnome-headerbar {
  background: #0e0d1c;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  flex-shrink: 0;
}

.gnome-wm-buttons { display: flex; gap: 6px; z-index: 1; }

.wm-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: default;
  flex-shrink: 0;
}

.wm-close { background: #ff5f57; }
.wm-min   { background: #ffbd2e; }
.wm-max   { background: #28c840; }

.gnome-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(232, 228, 255, 0.85);
  white-space: nowrap;
}

.gnome-settings-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(232, 228, 255, 0.45);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  z-index: 1;
}

.gnome-settings-btn:hover { color: rgba(232,228,255,0.85); background: rgba(255,255,255,0.07); }

/* Section label (Active transfers) */
.app-section-label {
  padding: 0.55rem 1rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(232, 228, 255, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-section-label.hidden { display: none; }

/* Content area */
.gnome-content {
  flex: 1;
  padding: 0 1rem 1rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Demo states */
.demo-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  animation: stateIn 0.35s ease forwards;
}

.demo-state.hidden { display: none; }

@keyframes stateIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Orbit animation (idle) ── */
.orbit-scene {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.orbit-center-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c6ff0);
  box-shadow: 0 0 18px rgba(139,124,248,0.7), 0 0 40px rgba(139,124,248,0.25);
  position: relative;
  z-index: 2;
  transition: background 0.6s, box-shadow 0.6s;
}

.orbit-center-done {
  background: radial-gradient(circle at 35% 30%, #a8f0c0, #3ecf6e) !important;
  box-shadow: 0 0 18px rgba(62,207,110,0.7), 0 0 40px rgba(62,207,110,0.25) !important;
}

.orbit-arm {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

.orbit-arm-1 { animation: orbitSpin 3.2s linear infinite; }
.orbit-arm-2 { animation: orbitSpin 5s linear infinite reverse; }
.orbit-arm-3 { animation: orbitSpin 7s linear infinite; }

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

.orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(196, 181, 253, 0.85);
  box-shadow: 0 0 6px rgba(196,181,253,0.6);
}

.orbit-dot-sm {
  width: 6px;
  height: 6px;
  background: rgba(196,181,253,0.55);
}

.orbit-arm-1 .orbit-dot { top: -4.5px; left: 30px; }
.orbit-arm-2 .orbit-dot { top: -4.5px; left: 22px; }
.orbit-arm-3 .orbit-dot { top: -3px;   left: 36px; }

/* Ready to receive text */
.app-ready-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(232,228,255,0.9);
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.app-ready-accent {
  background: linear-gradient(135deg, #8b7cf8, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-visible-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(139,124,248,0.12);
  border: 1px solid rgba(139,124,248,0.22);
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(196,181,253,0.85);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.app-visible-badge:hover {
  background: rgba(139,124,248,0.2);
}

.app-visible-badge.hidden-state {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: rgba(232,228,255,0.35);
}

.app-visible-done {
  background: rgba(62,207,110,0.1);
  border-color: rgba(62,207,110,0.25);
  color: rgba(100,220,140,0.9);
}

/* ── Transfer card (incoming / receiving) ── */
.transfer-card {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tc-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}

.tc-device-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(139,124,248,0.15);
  border: 1px solid rgba(139,124,248,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  flex-shrink: 0;
}

.tc-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.tc-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(232,228,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-wants {
  font-size: 0.75rem;
  color: rgba(232,228,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Row with pin + accept (incoming) */
.tc-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

/* PIN badge */
.pin-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(232,228,255,0.6);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* GNOME button */
.gnome-btn {
  padding: 0.42rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s;
  font-family: inherit;
}

.gnome-btn:hover  { filter: brightness(1.15); transform: translateY(-1px); }
.gnome-btn:active { filter: brightness(0.88); transform: translateY(0); }

.btn-suggested  { background: #7c6ff0; color: #fff; }
.btn-ghost-outline {
  background: rgba(255,255,255,0.05);
  color: rgba(232,228,255,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  flex: 1;
}

/* Incoming card: left info + right col (pin + accept + decline) */
.tc-incoming {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.tc-actions-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 90px;
}

.tc-btn-full { width: 100%; text-align: center; }

.btn-decline-red {
  background: rgba(220, 80, 80, 0.18);
  color: rgba(255, 140, 140, 0.9);
  border: 1px solid rgba(220, 80, 80, 0.25);
}

.btn-decline-red:hover { background: rgba(220,80,80,0.28); }

.tc-saved { color: rgba(100,220,140,0.75) !important; }

/* Progress bar */
.transfer-progress-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}

.transfer-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c6ff0, #c4b5fd);
  border-radius: 99px;
  transition: width 0.12s linear;
}

/* ── Bottom nav ── */
.app-bottom-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.app-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 10px;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, filter 0.15s;
  background: rgba(255,255,255,0.05);
  color: rgba(232,228,255,0.55);
}

.app-nav-btn:hover { background: rgba(255,255,255,0.09); color: rgba(232,228,255,0.8); }

.app-nav-active {
  background: #7c6ff0 !important;
  color: #fff !important;
}

.app-nav-active:hover { filter: brightness(1.1); }

/* ── Replay ── */
.demo-replay {
  display: block;
  margin: 0 auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 0.45rem 1.3rem;
  border-radius: 99px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  opacity: 0;
  pointer-events: none;
}

.demo-replay.visible { opacity: 1; pointer-events: auto; }

.demo-replay:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--accent);
}

/* ── SEND DEMO ── */
.gnome-back-btn {
  background: none;
  border: none;
  color: rgba(232,228,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  z-index: 1;
  margin-right: 2px;
}

.gnome-back-btn:hover { color: rgba(232,228,255,0.9); background: rgba(255,255,255,0.07); }

.send-content {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0.75rem 0.9rem 0.9rem;
  gap: 0.7rem;
  overflow: hidden;
  flex: 1;
}

.send-state {
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  animation: stateIn 0.35s ease forwards;
}

/* Drop zone */
.send-dropzone {
  border: 1.5px dashed rgba(139,124,248,0.3);
  border-radius: 12px;
  padding: 1.1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139,124,248,0.04);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.send-dropzone:hover {
  border-color: rgba(139,124,248,0.55);
  background: rgba(139,124,248,0.07);
}

.send-dropzone-sm {
  padding: 0.65rem 0.75rem;
}

.send-dropzone-sm .send-folder-icon { display: none; }

.send-folder-icon { color: rgba(232,228,255,0.4); }

.send-drop-hint {
  font-size: 0.72rem;
  color: rgba(232,228,255,0.35);
  text-align: center;
}

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.78rem; }

/* Section headers */
.send-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.send-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232,228,255,0.5);
}

.gnome-icon-btn {
  background: none;
  border: none;
  color: rgba(232,228,255,0.4);
  cursor: pointer;
  padding: 3px;
  border-radius: 5px;
  display: flex;
  transition: color 0.2s, background 0.2s;
}

.gnome-icon-btn:hover { color: rgba(232,228,255,0.8); background: rgba(255,255,255,0.07); }

/* Device grid */
.send-devices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.send-device-card {
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  border: 1px solid transparent;
}

.send-device-active {
  background: rgba(139,124,248,0.18);
  border-color: rgba(139,124,248,0.3);
}

.send-device-active:hover { background: rgba(139,124,248,0.28); transform: translateY(-1px); }

.send-device-dim {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  opacity: 0.5;
}

.send-device-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(196,181,253,0.85);
  margin-bottom: 0.1rem;
}

.send-device-active .send-device-icon {
  background: rgba(139,124,248,0.2);
}

.send-device-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(232,228,255,0.85);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.send-device-type {
  font-size: 0.66rem;
  color: rgba(232,228,255,0.4);
  display: flex;
  align-items: center;
  gap: 3px;
}

.send-device-active .send-device-type { color: rgba(196,181,253,0.7); }

/* Selected file card */
.send-file-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.send-file-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(139,124,248,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  flex-shrink: 0;
}

.send-file-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.send-file-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(232,228,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.send-file-size {
  font-size: 0.72rem;
  color: rgba(232,228,255,0.4);
}

.send-file-remove {
  background: none;
  border: none;
  color: rgba(232,228,255,0.3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  transition: color 0.2s;
  flex-shrink: 0;
}

.send-file-remove:hover { color: rgba(232,228,255,0.7); }

/* Light theme overrides for send demo */
[data-theme="light"] .gnome-back-btn { color: rgba(26,18,64,0.45); }
[data-theme="light"] .gnome-back-btn:hover { color: #1a1240; background: rgba(108,92,231,0.08); }
[data-theme="light"] .send-dropzone { border-color: rgba(108,92,231,0.25); background: rgba(108,92,231,0.03); }
[data-theme="light"] .send-dropzone:hover { border-color: rgba(108,92,231,0.5); background: rgba(108,92,231,0.06); }
[data-theme="light"] .send-folder-icon { color: rgba(26,18,64,0.3); }
[data-theme="light"] .send-drop-hint { color: rgba(26,18,64,0.35); }
[data-theme="light"] .send-section-hdr { color: rgba(26,18,64,0.5); }
[data-theme="light"] .gnome-icon-btn { color: rgba(26,18,64,0.4); }
[data-theme="light"] .gnome-icon-btn:hover { color: #1a1240; background: rgba(108,92,231,0.08); }
[data-theme="light"] .send-device-active { background: rgba(108,92,231,0.1); border-color: rgba(108,92,231,0.2); }
[data-theme="light"] .send-device-active:hover { background: rgba(108,92,231,0.18); }
[data-theme="light"] .send-device-dim { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .send-device-icon { background: rgba(0,0,0,0.05); color: #7c6ff0; }
[data-theme="light"] .send-device-active .send-device-icon { background: rgba(108,92,231,0.12); }
[data-theme="light"] .send-device-name { color: #1a1240; }
[data-theme="light"] .send-device-type { color: rgba(26,18,64,0.4); }
[data-theme="light"] .send-device-active .send-device-type { color: #7c6ff0; }
[data-theme="light"] .send-file-card { background: #fff; border-color: rgba(108,92,231,0.1); }
[data-theme="light"] .send-file-thumb { background: rgba(108,92,231,0.08); color: #7c6ff0; }
[data-theme="light"] .send-file-name { color: #1a1240; }
[data-theme="light"] .send-file-size { color: rgba(26,18,64,0.4); }
[data-theme="light"] .send-file-remove { color: rgba(26,18,64,0.25); }

@media (max-width: 700px) {
  .demo-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .demo-col {
    width: 100%;
    max-width: 380px;
    min-width: 0;
  }

  .demo-col .gnome-window {
    width: 100%;
    flex: unset;
    min-height: 460px;
    display: flex;
    flex-direction: column;
  }

  .gnome-content,
  .send-content {
    flex: 1;
  }
}

/* ── LIGHT THEME overrides ── */
[data-theme="light"] .gnome-window {
  background: #f0eeff;
  box-shadow: 0 24px 64px rgba(108,92,231,0.12), 0 0 0 1px rgba(108,92,231,0.1);
}

[data-theme="light"] .gnome-headerbar {
  background: #ffffff;
  border-bottom-color: rgba(108,92,231,0.1);
}

[data-theme="light"] .gnome-title {
  color: #1a1240;
}

[data-theme="light"] .gnome-settings-btn {
  color: rgba(26,18,64,0.4);
}

[data-theme="light"] .gnome-settings-btn:hover {
  color: #1a1240;
  background: rgba(108,92,231,0.08);
}

[data-theme="light"] .app-section-label {
  color: rgba(26,18,64,0.45);
}

[data-theme="light"] .gnome-content {
  /* inherits light bg from window */
}

[data-theme="light"] .orbit-center-dot {
  background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c6ff0);
  box-shadow: 0 0 18px rgba(124,111,240,0.35), 0 0 40px rgba(124,111,240,0.12);
}

[data-theme="light"] .orbit-dot {
  background: rgba(108,92,231,0.55);
  box-shadow: none;
}

[data-theme="light"] .app-ready-text {
  color: #1a1240;
}

[data-theme="light"] .app-visible-badge {
  background: rgba(108,92,231,0.08);
  border-color: rgba(108,92,231,0.18);
  color: #5a9e8f;
}

[data-theme="light"] .app-visible-badge.hidden-state {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: rgba(26,18,64,0.3);
}

[data-theme="light"] .transfer-card {
  background: #ffffff;
  border-color: rgba(108,92,231,0.12);
  box-shadow: 0 2px 12px rgba(108,92,231,0.06);
}

[data-theme="light"] .tc-device-icon {
  background: rgba(108,92,231,0.08);
  border-color: rgba(108,92,231,0.15);
  color: #7c6ff0;
}

[data-theme="light"] .tc-name {
  color: #1a1240;
}

[data-theme="light"] .tc-wants {
  color: rgba(26,18,64,0.5);
}

[data-theme="light"] .tc-saved {
  color: #3a9e78 !important;
}

[data-theme="light"] .pin-badge {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: rgba(26,18,64,0.55);
}

[data-theme="light"] .btn-ghost-outline {
  background: rgba(0,0,0,0.04);
  color: rgba(26,18,64,0.7);
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .btn-ghost-outline:hover {
  background: rgba(0,0,0,0.08);
}

[data-theme="light"] .btn-decline-red {
  background: rgba(200,60,60,0.08);
  color: #c04040;
  border-color: rgba(200,60,60,0.18);
}

[data-theme="light"] .transfer-progress-wrap {
  background: rgba(0,0,0,0.07);
}

[data-theme="light"] .app-bottom-nav {
  border-top-color: rgba(108,92,231,0.1);
}

[data-theme="light"] .app-nav-btn {
  background: rgba(0,0,0,0.04);
  color: rgba(26,18,64,0.5);
}

[data-theme="light"] .app-nav-btn:hover {
  background: rgba(0,0,0,0.08);
  color: #1a1240;
}

[data-theme="light"] .app-nav-active {
  background: #7c6ff0 !important;
  color: #fff !important;
}
