/* ═══════════════════════════════════════════
   Sparkly Marketing Site — Styles
   Glass design, dark theme, modern layout
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050510;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Background Orbs ── */

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: 40%;
  right: -15%;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -5%;
  left: 30%;
  animation-delay: -10s;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 20%;
  left: 50%;
  animation-delay: -15s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

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

/* ── Glass Mixin ── */

.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Container ── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
}

/* ── Section Header ── */

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  color: white;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-sm:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 16px;
  padding: 14px 28px;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  transform: translateY(-2px);
}

/* ── Hero ── */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: white;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

/* ── Browser Mockup ── */

.browser-mockup {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.browser-tab-icon {
  font-size: 14px;
}

.browser-content {
  padding: 0;
  min-height: 280px;
  overflow: hidden;
}

/* Mock dashboard elements */

.mock-dashboard {
  display: flex;
  flex-direction: row;
  gap: 0;
  min-height: 260px;
}

/* Left: Tab Manager Sidebar */
.mock-sidebar {
  width: 140px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.mock-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mock-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mock-tab-count {
  font-size: 9px;
  font-weight: 700;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 6px;
  padding: 2px 6px;
}

.mock-tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background 0.2s;
}

.mock-tab-item.active-tab {
  background: rgba(255, 255, 255, 0.08);
}

.mock-tab-item.duplicate {
  background: rgba(255, 255, 255, 0.05);
}

.mock-tab-favicon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.mock-tab-text {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

/* Center: Main content area */
.mock-center {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.mock-clock {
  text-align: center;
  padding: 8px 0 4px;
}

.mock-time {
  font-size: 32px;
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
  line-height: 1;
}

.mock-date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.mock-search-icon {
  font-size: 12px;
  opacity: 0.4;
}

.mock-search-text {
  height: 8px;
  width: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* Top Sites */
.mock-topsites {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.mock-site {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Feed section inside center */
.mock-feeds {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.mock-feed-tabs {
  display: flex;
  gap: 0;
}

.mock-feed-tabs span {
  padding: 4px 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid transparent;
  font-weight: 600;
}

.mock-feed-tabs span.active {
  color: white;
  border-bottom-color: #3b82f6;
}

.mock-feed-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-feed-item {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  animation: mockPulse 2s ease-in-out infinite;
}

.mock-feed-item:nth-child(1) { width: 90%; animation-delay: 0s; }
.mock-feed-item:nth-child(2) { width: 75%; animation-delay: 0.3s; }
.mock-feed-item:nth-child(3) { width: 85%; animation-delay: 0.6s; }

/* Right: Action Bar (Google Apps) */
.mock-actionbar {
  width: 40px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mock-app-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-app-icon.gear {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.mock-app-divider {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2px 0;
}

@keyframes mockPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ── Marquee ── */

.marquee-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.marquee-track {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-content span {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.marquee-dot {
  display: inline-block;
  width: 4px !important;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15) !important;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Feature Cards ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  border-radius: 20px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, #3b82f6), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
  color: var(--accent, #3b82f6);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tags span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Feature Showcase (Detailed) ── */

.showcase-section {
  padding-top: 80px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.showcase-label {
  display: inline-block;
  width: fit-content;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #3b82f6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.showcase-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.showcase-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 20px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}

.showcase-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #3b82f6);
  opacity: 0.7;
}

.showcase-list li strong {
  color: rgba(255, 255, 255, 0.8);
}

.showcase-visual {
  border-radius: 20px;
  padding: 24px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Showcase Mock: Tab Manager ── */

.showcase-mock-tabs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.smt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.smt-header span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.smt-badge {
  font-size: 11px;
  font-weight: 700;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 8px;
  padding: 2px 8px;
}

.smt-toggle {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.smt-toggle span {
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s;
}

.smt-toggle span.active {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.smt-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smt-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 0;
}

.smt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.smt-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
}

.smt-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.smt-tab.duplicate {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.smt-fav {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.smt-title {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.smt-close {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.smt-dup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.15);
  border-radius: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.smt-dup-banner span {
  color: #ec4899;
  font-weight: 700;
  cursor: pointer;
  font-size: 11px;
}

/* ── Showcase Mock: Google Apps ── */

.showcase-mock-apps {
  width: 100%;
}

.sma-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.sma-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  transition: background 0.2s;
  cursor: pointer;
}

.sma-app:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sma-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.sma-app span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ── Showcase Mock: Wallpaper ── */

.showcase-mock-wallpaper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.smw-modes {
  display: flex;
  gap: 8px;
}

.smw-mode {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.smw-mode.active {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.smw-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.smw-img {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15), 
    rgba(139, 92, 246, 0.1), 
    rgba(236, 72, 153, 0.08));
  border-radius: 12px;
  animation: mockPulse 3s ease-in-out infinite;
}

.smw-attribution {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 4px;
}

.smw-controls {
  display: flex;
  gap: 20px;
}

.smw-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  cursor: pointer;
}

.smw-toggle {
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  transition: background 0.2s;
  display: inline-block;
}

.smw-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

.smw-toggle.on {
  background: rgba(59, 130, 246, 0.4);
}

.smw-toggle.on::after {
  left: 14px;
  background: #93c5fd;
}

/* ── Demo / Video ── */

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

.video-container {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
}

.video-play-btn {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-play-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.1);
}

.video-play-btn svg {
  margin-left: 4px;
}

.video-coming {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Impact Section ── */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.impact-card {
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
}

.impact-number {
  font-size: 56px;
  font-weight: 900;
  color: white;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
}

.impact-unit {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.impact-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

/* Comparison */

.comparison {
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.comparison-col h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.comparison-before h4 {
  color: rgba(255, 255, 255, 0.4);
}

.comparison-after h4 {
  color: #3b82f6;
}

.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-col li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.comparison-before li {
  color: rgba(255, 255, 255, 0.35);
}

.comparison-before li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #f87171;
  font-size: 12px;
}

.comparison-after li {
  color: rgba(255, 255, 255, 0.7);
}

.comparison-after li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
  font-size: 14px;
}

.comparison-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}

.comparison-divider span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Testimonials ── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  padding: 32px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.testimonial-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── CTA Section ── */

.cta-section {
  padding: 80px 0 120px;
}

.cta-card {
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}

.footer-brand .logo-img {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Scroll Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

/* Stagger feature cards (9 cards) */
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.06s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.12s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.18s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.24s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.30s; }
.features-grid .feature-card:nth-child(7) { transition-delay: 0.36s; }
.features-grid .feature-card:nth-child(8) { transition-delay: 0.42s; }
.features-grid .feature-card:nth-child(9) { transition-delay: 0.48s; }

/* Stagger testimonials */
.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.08s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.16s; }
.testimonials-grid .testimonial-card:nth-child(4) { transition-delay: 0.24s; }
.testimonials-grid .testimonial-card:nth-child(5) { transition-delay: 0.32s; }
.testimonials-grid .testimonial-card:nth-child(6) { transition-delay: 0.40s; }

/* Stagger impact cards */
.impact-grid .impact-card:nth-child(1) { transition-delay: 0s; }
.impact-grid .impact-card:nth-child(2) { transition-delay: 0.12s; }
.impact-grid .impact-card:nth-child(3) { transition-delay: 0.24s; }

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 140px;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .showcase-visual {
    min-height: 280px;
  }

  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sma-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .showcase-row {
    margin-bottom: 64px;
  }

  .showcase-visual {
    min-height: 240px;
    padding: 20px;
  }

  /* Hide sidebar and actionbar in hero mockup on mobile */
  .mock-sidebar {
    display: none;
  }

  .mock-actionbar {
    display: none;
  }

  .mock-center {
    padding: 12px 16px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .comparison {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .comparison-divider {
    padding-top: 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .smw-modes {
    flex-wrap: wrap;
  }

  .sma-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .sma-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .orb {
    opacity: 0.25;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .sma-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .smw-modes {
    gap: 6px;
  }

  .smw-mode {
    padding: 5px 10px;
    font-size: 10px;
  }
}

/* ═══════════ Carousel ═══════════ */
.carousel-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.carousel-wrapper {
  max-width: 1000px;
  margin: 48px auto 0;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.carousel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.carousel-mock {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.carousel-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .carousel-mock {
    aspect-ratio: 16/9;
  }

  .carousel-text h3 {
    font-size: 22px;
  }
}

/* ═══════════ Playground ═══════════ */
.playground-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}

.playground-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}

.playground-controls {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
}

.playground-controls h3 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  margin-top: 20px;
}

.playground-controls h3:first-child {
  margin-top: 0;
}

.control-group {
  margin-bottom: 14px;
}

.playground-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 0;
}

.playground-toggle input {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.2s;
}

.playground-toggle input:checked + .toggle-slider {
  background: #3b82f6;
}

.playground-toggle input:checked + .toggle-slider::after {
  left: 20px;
  background: white;
}

.toggle-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.pg-select-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.pg-select-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.pg-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.pg-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.pg-select option {
  background: #1f2937;
  color: white;
}

.playground-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  min-height: 520px;
}

.preview-mock {
  width: 100%;
  height: 470px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.preview-mock.gradient1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.preview-mock.gradient2 {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.preview-mock.gradient3 {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
}

.preview-mock.gradient4 {
  background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

/* Tab Manager */
.pg-tab-manager {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  transition: all 0.3s ease;
  transform: translateY(0);
  z-index: 10;
}

.pg-tab-manager.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.pg-tab-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.pg-tab-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* Main Content */
.pg-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

/* Clock */
.pg-clock-section {
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.pg-clock-section.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.pg-clock {
  font-size: 56px;
  font-weight: 700;
  color: white;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pg-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* Weather */
.pg-weather-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 13px;
  color: white;
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.pg-weather-pill.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.pg-weather-icon {
  font-size: 16px;
}

.pg-temp {
  font-weight: 600;
}

.pg-location {
  opacity: 0.7;
}

/* Search */
.pg-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.pg-search-bar.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Tiles */
.pg-tiles {
  display: flex;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.pg-tiles.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.pg-tile {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Feed Hub */
.pg-feed-hub {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 60px;
  height: 120px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.pg-feed-hub.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.pg-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.pg-feed-refresh {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-feed-refresh:hover {
  opacity: 1;
}

.pg-feed-refresh svg {
  width: 12px;
  height: 12px;
}

.pg-feed-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pg-feed-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-feed-item-title {
  height: 10px;
  width: 70%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.pg-feed-item-meta {
  height: 6px;
  width: 40%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

/* Sidebar */
.pg-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 0 16px;
  gap: 6px;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.pg-sidebar.hidden {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.pg-app-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pg-app-icon.gear {
  margin-top: auto;
}

/* Attribution */
.pg-attribution {
  position: absolute;
  bottom: 10px;
  right: 66px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .playground-wrapper {
    grid-template-columns: 1fr;
  }

  .playground-controls {
    order: 2;
  }

  .playground-preview {
    order: 1;
  }
}
