/* ==========================================================================
   QR Code Studio & Extension - Official Showcase Site
   Design System & Modern Aesthetic Styles
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* Light Palette */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border: #e2e8f0;
  --border-focus: #00b8b2;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --primary: #00b8b2;
  --primary-hover: #009e99;
  --primary-glow: rgba(0, 184, 178, 0.25);

  --accent-gradient: linear-gradient(135deg, #00d2c7 0%, #00b8b2 50%, #008f89 100%);
  --hero-bg-glow: radial-gradient(circle at 50% 20%, rgba(0, 184, 178, 0.16) 0%, rgba(45, 212, 191, 0.08) 40%, transparent 70%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

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

[data-theme="dark"] {
  --bg-page: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-subtle: #1c2640;
  --bg-glass: rgba(19, 27, 46, 0.85);
  --border: #1e293b;
  --border-focus: #2dd4bf;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --primary: #2dd4bf;
  --primary-hover: #00b8b2;
  --primary-glow: rgba(45, 212, 191, 0.3);

  --hero-bg-glow: radial-gradient(circle at 50% 20%, rgba(0, 184, 178, 0.22) 0%, rgba(45, 212, 191, 0.12) 45%, transparent 75%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.65);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glow */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 800px;
  background: var(--hero-bg-glow);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 20px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

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

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

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-pill-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  padding: 13px 28px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  padding: 13px 26px;
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Live Playground Interactive Demo */
.playground-section {
  padding: 40px 0 80px;
}

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

.section-tag {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.studio-demo-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1040px;
  margin: 0 auto;
}

.demo-controls {
  padding: 36px;
  background: var(--bg-card-subtle);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.demo-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.demo-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.theme-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-pill {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.theme-pill.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.demo-preview {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-card);
}

.qr-card-view {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

#site-qr-canvas {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  display: block;
}

.download-bar {
  display: flex;
  gap: 12px;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Scan & Decode Demo Section */
.scan-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}

.scan-box-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 680px;
  margin: 30px auto 0;
  cursor: pointer;
  transition: all 0.2s;
}

.scan-box-card:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary-hover);
}

.scan-result-card {
  margin-top: 20px;
  background: var(--bg-card-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: left;
  display: none;
}

/* Installation Guide */
.install-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-card);
}

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

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 38px;
  }
  .studio-demo-wrapper {
    grid-template-columns: 1fr;
  }
  .demo-controls {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
}
