/* ========================================
   XTCStudio — Shared Styles
   Dark/light design system with animated gradient
   ======================================== */

/* ---- Theme variables ---- */
:root {
  --bg: #fff;
  --bg-alt: #fafafa;
  --bg-surface: #f5f5f7;
  --bg-card: #fff;
  --text: #111;
  --text-secondary: #888;
  --text-tertiary: #555;
  --text-dim: #bbb;
  --border: #eee;
  --border-hover: #ddd;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --btn-bg: #111;
  --btn-text: #fff;
  --btn-hover: #333;
  --btn-outline-border: #ddd;
  --highlight-col: #f8f8fa;
  --code-bg: #1a1a2e;
  --shadow: rgba(0,0,0,0.06);
  --gradient-opacity: 0.12;
}

[data-theme="dark"] {
  --bg: #080b12;
  --bg-alt: #0c1018;
  --bg-surface: #121a26;
  --bg-card: #0e1520;
  --text: #e4e8f0;
  --text-secondary: #6a7a8e;
  --text-tertiary: #8a9ab0;
  --text-dim: #3a4a5e;
  --border: #1a2535;
  --border-hover: #253545;
  --nav-bg: rgba(8, 11, 18, 0.92);
  --btn-bg: #e4e8f0;
  --btn-text: #080b12;
  --btn-hover: #c0c8d4;
  --btn-outline-border: #253545;
  --highlight-col: #121a26;
  --code-bg: #0a0e16;
  --shadow: rgba(0,0,0,0.4);
  --gradient-opacity: 0.35;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---- Page entrance & scroll animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero, .hero h1, .hero p, .hero-buttons {
  animation: fadeInUp 0.8s ease both;
}
.hero h1 { animation-delay: 0.1s; }
.hero p { animation-delay: 0.2s; }
.hero-buttons { animation-delay: 0.3s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside revealed sections */
.reveal.visible .card,
.reveal.visible .flow-step,
.reveal.visible .profession-card,
.reveal.visible .pricing-card,
.reveal.visible .use-case,
.reveal.visible .step {
  animation: fadeInUp 0.5s ease both;
}
.reveal.visible :nth-child(1) { animation-delay: 0.05s; }
.reveal.visible :nth-child(2) { animation-delay: 0.12s; }
.reveal.visible :nth-child(3) { animation-delay: 0.19s; }
.reveal.visible :nth-child(4) { animation-delay: 0.26s; }
.reveal.visible :nth-child(5) { animation-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* ---- Animated gradient background ---- */
.vortex-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.vortex-bg::before,
.vortex-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: var(--gradient-opacity);
  animation: vortex-drift 20s ease-in-out infinite;
}

.vortex-bg::before {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #00e5ff 0%, #7c3aed 35%, transparent 70%);
  top: -15%;
  right: -10%;
  animation-delay: 0s;
}

.vortex-bg::after {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #e040fb 0%, #7c3aed 40%, transparent 70%);
  bottom: -10%;
  left: -10%;
  animation-delay: -10s;
}

.vortex-orb-1,
.vortex-orb-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: var(--gradient-opacity);
}

.vortex-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #ff006e 0%, #00e5ff 50%, transparent 70%);
  top: 35%;
  left: 25%;
  animation: vortex-pulse 15s ease-in-out infinite;
}

.vortex-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00e5ff 0%, #e040fb 45%, transparent 70%);
  top: 15%;
  right: 15%;
  animation: vortex-pulse 18s ease-in-out infinite reverse;
}

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

@keyframes vortex-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: var(--gradient-opacity); }
  33% { transform: scale(1.2) rotate(60deg); opacity: calc(var(--gradient-opacity) * 0.7); }
  66% { transform: scale(0.8) rotate(120deg); opacity: calc(var(--gradient-opacity) * 1.3); }
}

/* ---- Theme toggle ---- */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--text-secondary);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ---- Nav ---- */
nav {
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

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

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

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

.nav-cta {
  background: var(--btn-bg);
  color: var(--btn-text) !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--btn-hover);
  color: var(--btn-text) !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  font-family: inherit;
  text-align: center;
}

.btn-primary:hover {
  background: var(--btn-hover);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--btn-outline-border);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}

.btn-outline:hover {
  border-color: var(--text);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 10px;
}

