html {
  scroll-behavior: smooth;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(91,109,255,0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(43,212,255,0.12), transparent 60%),
    #05070a;
}

:root {
  --bg-dark: #05070a;
  --bg-card: rgba(15, 18, 25, 0.7);
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --text-main: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.1);
  --glow: rgba(0, 102, 255, 0.6);
  --neon-blue: #00d2ff;
  --font-main: "Outfit", sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --accent: #2bd4ff;
  --accent-glow: rgba(43, 212, 255, 0.45);
}

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

body {
  background-color: transparent;
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Navbar */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 10, 0.8);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.9;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(76, 232, 255, 0.22));
}

.logo-wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.12rem;
  line-height: 1;
  white-space: nowrap;
}

.logo-wordmark-script {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #7558ff 0%, #3479ff 44%, #4ce8ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(52, 121, 255, 0.2);
}

.logo-wordmark-cue {
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #dcecff;
}

.logo-wordmark-mark {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7fe7ff;
  opacity: 0.8;
  transform: translateY(-0.14rem);
}

.logo:hover .logo-wordmark-script {
  filter: brightness(1.08);
}

.logo:hover .logo-wordmark-cue,
.logo:hover .logo-wordmark-mark {
  color: #ffffff;
}

.scriptcue-display {
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e8f6ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(183, 241, 255, 0.92) 14%, rgba(97, 228, 255, 0.86) 34%, rgba(56, 138, 255, 0.94) 68%, rgba(113, 87, 255, 0.96) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(151, 236, 255, 0.55);
  text-shadow:
    0 0 18px rgba(75, 227, 255, 0.2),
    0 0 38px rgba(45, 126, 255, 0.12);
  filter: drop-shadow(0 0 18px rgba(76, 232, 255, 0.18));
}

.scriptcue-display-soft {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
}

.scriptcue-display-wide {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

.chevron::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow:
    0 0 20px var(--primary),
    0 0 40px rgba(0, 102, 255, 0.4);
}

.btn-login {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
  scroll-margin-top: 80px;
}

.hero .container {
  max-width: 1400px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 4rem;
  text-align: left;
}

.hero-content {
  max-width: 100%;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.seq-img {
  width: 100%;
  max-width: 770px;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 64px rgba(0, 102, 255, 0.32);
  border: 1px solid rgba(0, 102, 255, 0.1);
  transition: var(--transition);
  animation: float 6s ease-in-out infinite;
}

.seq-img:hover {
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.8),
    0 0 96px rgba(0, 102, 255, 0.48);
  border-color: rgba(0, 102, 255, 0.3);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero-visual {
  width: 100%;
  max-width: 2200px;
  margin: 0 auto;
}

.laptop-showcase {
  padding: 60px 0 120px;
  position: relative;
  z-index: 1;
  background: radial-gradient(
    circle at center,
    rgba(0, 102, 255, 0.05) 0%,
    transparent 70%
  );
  scroll-margin-top: 80px;
}

.showcase-container {
  display: flex;
  justify-content: center;
  position: relative;
  max-width: 2200px;
}

.features-visual {
  padding: 100px 0;
  background: transparent;
  scroll-margin-top: 80px;
}

.features-img-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.features-full-img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.features-full-img:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 102, 255, 0.1);
}

