/* ============================================
   REDLINE WEBSITE - STYLES
   Professional OSINT Platform Landing Page
   ============================================ */

/* CSS Variables - Design System */
:root {
  /* Backgrounds */
  --bg-void: #000000;
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #101010;
  --bg-elevated: #151515;

  /* Accent Colors */
  --accent-blue: #00d4ff;
  --accent-red: #ff3366;
  --accent-purple: #aa55ff;
  --accent-green: #00ff88;
  --accent-amber: #ff9500;
  --accent-cyan: #00ffff;
  --accent-pink: #ff44aa;
  --accent-teal: #00d4aa;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --text-dim: #505050;

  /* Borders */
  --border-subtle: #1a1a1a;
  --border-medium: #252525;
  --border-strong: #333333;

  /* Fonts */
  --font-mono: "JetBrains Mono", monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-medium: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   AMBIENT BACKGROUND EFFECTS
   ============================================ */

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-red);
  top: -200px;
  left: -200px;
  animation: ambient-drift-1 20s ease-in-out infinite;
}

.ambient-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: -150px;
  right: -150px;
  animation: ambient-drift-2 25s ease-in-out infinite;
}

@keyframes ambient-drift-1 {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(100px, 50px);
  }
}

@keyframes ambient-drift-2 {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-80px, -40px);
  }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 20px var(--accent-red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.nav-link-github {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
}

.nav-link-github:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Large Hero Logo */
.hero-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-logo-dot {
  position: relative;
  width: 48px;
  height: 48px;
}

.hero-logo-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-red);
  opacity: 0.4;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-logo-dot-solid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow:
    0 0 46px rgba(255, 51, 102, 0.6),
    0 0 76px rgba(255, 51, 102, 0.4);
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-logo-text {
  font-family: var(--font-mono);
  font-size: 84px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--accent-red);
  text-shadow: 0 0 50px rgba(255, 51, 102, 0.5);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 100px;
  margin-bottom: 32px;
}

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

.hero-badge span:last-child {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent-red);
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-accent {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  text-align: center;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all var(--transition-medium);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), #cc2952);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 51, 102, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
}

.stat-value[data-color="blue"] {
  color: var(--accent-blue);
}

.stat-value[data-color="purple"] {
  color: var(--accent-purple);
}

.stat-value[data-color="green"] {
  color: var(--accent-green);
}

.stat-value[data-color="cyan"] {
  color: var(--accent-cyan);
}

.stat-value[data-color="red"] {
  color: var(--accent-red);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* Hero Visual - Screenshot */
.hero-visual {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-screenshot {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(255, 51, 102, 0.15);
  cursor: pointer;
  transition: transform var(--transition-medium);
}

.hero-screenshot:hover {
  transform: scale(1.02);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 11px;
}

/* Screenshot Lightbox */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  cursor: pointer;
}

.screenshot-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.screenshot-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 100px rgba(255, 51, 102, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.screenshot-lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

/* Sample Nodes */
.sample-node {
  position: absolute;
  width: 160px;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  transition: all var(--transition-medium);
  animation: float 6s ease-in-out infinite;
}

.sample-node:nth-child(odd) {
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.sample-node:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.node-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.node-type {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.node-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Node Type Colors */
.node-actor .node-icon {
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent-green);
}

.node-actor .node-type {
  color: var(--accent-green);
}

.node-actor {
  border-left: 3px solid var(--accent-green);
}

.node-organization .node-icon {
  background: rgba(255, 68, 170, 0.15);
  color: var(--accent-pink);
}

.node-organization .node-type {
  color: var(--accent-pink);
}

.node-organization {
  border-left: 3px solid var(--accent-pink);
}

.node-event .node-icon {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-red);
}

.node-event .node-type {
  color: var(--accent-red);
}

.node-event {
  border-left: 3px solid var(--accent-red);
}

.node-prediction .node-icon {
  background: rgba(255, 149, 0, 0.15);
  color: var(--accent-amber);
}

.node-prediction .node-type {
  color: var(--accent-amber);
}

.node-prediction {
  border-left: 3px solid var(--accent-amber);
}

.node-note .node-icon {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-blue);
}

.node-note .node-type {
  color: var(--accent-blue);
}

.node-note {
  border-left: 3px solid var(--accent-blue);
}

.node-embed .node-icon {
  background: rgba(0, 255, 255, 0.15);
  color: var(--accent-cyan);
}

.node-embed .node-type {
  color: var(--accent-cyan);
}

.node-embed {
  border-left: 3px solid var(--accent-cyan);
}

/* Connection Lines */
.connections-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-line {
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: dash 20s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

/* ============================================
   SECTIONS - COMMON STYLES
   ============================================ */

.section {
  padding: var(--section-padding) 24px;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-blue);
  padding: 6px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */

.section-features {
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.feature-card {
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all var(--transition-medium);
}

.feature-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 20px;
}

.feature-icon[data-color="blue"] {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-blue);
}

.feature-icon[data-color="green"] {
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent-green);
}