/* ---- Hero (generic) ---- */
.hero {
  text-align: center;
  padding: 120px 0 80px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ---- Section headers ---- */
.section {
  padding: 80px 0;
}

.section-alt {
  padding: 80px 0;
  background: var(--bg-alt);
}

.mobile-break { display: none; }

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

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Video placeholder ---- */
.video-slot {
  background: var(--bg-surface);
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  max-width: 800px;
  margin: 0 auto;
}

.video-slot:hover {
  background: var(--border);
}

.video-slot .play-icon {
  width: 64px;
  height: 64px;
  background: var(--shadow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-slot .play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent var(--text-secondary);
  margin-left: 4px;
}

.video-slot-sm {
  aspect-ratio: 16 / 9;
  max-width: 600px;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px var(--shadow);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

/* ---- Feature cards (alternating image/text) ---- */
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-text {
  padding: 20px 0;
}

.feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.feature-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-visual {
  background: var(--bg-surface);
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-card.reversed .feature-visual {
  order: -1;
}

/* ---- Pills & badges ---- */
.pill {
  display: inline-block;
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
}

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

.platform-pill {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  box-shadow: 0 1px 3px var(--shadow);
}

.llm-badge {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  box-shadow: 0 1px 3px var(--shadow);
}

.export-pill {
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: -0.01em;
}

/* ---- Icon cards (platform grid etc.) ---- */
.icon-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.icon-card .icon {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.icon-card h4 {
  font-size: 15px;
  font-weight: 600;
}

.icon-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Trust bar ---- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--text-dim);
}

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Comparison table ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table thead th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 2px solid var(--text);
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table thead th:not(:first-child) {
  text-align: center;
}

.comparison-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody td:first-child {
  font-weight: 500;
  color: var(--text-tertiary);
}

.comparison-table tbody td:not(:first-child) {
  text-align: center;
}

.comparison-table .highlight-col {
  background: rgba(0, 229, 255, 0.06);
}

[data-theme="dark"] .comparison-table .highlight-col {
  background: rgba(0, 229, 255, 0.08);
}

.comparison-table thead th.highlight-col {
  color: #00e5ff;
}

.check { color: #00c9a7; font-weight: 700; }
.partial { color: var(--text-tertiary); }
.no { color: var(--text-secondary); }

/* ---- Code blocks ---- */
.code-block {
  background: var(--code-bg);
  color: #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  position: relative;
}

.code-block .comment { color: #6a7080; }
.code-block .string { color: #a5d6a7; }
.code-block .keyword { color: #82b1ff; }
.code-block .method { color: #c792ea; }
.code-block .number { color: #f78c6c; }

.code-tabs {
  display: flex;
  gap: 0;
  margin-bottom: -1px;
}

.code-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--border);
  color: var(--text-secondary);
  border-radius: 8px 8px 0 0;
  font-family: inherit;
  transition: all 0.2s;
}

.code-tab.active {
  background: var(--code-bg);
  color: #fff;
}

.code-panel {
  display: none;
}

.code-panel.active {
  display: block;
}

/* ---- Pricing ---- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  font-size: 15px;
  font-weight: 500;
}

.pricing-toggle .toggle {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.pricing-toggle .toggle.active {
  background: var(--btn-bg);
}

.pricing-toggle .toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.pricing-toggle .toggle.active::after {
  transform: translateX(22px);
}

.pricing-toggle .save {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--text);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-card .price-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-card ul li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-tertiary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-card ul li::before {
  content: '\2713';
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .btn-outline {
  width: 100%;
}

/* ---- Calculator ---- */
.calculator {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.calculator h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.calculator input[type="range"] {
  width: 100%;
  max-width: 400px;
  margin: 16px 0;
  accent-color: var(--text);
}

.calculator .result {
  font-size: 18px;
  font-weight: 600;
  margin-top: 16px;
}

.calculator .result span {
  color: var(--text-secondary);
  font-weight: 400;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---- Waitlist ---- */
.waitlist {
  text-align: center;
  padding: 80px 0 120px;
}

.waitlist h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.waitlist .subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 36px;
}

.waitlist-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-form input {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg-card);
  color: var(--text);
}

.waitlist-form input:focus {
  border-color: var(--text);
}

.waitlist-form button {
  width: 100%;
  padding: 16px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.waitlist-form button:hover {
  background: var(--btn-hover);
}

/* ---- Footer ---- */
footer {
  background: #111;
  color: #fff;
  padding: 60px 0 40px;
}

[data-theme="dark"] footer {
  background: #060609;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
}

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

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

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

.footer-col a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: #555;
}

/* ---- Use cases ---- */
.use-case {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.use-case:last-child {
  border-bottom: none;
}

.use-case-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.use-case-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.use-case h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.use-case .scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.scenario-box {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 20px;
}

.scenario-box h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.scenario-box p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.use-case ul {
  list-style: none;
  margin-bottom: 16px;
}

.use-case ul li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--text-tertiary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.use-case ul li::before {
  content: '\2192';
  color: var(--text-dim);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---- Endpoint table (API) ---- */
.endpoint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.endpoint-table th {
  text-align: left;
  padding: 12px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 2px solid var(--text);
  color: var(--text);
}

.endpoint-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.endpoint-table code {
  background: var(--bg-surface);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.method-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.method-badge.post { background: #e8f5e9; color: #2e7d32; }
.method-badge.get { background: #e3f2fd; color: #1565c0; }

/* ---- Getting Started steps ---- */
.gs-step {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.gs-step:last-child {
  border-bottom: none;
}

.gs-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.gs-step-num {
  width: 36px;
  height: 36px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.gs-step h3 {
  font-size: 22px;
  font-weight: 700;
}

.gs-step p {
  font-size: 15px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ---- Highlight boxes ---- */
.highlight-box {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
}

.highlight-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.highlight-box p {
  font-size: 15px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---- Inline code ---- */
code {
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ---- 8-step pipeline grid ---- */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: pipeline-step;
}

.pipeline-step {
  text-align: center;
  position: relative;
}

.pipeline-step::before {
  counter-increment: pipeline-step;
  content: counter(pipeline-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.pipeline-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pipeline-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Bulk hero section ---- */
.bulk-hero {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 20px;
  padding: 56px 48px;
}

[data-theme="dark"] .bulk-hero {
  background: #1a1a24;
  border: 1px solid var(--border);
}

.bulk-hero h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

[data-theme="dark"] .bulk-hero h2 {
  color: var(--text);
}

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

.bulk-hero ul li {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

[data-theme="dark"] .bulk-hero ul li {
  color: var(--text-secondary);
}

.bulk-hero ul li::before {
  content: '\2192';
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  flex-shrink: 0;
}

[data-theme="dark"] .bulk-hero ul li::before {
  color: var(--text-dim);
}

.bulk-hero .bulk-tagline {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .bulk-hero .bulk-tagline {
  color: var(--text-dim);
}

/* ---- Black hole ---- */
.blackhole-container {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  perspective: 800px;
}

.blackhole {
  width: 320px;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blackhole-float 8s ease-in-out infinite;
}

.event-horizon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #000 60%, transparent 100%);
  position: absolute;
  z-index: 3;
  box-shadow:
    0 0 40px 10px rgba(0, 0, 0, 0.8),
    0 0 80px 20px rgba(0, 0, 0, 0.4);
}

.photon-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: absolute;
  z-index: 2;
  border: 2px solid rgba(0, 229, 255, 0.6);
  box-shadow:
    0 0 20px 4px rgba(0, 229, 255, 0.3),
    inset 0 0 20px 4px rgba(0, 229, 255, 0.15);
  animation: photon-pulse 3s ease-in-out infinite;
}

.accretion-disk {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  position: absolute;
  z-index: 1;
  border: 1px solid transparent;
  background:
    conic-gradient(
      from 0deg,
      transparent 0%,
      rgba(0, 229, 255, 0.4) 15%,
      rgba(224, 64, 251, 0.3) 30%,
      transparent 45%,
      rgba(255, 0, 110, 0.3) 60%,
      rgba(0, 229, 255, 0.4) 75%,
      transparent 90%,
      rgba(224, 64, 251, 0.2) 100%
    );
  mask: radial-gradient(circle, transparent 18%, black 22%, black 48%, transparent 50%);
  -webkit-mask: radial-gradient(circle, transparent 18%, black 22%, black 48%, transparent 50%);
  animation: accretion-spin 12s linear infinite;
  filter: blur(2px);
}

.accretion-disk.disk-2 {
  width: 260px;
  height: 260px;
  background:
    conic-gradient(
      from 120deg,
      transparent 0%,
      rgba(0, 229, 255, 0.6) 10%,
      rgba(224, 64, 251, 0.5) 25%,
      transparent 40%,
      rgba(255, 0, 110, 0.5) 55%,
      rgba(0, 229, 255, 0.6) 70%,
      transparent 85%,
      rgba(224, 64, 251, 0.3) 100%
    );
  mask: radial-gradient(circle, transparent 22%, black 26%, black 44%, transparent 48%);
  -webkit-mask: radial-gradient(circle, transparent 22%, black 26%, black 44%, transparent 48%);
  animation: accretion-spin 8s linear infinite reverse;
  filter: blur(1px);
  opacity: 0.8;
}

.accretion-disk.disk-3 {
  width: 200px;
  height: 200px;
  background:
    conic-gradient(
      from 240deg,
      transparent 0%,
      rgba(0, 229, 255, 0.8) 15%,
      transparent 30%,
      rgba(224, 64, 251, 0.7) 50%,
      transparent 65%,
      rgba(255, 0, 110, 0.6) 80%,
      transparent 100%
    );
  mask: radial-gradient(circle, transparent 28%, black 32%, black 42%, transparent 46%);
  -webkit-mask: radial-gradient(circle, transparent 28%, black 32%, black 42%, transparent 46%);
  animation: accretion-spin 5s linear infinite;
  filter: blur(0.5px);
  opacity: 0.9;
}

@keyframes accretion-spin {
  from { transform: rotateX(65deg) rotateZ(0deg); }
  to { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes photon-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

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

/* Light mode: subtler black hole */
.blackhole { opacity: 0.7; }
[data-theme="dark"] .blackhole { opacity: 1; }

/* ---- XTC highlight ---- */
.xtc-highlight {
  color: var(--text);
  font-weight: 900;
  position: relative;
  display: inline-block;
}

.xtc-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -2px;
  right: -2px;
  height: 6px;
  background: linear-gradient(90deg, #00e5ff, #e040fb);
  opacity: 0.25;
  border-radius: 3px;
  z-index: -1;
}

[data-theme="dark"] .xtc-highlight::after {
  opacity: 0.6;
}

/* ---- Three-step flow ---- */
.three-step-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.flow-step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 16px;
}

.flow-number {
  width: 48px;
  height: 48px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.flow-step h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 12px;
  flex-shrink: 0;
}

.flow-arrow svg {
  width: 28px;
  height: 28px;
  color: var(--text-dim);
}

/* ---- NotebookLM callout ---- */
.nlm-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.nlm-left h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.nlm-left p {
  font-size: 16px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.nlm-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nlm-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.nlm-label {
  font-weight: 600;
  color: var(--text);
}

.nlm-them {
  color: var(--text-dim);
  text-align: center;
}

.nlm-us {
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

/* ---- Profession cards ---- */
.profession-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.profession-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.profession-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px var(--shadow);
}

.profession-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.profession-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.profession-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Cost table (compare page) ---- */
.cost-table {
  color: var(--text);
}

.cost-table thead th {
  color: var(--text);
  border-bottom-color: var(--text);
}

.cost-table tbody td {
  border-bottom-color: var(--border);
}

.cost-table .tool-name {
  color: var(--text);
}

.cost-table .note-cell {
  color: var(--text-secondary);
}

.cost-table .highlight-row {
  background: var(--highlight-col);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

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

  .hero p {
    font-size: 17px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    max-width: 280px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .mobile-break { display: inline; }

  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card.reversed {
    grid-template-columns: 1fr;
  }

  .feature-card .feature-visual {
    order: -1 !important;
  }

  .feature-text h3 {
    font-size: 24px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .pipeline-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .bulk-hero {
    padding: 40px 28px;
  }

  .bulk-hero h2 {
    font-size: 28px;
  }

  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .comparison-table {
    font-size: 12px;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 6px;
  }

  .three-step-flow {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .flow-step {
    max-width: 100%;
  }

  .nlm-callout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nlm-left h2 {
    font-size: 28px;
  }

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

  .use-case .scenario {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-columns {
    gap: 48px;
  }

  .waitlist h2 {
    font-size: 28px;
  }

  .pricing-card .price {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
  }

  .nav-logo {
    font-size: 16px;
  }

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

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

  .calculator {
    padding: 24px;
  }
}
