/* Global Variables & Design Tokens (Light Theme is Default) */
:root {
  --color-ink: #0b0d14; /* Ink Black from Design.md */
  --color-bg: #ffffff; /* Pure White from Design.md */
  --color-bg-offset: #f8fafc;
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Accent Colors */
  --color-violet: #7c3aed;
  --color-indigo: #4f46e5;
  --color-orange: #ff6a3d;
  --color-pink: #ec4899;
  
  /* Gray Scale */
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0b0d14;
  
  --shadow-sm: 0 2px 8px rgba(11, 13, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 13, 20, 0.06);
  --shadow-lg: 0 16px 40px rgba(11, 13, 20, 0.1);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.06);
  
  --font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Dark Theme Variables */
body.dark-theme {
  --color-ink: #f5f5f7;
  --color-bg: #0b0d14; /* Deep dark background */
  --color-bg-offset: #141724;
  
  --color-gray-50: #050609;
  --color-gray-100: #121420;
  --color-gray-200: #1b1e2e;
  --color-gray-300: #2a2f45;
  --color-gray-400: #424966;
  --color-gray-500: #7c88b3;
  --color-gray-600: #a3afdb;
  --color-gray-700: #c7d0f0;
  --color-gray-800: #e2e7f7;
  --color-gray-900: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.15);
}

/* Reset and Core Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* Typography Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-pink) 50%, var(--color-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

body.dark-theme .navbar {
  background: rgba(11, 13, 20, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 32px;
  width: 32px;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

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

.nav-item {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-gray-600);
}

.nav-item:hover {
  color: var(--color-violet);
}

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

.btn-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-gray-600);
}

.btn-link:hover {
  color: var(--color-ink);
}

.btn-primary-capsule {
  background-color: var(--color-ink);
  color: var(--color-bg);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-primary-capsule:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px 0;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}

.badge-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-violet);
}

body.dark-theme .badge-text {
  color: #a78bfa;
}

.laurel-icon {
  color: var(--color-violet);
  flex-shrink: 0;
}

body.dark-theme .laurel-icon {
  color: #a78bfa;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-gray-900);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--color-gray-600);
  max-width: 680px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-cta-primary {
  background-color: var(--color-ink);
  color: var(--color-bg) !important;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

.btn-cta-primary .arrow-icon {
  transition: transform 0.2s ease;
}

.btn-cta-primary:hover .arrow-icon {
  transform: translateX(4px);
}

.btn-cta-secondary {
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

body.dark-theme .btn-cta-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-cta-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

body.dark-theme .btn-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-gray-500);
}

.check-icon {
  color: var(--color-violet);
}

/* Floating Cards Layout (Absolute Positioned around Hero) */
.floating-cards-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  max-width: 260px;
  text-align: left;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

body.dark-theme .float-card {
  background: rgba(27, 30, 46, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.float-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(124, 58, 237, 0.1);
}

.float-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 2px;
}

.float-card p {
  font-size: 11px;
  color: var(--color-gray-500);
  line-height: 1.3;
}