.feature-icon[data-color="red"] {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-red);
}

.feature-icon[data-color="purple"] {
  background: rgba(170, 85, 255, 0.15);
  color: var(--accent-purple);
}

.feature-icon[data-color="cyan"] {
  background: rgba(0, 255, 255, 0.15);
  color: var(--accent-cyan);
}

.feature-icon[data-color="amber"] {
  background: rgba(255, 149, 0, 0.15);
  color: var(--accent-amber);
}

.feature-icon[data-color="pink"] {
  background: rgba(255, 68, 170, 0.15);
  color: var(--accent-pink);
}

.feature-icon[data-color="teal"] {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent-teal);
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CANVAS SHOWCASE SECTION
   ============================================ */

.section-canvas {
  background: var(--bg-void);
}

.canvas-showcase {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.showcase-content {
  flex: 1;
}

.showcase-content .section-tag {
  margin-bottom: 16px;
}

.showcase-content .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.showcase-content .section-description {
  text-align: left;
  margin-bottom: 40px;
}

.node-types-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-type-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition:
    all var(--transition-medium),
    border-color var(--transition-fast);
  cursor: pointer;
  overflow: hidden;
}

.node-type-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-tertiary);
}

.node-type-item.expanded {
  border-color: var(--border-medium);
}

.type-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.type-chevron {
  margin-left: auto;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.node-type-item.expanded .type-chevron {
  transform: rotate(180deg);
}

.type-details {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px 0 36px;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    opacity 0.2s ease;
}

.node-type-item.expanded .type-details {
  max-height: 200px;
  padding: 0 16px 16px 36px;
  opacity: 1;
}

.type-details p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.node-type-item[data-color="blue"] .type-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
}