.badge {
  background: rgba(0, 102, 255, 0.15);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 102, 255, 0.3);
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(90deg, #0066ff, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 13px rgba(0, 210, 255, 0.64));
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.play-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.play-icon::after {
  content: "";
  border-left: 8px solid white;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 3px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.h-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 1rem;
}

.icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

/* App Preview / Laptop frame */
.laptop-wrapper {
  position: relative;
  border-radius: 20px;
  transition: var(--transition);
}

.laptop-img {
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

.laptop-screen-area {
  position: absolute;
  top: 10.8%;
  left: 20.5%;
  width: 58.5%;
  height: 50.5%;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

.preview-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.artifact-container {
  width: 100%;
  height: 100%;
  min-height: unset;
  background:
    url("demo_bg.webp") center/cover no-repeat,
    #0f1219;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  color: white;
  font-size: 0.85rem;
  text-align: left;
}

.artifact-container::before {
  display: none; /* Remove the placeholder text */
}

.app-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* App Top Bar */
.app-top-bar {
  height: 48px;
  background: #1a1e26;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.app-logo-icon {
  height: 20px;
}

.app-top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-app-save {
  background: #ef4444;
  border: none;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
}

.btn-app-deactivate {
  background: rgba(239, 68, 68, 0.2);
  border: none;
  color: #ef4444;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
}

.window-controls {
  display: flex;
  gap: 0.4rem;
  margin-left: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.yellow {
  background: #fbbf24;
}
.dot.green {
  background: #10b981;
}
.dot.red {
  background: #ef4444;
}

/* App Body */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.app-sidebar {
  width: 180px;
  background: #0f1219;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-add-script {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
}

.script-list {
  list-style: none;
}

.script-list li {
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.script-list li.active {
  background: rgba(0, 102, 255, 0.1);
  color: white;
  border-left: 2px solid var(--primary);
}

.script-list li .count {
  margin-left: auto;
  color: var(--text-muted);
}

.sidebar-search {
  margin-top: auto;
  padding: 1rem;
}

.sidebar-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem;
  color: white;
  font-size: 0.75rem;
}

/* App Main */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #05070a;
}

.app-content-header {
  height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.header-icons {
  display: flex;
  gap: 1rem;
}

.teleprompter-view {
  flex: 1;
  position: relative;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.glow-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d2ff, transparent);
  box-shadow:
    0 0 24px #00d2ff,
    0 0 48px rgba(0, 210, 255, 0.9);
  opacity: 0.95;
}

.prompter-content {
  width: 100%;
  max-width: 600px;
}

.prompter-heading {
  font-size: 3.5rem;
  color: #ff6b6b;
  margin-bottom: 2rem;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
}

.prompter-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.prompter-text.secondary {
  opacity: 0.7;
  font-size: 1.2rem;
}

/* App Bottom Bar */
.app-bottom-bar {
  height: 64px;
  background: #11141d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.bar-left,
.bar-center,
.bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.separator {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.5rem;
}

.btn-play-app {
  width: 36px;
  height: 36px;
  background: #1a202e;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.play-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid #5b8dfa;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

.stat-item {
  font-size: 0.85rem;
  color: #94a3b8;
  white-space: nowrap;
}

.stat-item strong {
  color: white;
  font-weight: 700;
}

.stat-icon {
  font-size: 1.1rem;
  color: #94a3b8;
}

.bar-center {
  flex: 1;
  justify-content: center;
  gap: 2rem;
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-group .label {
  font-size: 0.85rem;
  color: #94a3b8;
  white-space: nowrap;
  min-width: 80px;
}

.slider-group .label strong {
  color: white;
}

.slider-wrapper {
  position: relative;
  width: 120px;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  display: flex;
  align-items: center;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  cursor: pointer;
  position: absolute;
  z-index: 2;
  border-radius: 3px;
}

.slider-blue {
  background: linear-gradient(90deg, #5b8dfa 100%, #1e293b 100%);
  box-shadow: 0 0 10px rgba(91, 141, 250, 0.2);
}

.slider-green {
  background: linear-gradient(90deg, #4ade80 100%, #1e293b 100%);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #6c99ff;
  border-radius: 50%;
  border: 3px solid #11141d;
  box-shadow: 0 0 15px rgba(108, 153, 255, 0.6);
  cursor: pointer;
  transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.btn-sidebar-toggle {
  background: #1e293b;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  width: 18px;
  height: 12px;
  border-top: 2px solid #5b8dfa;
  border-bottom: 2px solid #5b8dfa;
  position: relative;
}

.hamburger-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #5b8dfa;
}

.mode-status {
  color: #4a6fa5;
  font-size: 0.85rem;
  font-weight: 500;
}

.utility-icons {
  display: flex;
  gap: 1rem;
}

.u-icon {
  font-size: 1.1rem;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.u-icon:hover,
.u-icon.active {
  color: #5b8dfa;
}

.preview-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

/* ---- Legal Sections ---- */
.legal-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.legal-container {
  max-width: 860px;
}

.legal-page-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-page-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-meta-row a {
  color: var(--primary);
  text-decoration: none;
}

.legal-meta-row a:hover {
  text-decoration: underline;
}

.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text-main);
}

.legal-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-main);
}

.legal-body p {
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 0.92rem;
}

.legal-body p strong {
  color: var(--text-main);
}

.legal-body ul,
.legal-body ol {
  color: var(--text-dim);
  padding-left: 20px;
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 0.92rem;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body li strong {
  color: var(--text-main);
}

.legal-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.legal-body th {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.legal-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.6;
}

.legal-body td strong {
  color: var(--text-main);
}

.legal-placeholder {
  color: var(--primary);
  font-style: italic;
}

/* Footer legal links */
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}

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

.footer-legal-links a:hover {
  color: var(--text-main);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-features {
    align-items: center;
  }
  .hero-image {
    margin-top: 3rem;
  }
  .nav-links {
    display: none;
  }
}

/* Interactive Showcase Section */
.interactive-showcase {
  padding: 100px 0;
  background: transparent;
  text-align: center;
}

.interactive-showcase .section-header {
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1000px;
}

.interactive-image-container {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 102, 255, 0.1);
  border: 1px solid var(--border);
  background: #0f1219;
}

.base-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0, 102, 255, 0)) blur(2px);
}

/* Main Panel Animation */
#overlay-main {
  transform: translateY(8px) scale(0.99);
}
#overlay-main.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 20px 40px rgba(0, 102, 255, 0.5)) blur(0);
}

