/* ===== RESET & VARIABLES ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f23;
  --bg-card: #141428;
  --bg-card-hover: #1a1a35;
  --surface: #1e1e3a;
  --border: rgba(108, 92, 231, 0.15);
  --border-light: rgba(255, 255, 255, 0.06);

  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #6a6a8a;

  --purple: #6C5CE7;
  --purple-light: #a29bfe;
  --cyan: #00D2FF;
  --cyan-light: #74b9ff;
  --green: #00E676;
  --red: #FF6B6B;
  --yellow: #FDCB6E;
  --gold: #F0B90B;

  --gradient: linear-gradient(135deg, #6C5CE7 0%, #00D2FF 100%);
  --gradient-text: linear-gradient(135deg, #a29bfe 0%, #00D2FF 50%, #6C5CE7 100%);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  padding: 14px 28px;
  font-size: 15px;
}

.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(108, 92, 231, 0.08);
}

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

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 0.6;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

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

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

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-dot {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--purple);
  top: -200px;
  right: -100px;
  opacity: 0.15;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  bottom: -100px;
  left: -100px;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ===== HERO TERMINAL ===== */
.hero-terminal {
  margin-top: 60px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

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

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28C840; }

.terminal-title {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 0;
}

.terminal-dashboard {
  display: flex;
  min-height: 380px;
}

.dash-sidebar {
  width: 200px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-light);
  padding: 16px 0;
  flex-shrink: 0;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.dash-nav-item:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.dash-nav-item.active {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.1);
  border-right: 2px solid var(--purple);
}

.dash-icon {
  font-size: 16px;
}

.dash-main {
  flex: 1;
  padding: 20px;
  min-width: 0;
}

.dash-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.alert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
  min-width: 0;
}

.alert-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.alert-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  line-height: 1.5;
}

.alert-btn {
  padding: 8px 16px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  opacity: 0;
  transform: scale(0.9);
}

.alert-btn.visible {
  opacity: 1;
  transform: scale(1);
}

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

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.card-change {
  font-size: 11px;
  font-family: var(--font-mono);
}

.card-change.positive {
  color: var(--green);
}

.card-tag {
  font-size: 11px;
  color: var(--yellow);
}

.card-tag.auto {
  color: var(--green);
}

.dash-chart {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.legend-dot.real { background: var(--purple); }
.legend-dot.predicted { background: var(--cyan); }

.chart-area {
  height: 100px;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

/* ===== LOGOS SECTION ===== */
.logos-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
}

.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.logos-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.6;
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.logo-item:hover {
  opacity: 1;
  border-color: var(--border);
  color: var(--text-secondary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== PROBLEMS ===== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s ease;
}

.problem-card:hover {
  border-color: rgba(255, 107, 107, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  margin-bottom: 20px;
}

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

.problem-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.problem-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

.problem-stat-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
  font-family: var(--font-mono);
}

/* ===== SOLUTIONS ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.solution-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.solution-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(108, 92, 231, 0.08);
  font-family: var(--font-mono);
  line-height: 1;
}

.solution-icon-wrap {
  margin-bottom: 20px;
}

.solution-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: var(--radius-md);
}

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

.solution-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-features {
  list-style: none;
}

.solution-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
}

.solution-features li::before {
  content: '→';
  color: var(--purple-light);
  font-weight: 600;
}

/* ===== STEPS / TIMELINE ===== */
.steps-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 40px;
  margin-bottom: 64px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--purple), transparent);
  margin-top: 12px;
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.step-visual {
  margin-bottom: 20px;
}

.step-phone {
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.phone-screen {
  padding: 16px;
}

.phone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
}

.phone-item .check {
  color: var(--green);
  font-weight: 700;
}

.phone-item.connecting {
  border: 1px solid rgba(0, 210, 255, 0.2);
  background: rgba(0, 210, 255, 0.05);
}