.node-type-item[data-color="red"] .type-dot {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

.node-type-item[data-color="green"] .type-dot {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.node-type-item[data-color="pink"] .type-dot {
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}

.node-type-item[data-color="amber"] .type-dot {
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

.node-type-item[data-color="cyan"] .type-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.node-type-item[data-color="purple"] .type-dot {
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

.node-type-item[data-color="teal"] .type-dot {
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
}

.node-type-item[data-color="document"] .type-dot {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.node-type-item[data-color="social"] .type-dot {
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
}

.node-type-item[data-color="location"] .type-dot {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.node-type-item[data-color="narrative"] .type-dot {
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
}

.node-type-item[data-color="newsfeed"] .type-dot {
  background: #39ff14;
  box-shadow: 0 0 10px #39ff14;
}

.node-type-item[data-color="rssfeed"] .type-dot {
  background: #c45a1a;
  box-shadow: 0 0 10px #c45a1a;
}

.node-type-item[data-color="region"] .type-dot {
  background: #6b7280;
  box-shadow: 0 0 10px #6b7280;
}

.type-name {
  font-weight: 600;
  font-size: 14px;
  min-width: 100px;
}

.type-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Showcase Visual - Node Stack */
.showcase-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.node-stack {
  position: relative;
  width: 280px;
  height: 320px;
}

.stack-node {
  position: absolute;
  width: 240px;
  padding: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  transition: all var(--transition-medium);
}

.stack-node-1 {
  top: 0;
  left: 0;
  z-index: 3;
  animation: stack-float-1 5s ease-in-out infinite;
}

.stack-node-2 {
  top: 80px;
  left: 40px;
  z-index: 2;
  animation: stack-float-2 5s ease-in-out infinite;
}

.stack-node-3 {
  top: 160px;
  left: 20px;
  z-index: 1;
  animation: stack-float-3 5s ease-in-out infinite;
}

@keyframes stack-float-1 {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-10px) rotate(0deg);
  }
}

@keyframes stack-float-2 {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }

  50% {
    transform: translateY(-6px) rotate(-1deg);
  }
}

@keyframes stack-float-3 {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-4px) rotate(1deg);
  }
}

.stack-node-glow {
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.stack-node:hover .stack-node-glow {
  opacity: 1;
}

.stack-node-1 .stack-node-glow {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.stack-node-2 .stack-node-glow {
  box-shadow: 0 0 30px rgba(255, 51, 102, 0.3);
}

.stack-node-3 .stack-node-glow {
  box-shadow: 0 0 30px rgba(255, 149, 0, 0.3);
}

.stack-node-content {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.stack-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.stack-icon[data-color="green"] {
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent-green);
}

.stack-icon[data-color="red"] {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-red);
}

.stack-icon[data-color="amber"] {
  background: rgba(255, 149, 0, 0.15);
  color: var(--accent-amber);
}

.stack-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.stack-title {
  font-size: 15px;
  font-weight: 600;
}

/* ============================================
   AI SECTION
   ============================================ */

.section-ai {
  background: var(--bg-primary);
}

.ai-content {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.ai-visual {
  flex: 1;
}

.ai-chat-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(170, 85, 255, 0.1);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 8px;
  color: white;
}

.chat-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

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

.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
}

.chat-message {
  max-width: 90%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.message-user {
  align-self: flex-end;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.message-ai {
  align-self: flex-start;
  background: rgba(170, 85, 255, 0.1);
  border: 1px solid rgba(170, 85, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-green);
}

.chat-input {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
}

.chat-input input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

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

.chat-send {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 8px;
  color: white;
  transition: all var(--transition-fast);
}

.chat-send:hover {
  transform: scale(1.05);
}

/* AI Text Content */
.ai-text {
  flex: 1;
}

.ai-text .section-tag {
  margin-bottom: 16px;
}

.ai-text .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.ai-text .section-description {
  text-align: left;
  margin-bottom: 32px;
}

.ai-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.ai-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.ai-feature:hover {
  border-color: var(--border-medium);
}

.ai-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(170, 85, 255, 0.15);
  color: var(--accent-purple);
  border-radius: 8px;
  flex-shrink: 0;
}

.ai-feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-feature-title {
  font-size: 14px;
  font-weight: 600;
}

.ai-feature-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.ai-providers {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.providers-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.providers-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.provider {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.section-testimonials {
  background: var(--bg-void);
  padding: 80px 0;
  overflow: hidden;
}

.section-testimonials .section-header {
  margin-bottom: 48px;
}

.testimonials-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scroll-testimonials 30s linear infinite;
  width: max-content;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 32px;
  min-width: 320px;
  max-width: 400px;
  transition: all var(--transition-medium);
}

.testimonial-card:hover {
  border-color: var(--accent-red);
  background: var(--bg-tertiary);
}

.testimonial-quote {
  font-size: 16px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.section-pricing {
  background: var(--bg-void);
}

/* Per-seat price display */
.per-seat-price {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 80px;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-medium);
}

.pricing-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card-featured {
  background: linear-gradient(
    180deg,
    rgba(255, 51, 102, 0.1) 0%,
    var(--bg-secondary) 100%
  );
  border-color: var(--accent-red);
  transform: scale(1.02);
}

.pricing-card-featured:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: var(--accent-red);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

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

.pricing-tier {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.pricing-price {
  margin-bottom: 24px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
}

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

/* Seat Selector */
.seat-selector {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.seat-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
}

.seat-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-blue);
}

.seat-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-medium);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.seat-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
  transition: transform var(--transition-fast);
}

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

.seat-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent-blue);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