.float-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-purple { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; }
.bg-violet { background-color: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.bg-green { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.bg-blue { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* Positioning floating cards */
.card-top-left { top: 15%; left: -15%; }
.card-bottom-left { bottom: 20%; left: -10%; }
.card-top-right { top: 15%; right: -15%; }
.card-bottom-right { bottom: 20%; right: -10%; }

/* Sections Common */
.section-header {
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
  margin-bottom: 16px;
}

.section-description {
  font-size: 16px;
  color: var(--color-gray-500);
}

/* Playground Section Styling */
.playground-section {
  padding: 60px 0 100px 0;
}

.playground-layout {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* The Wrapper for customizer background preset */
.playground-preview-wrapper {
  background: linear-gradient(135deg, #1e1e38 0%, #0c0c14 100%);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, border-radius 0.3s ease;
  overflow: hidden;
  position: relative;
}

body.dark-theme .playground-preview-wrapper {
  border-color: rgba(255, 255, 255, 0.05);
}

/* Mock macOS Editor Window */
.editor-mockup-window {
  width: 100%;
  max-width: 1050px;
  background-color: #0f1016; /* Studio editor background */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-radius 0.3s ease;
}

/* Mock header */
.mockup-header {
  height: 48px;
  background-color: #161822;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.traffic-lights {
  display: flex;
  gap: 8px;
  width: 60px;
}

.traffic-lights .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic-lights .red { background-color: #ff5f56; }
.traffic-lights .yellow { background-color: #ffbd2e; }
.traffic-lights .green { background-color: #27c93f; }

.mockup-title {
  font-size: 13px;
  font-weight: 500;
  color: #7c88b3;
}

.mockup-export-btn {
  background-color: #4f46e5;
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Main workspace */
.mockup-workspace {
  display: flex;
  height: 540px;
}

/* Sidebar navigation inside editor */
.mockup-sidebar {
  width: 150px;
  background-color: #12141c;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}

.sidebar-logo-img {
  height: 20px;
  width: 20px;
}

.sidebar-logo span {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  padding: 8px 16px;
  font-size: 12.5px;
  color: #7c88b3;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-menu li.active, .sidebar-menu li:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.03);
}

.sidebar-user {
  margin-top: auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  background-color: #4f46e5;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.userbadge {
  font-size: 8px;
  color: #ffaa00;
  font-weight: bold;
  text-transform: uppercase;
}

/* File explorer inside editor */
.mockup-files-explorer {
  width: 170px;
  background-color: #0f1016;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 12px;
  overflow-y: auto;
}

.panel-header {
  font-size: 10px;
  text-transform: uppercase;
  color: #4c5270;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.files-tree {
  list-style: none;
  font-size: 11px;
  color: #7c88b3;
  line-height: 1.8;
}

.files-tree ul {
  list-style: none;
  padding-left: 12px;
}

.files-tree li {
  cursor: pointer;
  padding: 2px 0;
}

.files-tree li:hover {
  color: #ffffff;
}

.files-tree li.active {
  color: #a78bfa;
  font-weight: 600;
}

/* Center Code & Canvas workspace */
.mockup-code-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #0b0c10;
  position: relative;
  overflow: hidden;
}

.code-editor-header {
  height: 34px;
  background-color: #12141c;
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-editor-header .tab {
  padding: 0 16px;
  font-size: 11.5px;
  color: #7c88b3;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.code-editor-header .tab.active {
  background-color: #0b0c10;
  color: #ffffff;
}

.code-lines-container {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8c96c2;
  line-height: 1.6;
}

/* Syntax colors */
.c-keyword { color: #f43f5e; }
.c-string { color: #10b981; }
.c-func { color: #3b82f6; }
.c-number { color: #f59e0b; }
.c-tag { color: #e879f9; }
.c-attr { color: #f472b6; }

/* The Webpage Preview Canvas Frame floating inside code workspace */
.mockup-canvas-frame {
  position: absolute;
  top: 80px;
  right: 32px;
  width: 340px;
  height: 220px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Let overlapping elements extend past the boundary */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

/* Nested Browser Preview Mockup */
.browser-preview {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.browser-address {
  height: 22px;
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #64748b;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.browser-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: #ffffff;
  color: #1e293b;
}

.browser-heading {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.browser-text {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 10px;
}

.browser-btn {
  background-color: #4f46e5;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 9px;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
  transition: transform 0.1s ease;
}

/* Water Ripple on Click */
.click-ripple {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(124, 58, 237, 0.4);
  border: 1px solid #7c3aed;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 9;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* Simulated Camera Overlay bubble */
.cam-bubble {
  position: absolute;
  top: 50%;
  right: -35px; /* Overlaps right border by half of default 70px width */
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #8b5cf6;
  background: #2e1065 url('https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?auto=format&fit=crop&w=100&q=80') no-repeat center;
  background-size: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: width 0.25s ease, height 0.25s ease, border-radius 0.25s ease, right 0.25s ease;
}

/* Custom Pointer Cursor overlay */
.simulated-cursor {
  position: absolute;
  top: 50px;
  left: 60px;
  z-index: 100;
  pointer-events: none;
  transform-origin: top left;
  transition: transform 0.1s ease;
}

.cursor-svg-element {
  display: block;
}

/* Timeline Panel */
.mockup-timeline {
  height: 120px;
  background-color: #12141c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  margin-top: auto;
}

.timeline-ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #4c5270;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.timeline-tracks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.timeline-tracks .track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-tracks .track-label {
  font-size: 9.5px;
  color: #7c88b3;
  width: 60px;
  flex-shrink: 0;
}

.timeline-block {
  height: 14px;
  border-radius: 3px;
  background-color: rgba(255,255,255,0.06);
}

.block-camera { width: 150px; background-color: #c084fc; opacity: 0.8; }
.block-cursor { width: 120px; background-color: #f59e0b; margin-left: 20px; opacity: 0.8; }
.block-screen { width: 220px; background-color: #34d399; opacity: 0.8; }

/* Right Control Panel Settings Sidebar */
.mockup-controls {
  width: 220px;
  background-color: #12141c;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.controls-tabs {
  display: flex;
  height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #0f1016;
}

.controls-tabs .tab {
  flex: 1;
  font-size: 11px;
  color: #7c88b3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.controls-tabs .tab.active {
  background-color: #12141c;
  color: #ffffff;
  font-weight: 600;
}

.control-panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-section {
  display: none;
}

.panel-section.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-row label {
  font-size: 10.5px;
  color: #7c88b3;
  font-weight: 600;
}

/* Select option */
.control-select {
  background-color: #1b1e2e;
  border: 1px solid rgba(255,255,255,0.06);
  color: #ffffff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  outline: none;
  cursor: pointer;
}

/* Slider Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #2a2f45;
  transition: .2s;
  border-radius: 20px;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #4f46e5;
}

.switch input:checked + .slider:before {
  transform: translateX(16px);
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #4f46e5;
}

/* Range sliders */
.control-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #2d3142;
  outline: none;
}

.control-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7c3aed;
  cursor: pointer;
}

/* Color dot pickers */
.color-picker-row {
  display: flex;
  gap: 8px;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.color-dot.active {
  border-color: #ffffff;
}

/* Background Preset swatches section */
.presets-section {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 16px;
}

.presets-header {
  font-size: 10.5px;
  color: #7c88b3;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bg-preset-swatch {
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-preset-swatch:hover {
  transform: scale(1.08);
}

.bg-preset-swatch.active {
  box-shadow: 0 0 0 2px #7c3aed;
}

.bg-preset-swatch .selected-checkmark {
  font-size: 9px;
  font-weight: bold;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.bg-preset-swatch.active .selected-checkmark {
  opacity: 1;
  transform: scale(1);
}

/* Features grid section */
.features-section {
  padding: 100px 0;
  background-color: var(--color-bg-offset);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background-color 0.3s ease;
}

body.dark-theme .features-section {
  border-color: rgba(255, 255, 255, 0.02);
}

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

.feature-card {
  background: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

body.dark-theme .feature-card {
  border-color: rgba(255, 255, 255, 0.04);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.25);
}

.feature-card-icon {
  width: 46px;
  height: 46px;
  background-color: rgba(124, 58, 237, 0.08);
  color: var(--color-violet);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card-text {
  font-size: 14.5px;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* Steps section */
.how-it-works-section {
  padding: 100px 0;
}

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

.step-card {
  position: relative;
  padding: 24px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  color: rgba(124, 58, 237, 0.15);
  margin-bottom: 16px;
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 12px;
}

.step-text {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* Pricing cards */
.pricing-section {
  padding: 100px 0;
  background-color: var(--color-bg-offset);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  transition: background-color 0.3s ease;
}

body.dark-theme .pricing-section {
  border-color: rgba(255, 255, 255, 0.02);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

body.dark-theme .pricing-card {
  border-color: rgba(255, 255, 255, 0.05);
}

.pricing-card.popular {
  border: 2px solid var(--color-violet);
  box-shadow: var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-violet);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.pricing-header {
  margin-bottom: 28px;
}

.plan-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--color-gray-500);
  margin-bottom: 20px;
}

.plan-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-gray-900);
  line-height: 1;
}

.plan-price .currency {
  font-size: 24px;
  font-weight: 700;
  vertical-align: super;
  margin-right: 2px;
}

.plan-price .period {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-500);
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.plan-features li {
  font-size: 14px;
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li .bullet {
  color: var(--color-violet);
  font-weight: 700;
}

.plan-features li .bullet.✕ {
  color: var(--color-gray-400);
}

.btn-pricing-secondary {
  margin-top: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.02);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.2s ease;
}

body.dark-theme .btn-pricing-secondary {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
}

.btn-pricing-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

body.dark-theme .btn-pricing-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.btn-pricing-primary {
  margin-top: auto;
  background-color: var(--color-violet);
  color: var(--color-white) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
  transition: all 0.2s ease;
}

.btn-pricing-primary:hover {
  filter: brightness(1.08);
}

/* FAQ section */
.faq-section {
  padding: 100px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-q {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-gray-900);
  letter-spacing: -0.01em;
}

.faq-a {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* CTA Banner Section */
.cta-banner-section {
  padding: 60px 0 100px 0;
}

.cta-banner-card {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-violet) 100%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.banner-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  z-index: 1;
}

.banner-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin-bottom: 32px;
  z-index: 1;
}

.btn-cta-white {
  background-color: var(--color-white);
  color: var(--color-violet) !important;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 1;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Footer styling */
.footer {
  padding: 80px 0 40px 0;
  background-color: var(--color-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  transition: background-color 0.3s ease;
}

body.dark-theme .footer {
  border-color: rgba(255, 255, 255, 0.04);
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  display: flex;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
}

.footer-logo {
  height: 28px;
  width: 28px;
}

.brand-tagline {
  font-size: 13.5px;
  color: var(--color-gray-500);
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--color-gray-500);
}

.footer-col a:hover {
  color: var(--color-violet);
}

.footer-bottom {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-gray-400);
}

body.dark-theme .footer-bottom {
  border-color: rgba(255, 255, 255, 0.03);
}

/* Theme Toggle Button styling */
.theme-toggle-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

body.dark-theme .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
}

.theme-toggle-btn .icon-light {
  display: none;
}

.theme-toggle-btn .icon-dark {
  display: block;
}

body.dark-theme .theme-toggle-btn .icon-light {
  display: block;
}

body.dark-theme .theme-toggle-btn .icon-dark {
  display: none;
}

/* Keyframes animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
  .floating-cards-wrapper {
    display: none;
  }
  .playground-preview-wrapper {
    padding: 24px;
  }
  .mockup-workspace {
    height: auto;
    flex-direction: column;
  }
  .mockup-sidebar, .mockup-files-explorer, .mockup-controls {
    width: 100%;
    height: auto;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .mockup-code-workspace {
    height: 400px;
  }
  .mockup-canvas-frame {
    width: 280px;
    height: 180px;
    right: 12px;
    top: 60px;
  }
  .features-grid, .steps-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .btn-cta-primary, .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-checklist {
    flex-direction: column;
    gap: 12px;
  }
  .nav-links {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.dark-theme .back-to-top-btn {
  background-color: rgba(11, 13, 20, 0.4);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--color-gray-500);
}

.back-to-top-btn:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-violet);
  border-color: var(--color-gray-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

body.dark-theme .back-to-top-btn:hover {
  background-color: rgba(11, 13, 20, 0.85);
  color: #a78bfa;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================
   5. Document Pages Styling (About, Privacy, Terms)
   ========================================== */
.document-layout {
  padding-top: 140px; /* offset navbar */
  padding-bottom: 100px;
}

.document-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.document-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--color-gray-100);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-violet);
  margin-bottom: 16px;
  border: 1px solid var(--color-gray-200);
}

body.dark-theme .document-header .badge {
  background-color: var(--color-gray-100);
  border-color: rgba(255, 255, 255, 0.05);
  color: #a78bfa;
}

.document-header h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-gray-900);
}

.document-header .meta-info {
  font-size: 14.5px;
  color: var(--color-gray-500);
}

.document-container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.document-card {
  background: var(--color-bg-offset);
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

body.dark-theme .document-card {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.document-card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-gray-700);
  margin-bottom: 24px;
}

.document-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.document-card h2:first-of-type {
  margin-top: 0;
}

.document-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-top: 24px;
  margin-bottom: 12px;
}

.document-card ul, .document-card ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.document-card li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}

.document-card strong {
  color: var(--color-gray-900);
}

.document-card a {
  color: var(--color-indigo);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.document-card a:hover {
  color: var(--color-violet);
}

/* About Us Specific Cards Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.about-card {
  background: var(--color-bg);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

body.dark-theme .about-card {
  background: var(--color-bg-offset);
  border-color: rgba(255, 255, 255, 0.05);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-violet);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(124, 58, 237, 0.08);
  color: var(--color-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

body.dark-theme .about-card-icon {
  background-color: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.about-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 12px;
}

.about-card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-gray-600);
}

@media (max-width: 768px) {
  .document-layout {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .document-header h1 {
    font-size: 32px;
  }
  .document-card {
    padding: 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