/* Bottom Toolbar Animation */
#overlay-toolbar {
  transform: translateY(15px);
}
#overlay-toolbar.active {
  opacity: 1;
  transform: translateY(0);
  filter: drop-shadow(0 10px 40px rgba(0, 210, 255, 0.6)) blur(0);
}

/* Script Panel Animation */
#overlay-script {
  transform: translateX(-15px);
}
#overlay-script.active {
  opacity: 1;
  transform: translateX(0);
  filter: drop-shadow(10px 0 40px rgba(0, 102, 255, 0.4)) blur(0);
}

/* Hitboxes */
.hitbox {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  transition: var(--transition);
}

.hitbox-label {
  position: absolute;
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hitbox:hover .hitbox-label {
  opacity: 1;
  transform: translateY(0);
}

/* Positioning Hitboxes (Estimated coordinates) */
.hitbox-toolbar {
  bottom: 8%;
  left: 10%;
  width: 80%;
  height: 12%;
}

.hitbox-toolbar .hitbox-label {
  bottom: 20%;
  left: 50%;
  transform: translate(-50%, 10px);
}

.hitbox-toolbar:hover .hitbox-label {
  transform: translate(-50%, 0);
}

.hitbox-script {
  top: 10%;
  left: 14%;
  width: 18%;
  height: 75%;
}

.hitbox-script .hitbox-label {
  top: 10%;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
}

.hitbox-script:hover .hitbox-label {
  transform: translateX(-50%) translateY(-10px);
}

.hitbox-main {
  top: 10%;
  left: 32%;
  width: 58%;
  height: 75%;
}

.hitbox-main .hitbox-label {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
}

.hitbox-main:hover .hitbox-label {
  transform: translate(-50%, -50%) scale(1);
}

/* Optional: Subtle highlight on the hitbox area itself during debug/dev */
/* .hitbox { background: rgba(0, 102, 255, 0.05); } */

/* ---- Features Bento Section ---- */
.features-bento-section {
  padding: 80px 0;
  background: transparent;
  scroll-margin-top: 80px;
}

.features-bento-card {
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
  padding-bottom: 70px; /* Space for footer */
}

/* Header */
.bento-header {
  text-align: center;
  padding: 4.5rem 2rem 3.5rem;
}

.bento-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  position: relative;
}

.logo-by {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: baseline;
  letter-spacing: 0.02em;
  opacity: 0.8;
  margin-left: 0.4rem;
  position: relative;
  top: -0.1rem;
}

.bento-logo-img {
  height: 55px;
}

.bento-header h2 {
  font-size: 5.75rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.bento-subtitle {
  color: var(--text-dim);
  font-size: 1.75rem;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Main Grid */
.bento-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 2rem;
  padding: 0 3rem;
  align-items: center;
}

/* Columns & Items */
.bento-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.bento-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-3px);
}

.bento-left .bento-item {
  text-align: left;
}
.bento-right .bento-item {
  text-align: left;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.25rem;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

/* Icon Colors */
.icon-blue {
  color: #00aaff;
  border-color: rgba(0, 170, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.1);
}
.icon-purple {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.2);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.1);
}
.icon-red {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.1);
}
.icon-yellow {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.2);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.1);
}
.icon-green {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.2);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}
.icon-violet {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.2);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.1);
}
.icon-pink {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.2);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.1);
}

