:root {
  --bg-primary: #090a0f;
  --bg-secondary: #0f111a;
  --bg-card: rgba(19, 22, 33, 0.7);
  --bg-card-hover: rgba(26, 30, 46, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-cyan: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6366f1 100%);
  --glow-radial: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 0 40px -5px rgba(139, 92, 246, 0.35);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 15% 15%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 85% 25%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(99, 102, 241, 0.1) 0px, transparent 60%);
  background-attachment: fixed;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography & Utilities */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--accent-purple-light);
  letter-spacing: 0.02em;
}

.badge-beta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  color: #c4b5fd;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 10px #a78bfa;
  animation: pulse 2s infinite ease-in-out;
}

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

/* Header / Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 15, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.logo-text span {
  color: var(--accent-purple-light);
}

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

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

.nav-links a:hover {
  color: #ffffff;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

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

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.28), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hero-guarantee span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Mockup Studio Workspace */
.mockup-container {
  margin-top: 3.5rem;
  position: relative;
  perspective: 1200px;
}

.mockup-window {
  background: #0d0f18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(139, 92, 246, 0.25);
  overflow: hidden;
  text-align: left;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mockup-window:hover {
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.9), 0 0 65px -5px rgba(139, 92, 246, 0.35);
}

.mockup-topbar {
  background: #131622;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.mockup-body {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  min-height: 480px;
  background: #0b0d14;
}

@media (max-width: 992px) {
  .mockup-body {
    grid-template-columns: 1fr;
  }
  .mockup-agent, .mockup-preview {
    display: none;
  }
}

/* Mockup Panel 1: Agent & Chat */
.mockup-agent {
  border-right: 1px solid var(--border-subtle);
  background: rgba(14, 17, 26, 0.6);
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-stream {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow-y: auto;
  font-size: 0.85rem;
}

.chat-bubble {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  line-height: 1.45;
}

.chat-user {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-ai {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

.chat-ai-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent-purple-light);
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.chat-action-log {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
  border-left: 2px solid #38bdf8;
}

/* Mockup Panel 2: Code Editor */
.mockup-editor {
  display: flex;
  flex-direction: column;
  background: #090b12;
}

.editor-tabs {
  display: flex;
  background: #111420;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.editor-tab {
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: transparent;
}

.editor-tab.active {
  color: #ffffff;
  background: #090b12;
  border-bottom: 2px solid var(--accent-purple);
}

.editor-code {
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.7;
  color: #cbd5e1;
  flex: 1;
  overflow-x: auto;
}

.code-line {
  display: flex;
}

.code-num {
  width: 2.2rem;
  color: #475569;
  user-select: none;
}

.token-tag { color: #f43f5e; }
.token-attr { color: #f59e0b; }
.token-val { color: #10b981; }
.token-comment { color: #64748b; font-style: italic; }
.token-keyword { color: #c084fc; }

/* Mockup Panel 3: Live Preview */
.mockup-preview {
  border-left: 1px solid var(--border-subtle);
  background: #121522;
  display: flex;
  flex-direction: column;
}

.preview-address {
  padding: 0.6rem 0.8rem;
  background: #0c0e16;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.url-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-canvas {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
  background: #0a0c13;
}

.mini-card {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.mini-headline {
  height: 12px;
  width: 70%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.mini-text {
  height: 8px;
  width: 90%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 0.35rem;
}

.mini-btn {
  height: 22px;
  width: 75px;
  background: #8b5cf6;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Problem Section */
.problem-section {
  padding: 7rem 0 5rem;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-head .badge {
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.problem-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.25);
  transform: translateY(-4px);
}

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

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.card-icon-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

/* Solution / Pivot Banner */
.pivot-banner {
  margin: 3.5rem auto 0;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.3);
  text-align: center;
  max-width: 900px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pivot-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pivot-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.card-icon-accent {
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent-purple-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.feature-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-purple-light);
  background: rgba(139, 92, 246, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Workflow Steps */
.workflow-section {
  padding: 6rem 0;
  background: rgba(15, 17, 26, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--accent-purple-light);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Benefits Section */
.benefits-section {
  padding: 6rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.benefit-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.benefit-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple-light);
  display: grid;
  place-items: center;
}

.benefit-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.benefit-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Call to Action Final */
.cta-section {
  padding: 6rem 0 8rem;
  position: relative;
}

.cta-box {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.25), rgba(15, 17, 26, 0.9) 70%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(139, 92, 246, 0.25);
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cta-box p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.cta-button-wrap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #07080c;
  padding: 3.5rem 0 2rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  max-width: 360px;
}

.footer-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive details */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-section {
    padding: 3.5rem 0 4rem;
  }
  .cta-box {
    padding: 3rem 1.5rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
