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

:root {
  --bg: #09090f;
  --surface: #111827;
  --surface-2: #1a2332;
  --border: #1e293b;
  --fg: #f1f5f9;
  --fg-2: #94a3b8;
  --fg-3: #64748b;
  --accent: #c8f135;
  --accent-dim: rgba(200, 241, 53, 0.12);
  --accent-glow: rgba(200, 241, 53, 0.06);
  --green: #4ade80;
  --yellow: #fbbf24;
  --blue: #60a5fa;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

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

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.logo-mark { color: var(--accent); font-size: 20px; }
.logo-text { color: var(--fg); }
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

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

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

.nav-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.nav-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

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

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(200, 241, 53, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 241, 53, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 241, 53, 0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  width: fit-content;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-headline {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-headline-accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #09090f;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #d4f940;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(200, 241, 53, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg-2);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--fg-3);
  color: var(--fg);
}

/* ===================== DASHBOARD MOCKUP ===================== */
.dashboard-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(200, 241, 53, 0.06), 0 40px 80px rgba(0,0,0,0.5);
}

.mockup-topbar {
  background: var(--surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-title {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--mono);
  flex: 1;
}

.mockup-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}

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

.mockup-body {
  display: flex;
  height: 360px;
}

.mockup-sidebar {
  width: 140px;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--fg-3);
  cursor: pointer;
}

.sidebar-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.sidebar-item svg { flex-shrink: 0; }

.mockup-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.mock-metrics {
  display: flex;
  gap: 12px;
}

.mock-metric {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.metric-label {
  display: block;
  font-size: 10px;
  color: var(--fg-3);
  margin-bottom: 4px;
  font-family: var(--mono);
}

.metric-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  font-family: var(--mono);
}

.metric-trend {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}

.metric-trend.up { color: var(--green); }
.metric-trend.neutral { color: var(--yellow); }

.mock-project-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

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

.project-dot.green { background: var(--green); }
.project-dot.yellow { background: var(--yellow); }

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

.project-status {
  font-size: 9px;
  color: var(--fg-3);
  font-family: var(--mono);
}

.mock-agent-row {
  display: flex;
  gap: 8px;
}

.agent-badge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(200, 241, 53, 0.15);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--fg-2);
}

.agent-icon { color: var(--accent); font-size: 12px; }

.agent-status {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  color: var(--green);
}

.agent-status.idle { color: var(--fg-3); }

/* ===================== METRICS ===================== */
.metrics {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.metrics-label {
  text-align: center;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 48px;
}

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

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.metric-card:hover {
  border-color: rgba(200, 241, 53, 0.3);
}

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

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

.metric-card .metric-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.metric-card .metric-desc {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}

/* ===================== FEATURES ===================== */
.features {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.features-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

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

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.bento-card:hover {
  border-color: rgba(200, 241, 53, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.bento-large { grid-column: span 2; }
.bento-wide { grid-column: span 2; }

.bento-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.bento-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
}

.bento-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.revenue-visual {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 20px 0 0;
  height: 60px;
}

.rev-bar {
  flex: 1;
  background: var(--surface-2);
  border-radius: 4px 4px 0 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 0;
  position: relative;
  transition: all 0.2s;
}

.rev-bar.active {
  background: var(--accent-dim);
  border-color: rgba(200, 241, 53, 0.3);
}

.rev-bar span {
  font-size: 9px;
  color: var(--fg-3);
  font-family: var(--mono);
}

.rev-bar.active span { color: var(--accent); }

/* ===================== WORKFLOW ===================== */
.workflow {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.workflow-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.workflow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

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

.step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent-dim);
  line-height: 1;
  letter-spacing: -2px;
}

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

.step-content p {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
}

.step-connector {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.step-connector::after {
  content: '→';
  color: var(--border);
  font-size: 20px;
}

/* ===================== WORKFLOW VISUALS ===================== */
.msg-thread {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

.msg.incoming {
  background: var(--surface-2);
  color: var(--fg-2);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg.outgoing {
  background: var(--accent-dim);
  color: var(--fg);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  border: 1px solid rgba(200, 241, 53, 0.15);
}

.msg-tag {
  font-size: 10px;
  color: var(--green);
  text-align: center;
  font-family: var(--mono);
  padding-top: 4px;
}

.task-runner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 8px;
  border-radius: 6px;
  color: var(--fg-3);
}

.task-row.done { color: var(--green); background: rgba(74, 222, 128, 0.05); }
.task-row.active { color: var(--accent); background: var(--accent-dim); }
.task-row.pending { color: var(--fg-3); }

.task-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  color: var(--bg);
  font-weight: 700;
}

.task-check.loading {
  background: transparent;
  border: 2px solid var(--accent);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.task-row span:nth-child(2) { flex: 1; }

.task-time {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.7;
}

.daily-feed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-2);
}

.feed-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.feed-icon.green { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.feed-icon.yellow { background: rgba(251, 191, 36, 0.15); color: var(--yellow); }
.feed-icon.blue { background: rgba(96, 165, 250, 0.15); color: var(--blue); }

.feed-text { flex: 1; }

.feed-time {
  font-size: 10px;
  color: var(--fg-3);
  font-family: var(--mono);
  white-space: nowrap;
}

/* ===================== CLIENTS ===================== */
.clients {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.clients-label {
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 48px;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s;
}

.client-card:hover {
  border-color: rgba(200, 241, 53, 0.2);
  transform: translateY(-2px);
}

.client-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.client-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.client-type {
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 12px;
}

.client-result {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.clients-cta {
  font-size: 15px;
  color: var(--fg-2);
}

/* ===================== CLOSING ===================== */
.closing {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.closing-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.closing-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.closing-sub {
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.closing-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-2);
}

.stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.footer-tagline {
  color: var(--fg-3);
  font-size: 13px;
  flex: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.footer-links a {
  color: var(--fg-3);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-sep { color: var(--fg-3); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .features-bento { grid-template-columns: 1fr 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }
  .workflow-steps { grid-template-columns: 1fr;; }
  .step-connector { display: none; }
  .clients-logos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .features-bento { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .clients-logos { grid-template-columns: 1fr; }
  .hero { padding: 100px 16px 60px; }
  .closing { padding: 60px 16px; }
}