.bento-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

/* Mockup */
.bento-center-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---- Live App Mockup ---- */
.bento-app-mockup {
  width: 100%;
  max-width: 560px;
  background: #0a0c14;
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  will-change: transform;
  animation: bam-glow 4s ease-in-out infinite;
}

@keyframes bam-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 210, 255, 0.1),
      0 0 30px rgba(0, 210, 255, 0.05),
      0 32px 80px rgba(0, 0, 0, 0.75);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 210, 255, 0.42),
      0 0 55px rgba(0, 210, 255, 0.18),
      0 32px 80px rgba(0, 0, 0, 0.75);
  }
}

/* — Title bar — */
.bam-titlebar {
  height: 40px;
  background: #131720;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.bam-titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bam-menu-icon { color: rgba(148, 163, 184, 0.6); flex-shrink: 0; }

.bam-app-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.9);
  letter-spacing: -0.01em;
}

.bam-titlebar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bam-btn-save {
  background: #ef4444;
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
}

.bam-dots { display: flex; gap: 5px; }
.bam-dot { width: 11px; height: 11px; border-radius: 50%; }
.bam-yellow { background: #febc2e; }
.bam-orange { background: #ff8c00; }
.bam-red    { background: #ff5f57; }

/* — Body — */
.bam-body {
  display: flex;
  height: 242px;
}

/* — Sidebar — */
.bam-sidebar {
  width: 158px;
  background: #0d1018;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.bam-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.85);
}

.bam-add {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.5);
}

.bam-script-list { list-style: none; flex: 1; }

.bam-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.75);
  font-weight: 600;
}

.bam-chevron-down {
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.7rem;
  line-height: 1;
}

.bam-count {
  margin-left: auto;
  font-size: 0.65rem;
  color: rgba(100, 116, 139, 0.7);
  font-weight: 400;
}

.bam-script-item {
  padding: 6px 12px 6px 24px;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bam-script-item.bam-active {
  background: rgba(59, 130, 246, 0.15);
  color: rgba(226, 232, 240, 0.9);
  border-left: 2px solid #3b82f6;
  padding-left: 22px;
}

.bam-active-badge {
  font-size: 0.58rem;
  color: #60a5fa;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bam-search {
  margin: auto 10px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: rgba(100, 116, 139, 0.55);
}
.bam-search svg { flex-shrink: 0; color: rgba(100, 116, 139, 0.45); }

/* — Main pane — */
.bam-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #08090f;
}

.bam-doc-header {
  height: 32px;
  background: #0d1018;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.bam-doc-title {
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bam-doc-sep {
  font-size: 0.68rem;
  color: rgba(100, 116, 139, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

.bam-doc-icons {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  color: rgba(100, 116, 139, 0.4);
}

/* — Formatting toolbar — */
.bam-format-bar {
  height: 30px;
  background: #0d1018;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 2px;
  flex-shrink: 0;
}

.bam-fmt {
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.7);
  padding: 2px 5px;
  border-radius: 3px;
  cursor: default;
  line-height: 1.4;
  font-family: var(--font-main);
}

.bam-fmt-h {
  font-weight: 700;
  font-size: 0.6rem;
  color: rgba(148, 163, 184, 0.8);
}

.bam-fmt-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
  flex-shrink: 0;
}

.bam-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bam-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

/* — Reading / editor area — */
.bam-reading {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #08090f;
}

.bam-reading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(to top, #08090f 20%, transparent);
  z-index: 2;
  pointer-events: none;
}

.bam-scroll-content {
  position: absolute;
  inset: 0;
  padding: 14px 18px 0;
  animation: bam-scroll 26s linear infinite;
  will-change: transform;
}

.bam-h1 {
  color: #ff6b6b;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255, 107, 107, 0.55);
  margin-bottom: 0.15em;
  line-height: 1.3;
}

.bam-h2 {
  color: #f59e0b;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0.5em 0 0.5em;
  line-height: 1.3;
}

.bam-body-text {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 0.1em;
}

@keyframes bam-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* — Control bar — */
.bam-controlbar {
  height: 42px;
  background: #0d1018;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 0;
  overflow: hidden;
}

.bam-bar-left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.bam-play-btn {
  width: 24px;
  height: 24px;
  background: #1a2035;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(91, 141, 250, 0.22);
  flex-shrink: 0;
}

.bam-stat {
  font-size: 0.58rem;
  color: rgba(148, 163, 184, 0.6);
  white-space: nowrap;
}
.bam-stat strong { color: rgba(226, 232, 240, 0.9); }

.bam-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  margin: 0 6px;
}