.seat-range {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Pricing Features */
.pricing-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

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

.pricing-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-included svg {
  color: var(--accent-green);
}

.feature-excluded {
  opacity: 0.5;
}

.feature-excluded svg {
  color: var(--text-muted);
}

.feature-included.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.btn-block {
  width: 100%;
}

/* Pricing FAQ */
.pricing-faq {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.pricing-faq h3 {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

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

.faq-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ============================================
   CTA SECTION
   ============================================ */

.section-cta {
  background: var(--bg-void);
  text-align: center;
  padding: 160px 24px;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 40px 24px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-brand .brand-dot {
  width: 10px;
  height: 10px;
}

.footer-brand .brand-text {
  font-size: 14px;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

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

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    padding-left: 0;
    margin-top: 60px;
    width: 100%;
  }

  .canvas-showcase {
    flex-direction: column;
    gap: 60px;
  }

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

  .showcase-content .section-title,
  .showcase-content .section-description {
    text-align: center;
  }

  .ai-content {
    flex-direction: column-reverse;
    gap: 60px;
  }

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

  .ai-text .section-title,
  .ai-text .section-description {
    text-align: center;
  }

  .ai-features {
    grid-template-columns: 1fr;
  }

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

  .providers-list {
    justify-content: center;
  }
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-link:not(.nav-link-github) {
    display: none;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .canvas-content {
    height: 300px;
  }

  .sample-node {
    width: 130px;
    padding: 10px;
  }

  .node-title {
    font-size: 11px;
  }

  .node-meta {
    font-size: 10px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .cta-actions {
    flex-direction: column;
  }

  .node-types-list {
    gap: 8px;
  }

  .node-type-item {
    padding: 10px 12px;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .price-amount {
    font-size: 40px;
  }
}

/* ============================================
   PRO BADGE
   ============================================ */

.pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.feature-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

.ai-feature-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Node type item PRO badge */
.node-type-item .pro-badge {
  margin-left: auto;
  margin-right: 8px;
}

/* ============================================
   DOWNLOAD PAGE
   ============================================ */

.download-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.download-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

.download-header {
  text-align: center;
  margin-bottom: 32px;
}

.download-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.download-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* License Form */
.license-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.input-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-group input {
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: 1px;
  text-align: center;
  transition: all var(--transition-fast);
}

.input-group input::placeholder {
  color: var(--text-muted);
  letter-spacing: 2px;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.15);
}

.error-message {
  padding: 12px 16px;
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 8px;
  color: var(--accent-red);
  font-size: 14px;
  text-align: center;
}

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

.download-footer p {
  font-size: 14px;
  color: var(--text-muted);
}

.download-footer a {
  color: var(--accent-blue);
  transition: color var(--transition-fast);
}

.download-footer a:hover {
  color: var(--text-primary);
}

/* Success Badge */
.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent-green);
  border-radius: 50%;
  margin-bottom: 16px;
}

/* Tier Badge */
.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.platform-card:hover {
  border-color: var(--accent-blue);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: 10px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.platform-card:hover .platform-icon {
  color: var(--accent-blue);
}

.platform-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.platform-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.platform-detail {
  font-size: 12px;
  color: var(--text-muted);
}

.download-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}

.platform-card:hover .download-icon {
  opacity: 1;
  transform: translateY(0);
  color: var(--accent-blue);
}

.download-note {
  text-align: center;
  margin-bottom: 24px;
}

.download-note p {
  font-size: 13px;
  color: var(--text-muted);
}

.download-note a {
  color: var(--accent-blue);
  transition: color var(--transition-fast);
}

.download-note a:hover {
  color: var(--text-primary);
}

/* Recommended platform card */
.platform-card-recommended {
  border-color: var(--accent-green);
  background: rgba(0, 255, 136, 0.05);
  position: relative;
}

.platform-card-recommended:hover {
  border-color: var(--accent-green);
}

.platform-card-recommended .platform-icon {
  color: var(--accent-green);
}

.recommended-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent-green);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Download page responsive */
@media (max-width: 600px) {
  .download-card {
    padding: 32px 24px;
  }

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

  .download-header h1 {
    font-size: 24px;
  }
}
