/* ==============================
   relai:code — Landing Page Styles
   Dark aesthetic, blue-to-purple gradients
   ============================== */

:root {
  --bg: #07070a;
  --bg-surface: #0c0c14;
  --bg-card: #111119;
  --bg-card-hover: #16161f;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --text-dim: #555568;
  --accent-blue: #4d7cff;
  --accent-purple: #a855f7;
  --accent-cyan: #22d3ee;
  --gradient-primary: linear-gradient(135deg, #4d7cff 0%, #a855f7 50%, #ec4899 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(77, 124, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(77, 124, 255, 0.2) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 70%);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-lg: 20px;
}

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

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

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

/* Background canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ==============================
   Navigation
   ============================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 7, 10, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  font-size: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.logo-colon {
  color: var(--accent-blue);
  -webkit-text-fill-color: var(--accent-blue);
}

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

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

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

.nav-cta {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: unset !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ==============================
   Hero
   ============================== */

.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 160px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(77, 124, 255, 0.1);
  border: 1px solid rgba(77, 124, 255, 0.2);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 0 30px rgba(77, 124, 255, 0.3), 0 0 60px rgba(168, 85, 247, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(77, 124, 255, 0.4), 0 0 80px rgba(168, 85, 247, 0.25);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-text {
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Hero screenshot mockup */
.hero-screenshot {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: -60px auto 0;
}

.screenshot-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: var(--gradient-glow);
  filter: blur(60px);
  z-index: 0;
}

.screenshot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-surface);
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(77, 124, 255, 0.08);
}

.screenshot-topbar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.screenshot-dots {
  display: flex;
  gap: 6px;
}

.screenshot-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.5;
}

.screenshot-dots span:first-child { background: #ff5f57; opacity: 0.8; }
.screenshot-dots span:nth-child(2) { background: #febc2e; opacity: 0.8; }
.screenshot-dots span:last-child { background: #28c840; opacity: 0.8; }

.screenshot-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-dim);
}

.screenshot-spacer {
  width: 52px;
}

.screenshot-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
}

/* Sidebar: project list */
.screenshot-sidebar {
  padding: 12px 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.15);
  overflow: hidden;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px 10px;
}

.sidebar-project {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  cursor: default;
  transition: background 0.15s;
}

.sidebar-project:hover {
  background: rgba(255,255,255,0.03);
}

.sidebar-project.active {
  background: rgba(77, 124, 255, 0.08);
  border-left: 2px solid var(--accent-blue);
  padding-left: 12px;
}

.sidebar-project-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sidebar-project-info {
  min-width: 0;
  overflow: hidden;
}

.sidebar-project-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-project-path {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
}

/* Main content area */
.screenshot-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Tab bar */
.app-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  padding: 0 12px;
}

.app-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: default;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  white-space: nowrap;
}

.app-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent-blue);
}

.app-tab svg {
  opacity: 0.5;
}

.app-tab.active svg {
  opacity: 0.9;
}

/* Chat content area */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.app-chat-msg.app-bot .app-msg-text {
  color: var(--text-muted);
}

.app-chat-msg.app-bot .app-msg-text p {
  margin-bottom: 8px;
}

.app-chat-msg.app-bot .app-msg-text ul {
  margin: 4px 0 8px 20px;
  color: var(--text-muted);
}

.app-chat-msg.app-bot .app-msg-text li {
  margin-bottom: 4px;
  font-size: 12px;
}

.app-chat-msg.app-bot .app-msg-text strong {
  color: var(--text);
  font-weight: 600;
}

.app-msg-bubble {
  display: inline-block;
  background: rgba(77, 124, 255, 0.1);
  border: 1px solid rgba(77, 124, 255, 0.15);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  float: right;
}

.app-chat-msg.app-user {
  text-align: right;
  clear: both;
}

/* Code block inside chat */
.app-code-block {
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.app-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border);
}