.bam-bar-center {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.bam-label {
  font-size: 0.56rem;
  color: rgba(100, 116, 139, 0.75);
  white-space: nowrap;
  flex-shrink: 0;
}
.bam-label strong { color: rgba(226, 232, 240, 0.85); }

.bam-slider-wrapper {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  min-width: 24px;
  max-width: 52px;
}

.bam-slider-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b6bfa, #5b8dfa);
  border-radius: 2px;
}

.bam-slider-green {
  background: linear-gradient(90deg, #22c55e, #4ade80) !important;
}

.bam-bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding-left: 2px;
}

.bam-mode-label {
  font-size: 0.55rem;
  color: rgba(74, 111, 165, 0.8);
  font-weight: 600;
  white-space: nowrap;
}

.bam-bar-right svg { flex-shrink: 0; }

/* Bottom Row */
.bento-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 4rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-bottom-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.bento-bottom-item:hover {
  transform: translateY(-3px);
}

.bento-icon-square {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.bento-icon-square svg {
  width: 22px;
  height: 22px;
}

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  background: radial-gradient(circle at center, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
  position: relative;
  scroll-margin-top: 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 4rem auto 0;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 102, 255, 0.1);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.15);
  background: linear-gradient(180deg, rgba(15, 18, 25, 0.8) 0%, rgba(0, 50, 150, 0.1) 100%);
}

.pricing-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0066ff, #00d2ff);
}

.popular-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 102, 255, 0.15);
  color: #00d2ff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 102, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header {
  margin-bottom: 2.5rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.price {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.price .amount {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  background: linear-gradient(90deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  align-self: flex-end;
  margin-bottom: 0.75rem;
}

.pricing-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin-bottom: 3rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

/* Footer */
.bento-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #0066ff, #a855f7, #ef4444);
  padding: 0.85rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bento-footer p {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.bento-platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .bento-main-grid {
    grid-template-columns: 1fr;
  }
  .bento-center-mockup {
    order: -1;
    margin-bottom: 3rem;
  }
  .bento-col {
    gap: 2rem;
  }
  .bento-bottom-row {
    grid-template-columns: repeat(2, 1fr);
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .bento-bottom-row {
    grid-template-columns: 1fr;
  }
  .features-bento-card {
    padding: 2rem 1.5rem;
    padding-bottom: 90px;
  }
  .bento-main-grid {
    padding: 0;
  }
  .bento-bottom-row {
    padding: 2rem 0;
  }
  .bento-header {
    padding: 2rem 0;
  }
  .bento-header h2 {
    font-size: 2rem;
  }
}

/* Tech Circuit Wiring Animations */
.tech-circuit {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
  opacity: 0.8;
}

.left-circuit {
  right: 90%;
}

.right-circuit {
  left: 90%;
}

.showcase-left-circuit {
  right: 100%;
  margin-right: -10px;
}

.showcase-right-circuit {
  left: 100%;
  margin-left: -10px;
}

.bento-left-circuit {
  right: 100%;
  margin-right: -20px;
  z-index: 0;
}

.bento-right-circuit {
  left: 100%;
  margin-left: -20px;
  z-index: 0;
}

@media (max-width: 1200px) {
  .tech-circuit {
    display: none;
  }
}

.circuit-pulse {
  stroke-dasharray: 40 250;
  stroke-dashoffset: 290;
  animation: dash-flow linear infinite;
  stroke-linecap: round;
}

.pulse-1 {
  animation-duration: 3.5s;
  animation-delay: 0s;
}
.pulse-2 {
  animation-duration: 4.2s;
  animation-delay: 1.5s;
}
.pulse-3 {
  animation-duration: 3.8s;
  animation-delay: 0.8s;
}
.pulse-4 {
  animation-duration: 3.2s;
  animation-delay: 0.3s;
}
.pulse-5 {
  animation-duration: 4.5s;
  animation-delay: 2s;
}
.pulse-6 {
  animation-duration: 3.9s;
  animation-delay: 1.2s;
}

@keyframes dash-flow {
  from {
    stroke-dashoffset: 290;
  }
  to {
    stroke-dashoffset: 0;
  }
}
