/* =====================================================================
   Doing It — High-Performance Desktop Overlay Landing Page
   Staff-Level Design System (Linear, Raycast & Apple Standards)
   ===================================================================== */

:root {
  --bg-deep: #050608;
  --bg-surface: #0c0d12;
  --bg-card: rgba(16, 18, 24, 0.7);
  --bg-card-hover: rgba(22, 25, 34, 0.85);
  --bg-glass: rgba(18, 20, 28, 0.65);
  
  --text-primary: #ededed;
  --text-secondary: #8a8f98;
  --text-muted: #525866;
  --text-accent: #60a5fa;

  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-subtle: rgba(59, 130, 246, 0.08);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(255, 255, 255, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --max-w: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Engineering Grid Background */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1200px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 10%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 10%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.bg-aurora {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 580px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.16) 0%, rgba(139, 92, 246, 0.1) 40%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* =====================================================================
   HEADER & NAVBAR
   ===================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

.nav-brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.version-chip {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  padding: 1px 7px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease) 0.15s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-github-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--ease) 0.15s;
}

.btn-github-nav:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-download-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: #000;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ease) 0.15s;
}

.btn-download-nav:hover {
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 860px;
  margin: 0 auto 20px auto;
  color: #ffffff;
}

.hero-headline-sub {
  background: linear-gradient(180deg, #9ca3af 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 34px auto;
  line-height: 1.55;
}

.hero-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #07080a;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: all var(--ease) 0.2s;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.35);
}

.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all var(--ease) 0.15s;
}

.btn-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.hero-meta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta-note strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* =====================================================================
   DESKTOP COMPOSITION STAGE (Authentic Real-Scale Windows)
   ===================================================================== */
.stage-wrap {
  position: relative;
  max-width: 1040px;
  margin: 50px auto 0 auto;
  padding: 40px 20px 60px 20px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26, 32, 48, 0.4) 0%, rgba(6, 7, 10, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stage-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  position: relative;
}

/* Centerpiece Window: Main 400px Widget */
.widget-mockup-frame {
  width: 380px;
  flex-shrink: 0;
  background: rgba(13, 14, 18, 0.92);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
  transition: transform var(--ease) 0.3s;
}

.widget-mockup-frame:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.widget-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Companion Windows floating on the sides */
.stage-satellites {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 440px;
  align-items: flex-start;
}

.satellite-card {
  background: rgba(16, 18, 25, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  transition: all var(--ease) 0.2s;
  width: 100%;
}

.satellite-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
}

.satellite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.satellite-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-accent);
}

.satellite-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.satellite-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  border: 1px solid var(--border-subtle);
}

/* =====================================================================
   INTERACTIVE TABBED FEATURE GALLERY
   ===================================================================== */
.section-pad {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  margin-bottom: 54px;
}

.section-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 10px;
  display: inline-block;
}

.section-heading {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.gallery-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.gallery-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-tab-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all var(--ease) 0.18s;
  color: var(--text-secondary);
}

.gallery-tab-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.gallery-tab-item.active {
  background: rgba(59, 130, 246, 0.09);
  border-color: rgba(59, 130, 246, 0.25);
  color: #ffffff;
}

.tab-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--ease) 0.15s;
}

.gallery-tab-item.active .tab-icon-box {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-glow);
}

.tab-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.tab-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.gallery-tab-item.active .tab-info p {
  color: var(--text-secondary);
}

.gallery-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(30, 36, 52, 0.3) 0%, rgba(10, 11, 15, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 520px;
}

.gallery-img-container {
  width: 360px;
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-medium);
  transition: transform var(--ease) 0.3s;
}

.gallery-img-container:hover {
  transform: scale(1.02);
}

.gallery-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================================
   INTERACTIVE LIVE PROCEDURAL SOUNDBOARD (Staff Engineer Feature)
   ===================================================================== */
.soundboard-card {
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.8) 0%, rgba(12, 14, 20, 0.9) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  margin-top: 50px;
}

.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.sound-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--ease) 0.18s;
  user-select: none;
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.sound-btn.playing {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.3);
}

.sound-btn-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.sound-btn-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sound-btn.playing .sound-btn-desc {
  color: #93c5fd;
}

/* =====================================================================
   BENTO SYSTEM ARCHITECTURE
   ===================================================================== */
.bento-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--ease) 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.bento-item.span-2 {
  grid-column: span 2;
}

.bento-icon-tag {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 18px;
}

.bento-h {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: #ffffff;
}

.bento-p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bento-tag {
  align-self: flex-start;
  margin-top: 16px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* =====================================================================
   KEYBOARD SHORTCUTS MATRIX
   ===================================================================== */
.kbd-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

.kbd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.kbd-row:last-child {
  border-bottom: none;
}

.kbd-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.kbd-context {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.kbd-badge-group {
  display: flex;
  gap: 4px;
}

kbd {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ffffff;
}

/* =====================================================================
   FAQ ACCORDION
   ===================================================================== */
.faq-box {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--ease) 0.15s;
}

.faq-card:hover {
  border-color: var(--border-medium);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--ease) 0.2s;
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-a {
  display: none;
  padding: 0 20px 18px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.faq-card.open .faq-a {
  display: block;
}

/* =====================================================================
   BOTTOM CALL TO ACTION
   ===================================================================== */
.cta-panel {
  text-align: center;
  padding: 70px 40px;
  background: radial-gradient(ellipse at center, rgba(30, 42, 68, 0.5) 0%, rgba(9, 10, 14, 0.9) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.12);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  background: #06070a;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--ease) 0.15s;
}

.footer-link:hover {
  color: #ffffff;
}

/* =====================================================================
   RESPONSIVE DESIGN
   ===================================================================== */
@media (max-width: 1024px) {
  .stage-inner {
    flex-direction: column;
  }
  .stage-satellites {
    max-width: 100%;
    width: 380px;
  }
  .gallery-container {
    grid-template-columns: 1fr;
  }
  .bento-row {
    grid-template-columns: 1fr;
  }
  .bento-item.span-2 {
    grid-column: span 1;
  }
  .soundboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .widget-mockup-frame {
    width: 100%;
    max-width: 360px;
  }
  .stage-satellites {
    width: 100%;
    max-width: 360px;
  }
  .soundboard-grid {
    grid-template-columns: 1fr;
  }
}