.app-code-file {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.app-code-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.app-code-body {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
}

.editor-line {
  white-space: nowrap;
}

.editor-line.indent {
  padding-left: 24px;
}

.editor-line.ai-line {
  background: rgba(77, 124, 255, 0.05);
  border-left: 2px solid rgba(77, 124, 255, 0.3);
  margin-left: -14px;
  padding-left: 12px;
  margin-right: -14px;
  padding-right: 14px;
}

.editor-line.ai-line.indent {
  padding-left: 36px;
}

.tok-kw { color: #c792ea; }
.tok-str { color: #c3e88d; }
.tok-fn { color: #82aaff; }
.tok-prop { color: #f78c6c; }
.tok-bool { color: #ff5370; }
.tok-comment { color: #546e7a; font-style: italic; }
.tok-param { color: #e8e8f0; }

/* Bottom input bar */
.app-input-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}

.app-input-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.app-input-placeholder {
  flex: 1;
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 0;
}

.app-input-send {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  cursor: pointer;
}

/* ==============================
   Pricing
   ============================== */

.pricing {
  position: relative;
  z-index: 2;
  padding: 80px 24px 120px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.pricing-card-featured {
  background: var(--gradient-subtle);
  border-color: rgba(77, 124, 255, 0.25);
  box-shadow: 0 0 60px rgba(77, 124, 255, 0.1), 0 0 120px rgba(168, 85, 247, 0.05);
}

.pricing-card-featured:hover {
  border-color: rgba(77, 124, 255, 0.4);
}

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

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

.pricing-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pricing-dollar {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-billing {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pricing-features li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #22c55e;
  border-bottom: 1.5px solid #22c55e;
  transform: rotate(-45deg);
}

.pricing-cta {
  width: 100%;
  justify-content: center;
}

/* ==============================
   Section shared styles
   ============================== */

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

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ==============================
   Hero Features — big alternating sections
   ============================== */

.hero-features {
  position: relative;
  z-index: 2;
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
}

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

.hero-feature-reverse {
  direction: rtl;
}

.hero-feature-reverse > * {
  direction: ltr;
}

.hero-feature-text h3 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-feature-text > p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-feature-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}

.hero-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0.6;
}

.hero-feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(77, 124, 255, 0.06);
}

/* Diff mock */
.mock-diff {
  padding: 16px;
  text-align: left;
}

.diff-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.diff-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.diff-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}

.diff-file {
  margin-bottom: 12px;
}

.diff-file-name {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
}

.diff-line {
  font-size: 11px;
  font-family: var(--mono);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 1px;
}

.diff-remove {
  background: rgba(255, 83, 112, 0.08);
  color: #ff5370;
  border-left: 2px solid rgba(255, 83, 112, 0.4);
}

.diff-add {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  border-left: 2px solid rgba(34, 197, 94, 0.4);
}

.diff-stats {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.diff-stat-add {
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
}

.diff-stat-remove {
  font-size: 12px;
  font-weight: 600;
  color: #ff5370;
}

/* GitHub Actions mock */
.mock-actions {
  padding: 16px;
  text-align: left;
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.actions-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.actions-repo {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  margin-left: auto;
}

.actions-run {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  margin-bottom: 8px;
}

.actions-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.actions-status-dot.success { background: #22c55e; }
.actions-status-dot.running { background: #f59e0b; animation: pulse-dot 1.5s infinite; }
.actions-status-dot.failed { background: #ef4444; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.actions-run-info { flex: 1; min-width: 0; }

.actions-run-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.actions-run-meta {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.actions-rerun {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* Memory/search mock */
.mock-memory {
  padding: 16px;
  text-align: left;
}

.memory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--mono);
}

.memory-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.memory-result {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.memory-result-date {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 2px;
}

.memory-result-content {
  min-width: 0;
}

.memory-result-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.memory-result-snippet {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==============================
   Features Grid
   ============================== */

.features {
  position: relative;
  z-index: 2;
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 8px 20px;
  padding: 40px;
  background: var(--gradient-subtle);
  border-color: rgba(77, 124, 255, 0.15);
}

.feature-card-large .feature-icon {
  grid-row: span 2;
  align-self: start;
  width: 56px;
  height: 56px;
}

.feature-card-large .feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card-large h3 {
  font-size: 22px;
}

.feature-card-large p {
  font-size: 15px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(77, 124, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-blue);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

/* ==============================
   Showcase
   ============================== */

.showcase {
  position: relative;
  z-index: 2;
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.showcase-card {
  text-align: left;
}

.showcase-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 6px;
}

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

.showcase-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mock-screen {
  background: var(--bg-surface);
}

.mock-topbar {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.mock-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mock-topbar span:nth-child(1) { background: #ff5f57; opacity: 0.7; }
.mock-topbar span:nth-child(2) { background: #febc2e; opacity: 0.7; }
.mock-topbar span:nth-child(3) { background: #28c840; opacity: 0.7; }

.mock-content {
  padding: 16px;
  min-height: 200px;
}

/* Plan mode mock */
.mock-plan {
  padding: 16px;
  text-align: left;
}

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

.plan-icon {
  font-size: 14px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.plan-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-step {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border-left: 2px solid rgba(77, 124, 255, 0.3);
}

.plan-step code {
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 11px;
}

.plan-actions {
  display: flex;
  gap: 8px;
}

.plan-btn {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
}

.plan-btn.accept {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.plan-btn.decline {
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* Kanban mock */
.mock-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  text-align: left;
}

.kanban-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kanban-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.kanban-item {
  font-size: 11px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  line-height: 1.4;
}

.kanban-item.active {
  border-color: rgba(77, 124, 255, 0.3);
  background: rgba(77, 124, 255, 0.06);
  color: var(--text);
}

.kanban-item.done {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.6;
}

/* Process mock */
.mock-process {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  text-align: left;
}

.process-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.process-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.process-indicator.running {
  background: #22c55e;
  animation: pulse-dot 1.5s infinite;
}

.process-indicator.exited {
  background: var(--text-dim);
}

.process-info { flex: 1; min-width: 0; }

.process-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--mono);
}

.process-meta {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* Accounts mock */
.mock-accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  text-align: left;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.account-item.active-account {
  border-color: rgba(77, 124, 255, 0.3);
  background: rgba(77, 124, 255, 0.06);
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.account-info {
  min-width: 0;
}

.account-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.account-detail {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ==============================
   Download
   ============================== */

.download {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.download-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(77, 124, 255, 0.12) 0%, rgba(168, 85, 247, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.download-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  min-width: 200px;
}

.download-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.download-card svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.download-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

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

.download-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* ==============================
   Footer
   ============================== */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 80px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

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

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ==============================
   Scroll animations
   ============================== */

.feature-card,
.showcase-card,
.download-card,
.pricing-card,
.hero-feature {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.showcase-card.visible,
.download-card.visible,
.pricing-card.visible,
.hero-feature.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.feature-card:nth-child(2) { transition-delay: 0.05s; }
.feature-card:nth-child(3) { transition-delay: 0.1s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }
.feature-card:nth-child(5) { transition-delay: 0.2s; }
.feature-card:nth-child(6) { transition-delay: 0.25s; }
.feature-card:nth-child(7) { transition-delay: 0.3s; }
.feature-card:nth-child(8) { transition-delay: 0.35s; }
.feature-card:nth-child(9) { transition-delay: 0.4s; }
.feature-card:nth-child(10) { transition-delay: 0.45s; }
.feature-card:nth-child(11) { transition-delay: 0.5s; }
.feature-card:nth-child(12) { transition-delay: 0.55s; }

.showcase-card:nth-child(2) { transition-delay: 0.1s; }
.showcase-card:nth-child(3) { transition-delay: 0.2s; }

.pricing-card:nth-child(2) { transition-delay: 0.1s; }

/* ==============================
   Responsive
   ============================== */

@media (max-width: 900px) {
  .screenshot-body {
    grid-template-columns: 1fr;
  }

  .screenshot-sidebar {
    display: none;
  }

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

  .feature-card-large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .feature-card-large .feature-icon {
    grid-row: span 1;
  }

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

  .hero-feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-feature-reverse {
    direction: ltr;
  }

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

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

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 120px 16px 0;
  }

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

  .download-cards {
    flex-direction: column;
    align-items: center;
  }

  .download-card {
    width: 100%;
    max-width: 280px;
  }

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