.loading-dots {
  color: var(--cyan);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ai-chat {
  padding: 4px 0;
}

.ai-msg {
  padding: 12px 16px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.ai-insight {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  border-left: 2px solid var(--purple);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.autopilot-screen {
  padding: 4px 0;
}

.autopilot-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(0, 230, 118, 0.08);
  border-radius: var(--radius-sm);
}

.autopilot-item {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
}

.autopilot-item.done {
  color: var(--text-secondary);
}

.autopilot-item.active {
  color: var(--cyan);
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.15);
  font-weight: 500;
}

/* ===== MODEL / BUSINESS ===== */
.model-grid {
  display: flex;
  align-items: stretch;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.model-card {
  flex: 1;
  min-width: 320px;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all 0.3s;
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.engine-saas:hover {
  border-color: rgba(108, 92, 231, 0.4);
}

.engine-fintech:hover {
  border-color: rgba(0, 210, 255, 0.4);
}

.model-plus {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.engine-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.engine-badge.gold {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.2);
  color: var(--cyan);
}

.engine-icon {
  margin-bottom: 20px;
}

.model-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.engine-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.engine-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

.metric-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
}

.engine-role {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

.role-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.role-tag.isca {
  background: rgba(108, 92, 231, 0.15);
  color: var(--purple-light);
}

.role-tag.ouro {
  background: rgba(240, 185, 11, 0.15);
  color: var(--gold);
}

/* ===== FLYWHEEL ===== */
.flywheel {
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.flywheel-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
}

.flywheel-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flywheel-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.flywheel-step:hover {
  border-color: var(--border);
  background: rgba(108, 92, 231, 0.05);
}

.fw-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.fw-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.fw-text span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.flywheel-arrow {
  color: var(--purple);
  font-size: 20px;
  font-weight: 700;
}

/* ===== METRICS ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.3);
}

.metric-icon-circle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.metric-icon-circle.purple {
  background: rgba(108, 92, 231, 0.1);
  color: var(--purple-light);
}

.metric-icon-circle.cyan {
  background: rgba(0, 210, 255, 0.1);
  color: var(--cyan);
}

.metric-icon-circle.green {
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
}

.metric-icon-circle.gold {
  background: rgba(240, 185, 11, 0.1);
  color: var(--gold);
}

.metric-card-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.metric-card-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.metric-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== PROJECTION ===== */
.projection {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.projection-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

.projection-bars {
  max-width: 700px;
  margin: 0 auto 24px;
}

.proj-bar-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.proj-label {
  width: 60px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.proj-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.proj-bar {
  flex: 1;
  height: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  display: flex;
  overflow: hidden;
  max-width: var(--width);
  transition: max-width 1.5s ease;
}

.proj-bar-fill {
  height: 100%;
  transition: width 1s ease;
}

.proj-bar-fill.saas {
  background: var(--purple);
}

.proj-bar-fill.credit {
  background: var(--cyan);
}

.proj-value {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  white-space: nowrap;
}

.proj-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.legend-box {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-box.saas { background: var(--purple); }
.legend-box.credit { background: var(--cyan); }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all 0.3s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.price-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.price-amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.check-icon {
  color: var(--green);
  font-weight: 700;
}

.x-icon {
  color: var(--text-muted);
}

/* ===== TECH GRID ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}

.tech-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-2px);
}

.tech-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.tech-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  transition: all 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.3);
}

.team-avatar {
  margin-bottom: 20px;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.team-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--purple-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.section-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: var(--bg-secondary);
}

.cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.cta-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--purple);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.12;
}

.cta-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  bottom: -200px;
  right: 10%;
  opacity: 0.08;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-content > p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-form {
  text-align: left;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  transition: all 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(108, 92, 231, 0.05);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236a6a8a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.cta-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

.cta-success {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.cta-success h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-success p {
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
}

.footer-links h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.alert-text.typing::after {
  content: '▊';
  color: var(--purple-light);
  animation: cursor-blink 0.8s ease-in-out infinite;
  margin-left: 2px;
}

/* Selection styling */
::selection {
  background: rgba(108, 92, 231, 0.3);
  color: var(--text-primary);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* Smooth transition for hover states */
.problem-card,
.solution-card,
.metric-card,
.tech-card,
.team-card,
.pricing-card {
  will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dash-sidebar {
    display: none;
  }

  .dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problems-grid,
  .solution-grid,
  .pricing-grid,
  .tech-grid,
  .team-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
  }

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

  .mobile-toggle {
    display: flex;
  }

  .btn-sm {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-divider {
    display: none;
  }

  .problems-grid,
  .solution-grid,
  .pricing-grid,
  .tech-grid,
  .team-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .model-grid {
    flex-direction: column;
    align-items: center;
  }

  .model-plus {
    transform: rotate(90deg);
  }

  .flywheel-steps {
    flex-direction: column;
    gap: 12px;
  }

  .flywheel-arrow {
    transform: rotate(90deg);
  }

  .step {
    flex-direction: column;
    gap: 20px;
  }

  .step-marker {
    flex-direction: row;
    gap: 12px;
  }

  .step-line {
    height: 2px;
    width: 40px;
    margin-top: 0;
    margin-left: 0;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .engine-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 100px 0 40px;
  }

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

  .dash-alert {
    flex-direction: column;
    text-align: center;
  }

  .chart-header {
    flex-direction: column;
    gap: 8px;
  }
}
