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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #374151;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e7eb;
}

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

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

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  color: #111827;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s;
}

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

/* ─── ICON SYSTEM ─── */
.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-wrap .icon {
  width: 22px;
  height: 22px;
}

.icon-red { background: #fef2f2; color: #ef4444; }
.icon-orange { background: #fff7ed; color: #f97316; }
.icon-yellow { background: #fefce8; color: #eab308; }
.icon-green { background: #f0fdf4; color: #22c55e; }
.icon-blue { background: #eff6ff; color: #3b82f6; }
.icon-purple { background: #f5f3ff; color: #8b5cf6; }
.icon-cyan { background: #ecfeff; color: #06b6d4; }

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 32px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: #6b7280;
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: #e5e7eb;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
}

.stat-label {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 4px;
}

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

.section-dark {
  background: #f9fafb;
}

.section-gradient {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff, #faf5ff);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 120px 0;
  text-align: center;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4f46e5;
  margin-bottom: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 17px;
  color: #6b7280;
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ─── PAIN GRID ─── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pain-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pain-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pain-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ─── FLOW DIAGRAM ─── */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.flow-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 36px;
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.flow-core {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.flow-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f46e5;
  margin-bottom: 16px;
}

.flow-header-icon {
  width: 16px;
  height: 16px;
}

.flow-sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.chip-icon {
  width: 14px;
  height: 14px;
}

.flow-chip-ai {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.flow-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.flow-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4338ca;
}

.feat-icon {
  width: 13px;
  height: 13px;
}

.flow-arrow {
  color: #d1d5db;
}

/* ─── LAYERS DIAGRAM ─── */
.layers-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 48px;
}

.layer {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.layer:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.layer-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  font-size: 15px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
}

.layer-content {
  padding: 20px 24px;
  flex: 1;
}

.layer-content h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.layer-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.layer-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.layer-1 { background: #eef2ff; }
.layer-1 .layer-num { background: #4f46e5; }

.layer-2 { background: #f5f3ff; }
.layer-2 .layer-num { background: #7c3aed; }

.layer-3 { background: #faf5ff; }
.layer-3 .layer-num { background: #a855f7; }

.layer-4 { background: #fdf4ff; }
.layer-4 .layer-num { background: #c026d3; }

.agent-layer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #c7d2fe;
  border-radius: 14px;
}

.agent-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-svg-icon {
  width: 26px;
  height: 26px;
  color: white;
}

.agent-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 6px;
}

.agent-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ─── CONTRIBUTION GRID ─── */
.contrib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contrib-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.contrib-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contrib-engineer:hover { border-color: #93c5fd; }
.contrib-pm:hover { border-color: #c4b5fd; }
.contrib-support:hover { border-color: #86efac; }

.contrib-persona {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contrib-persona .icon-wrap {
  margin-bottom: 0;
}

.contrib-role {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.contrib-how {
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
  text-align: center;
}

.contrib-card > p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.contrib-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contrib-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.tag-icon {
  width: 12px;
  height: 12px;
}

.contrib-insight {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
}

.contrib-insight-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contrib-insight-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 8px;
}

.contrib-insight-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* ─── IDE INTEGRATION ─── */
.ide-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
}

.ide-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 680px;
}

.ide-step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ide-step-content {
  flex: 1;
  padding-bottom: 8px;
}

.ide-step-content .icon-wrap {
  margin-bottom: 12px;
}

.ide-step-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.ide-step-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.ide-connector {
  display: flex;
  justify-content: center;
  padding-left: 10px;
  width: 60px;
}

code {
  background: #eef2ff;
  color: #4338ca;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: 500;
}

.ide-highlight {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 48px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
}

.ide-highlight-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.ide-highlight-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 8px;
}

.ide-highlight-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* ─── USE CASES ─── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.usecase-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.usecase-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.usecase-icon {
  width: 20px;
  height: 20px;
  color: #4f46e5;
}

.usecase-team {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4f46e5;
}

.usecase-query {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  font-style: italic;
}

.usecase-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.layer-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.layer-tag.l1 { background: #eef2ff; color: #4338ca; }
.layer-tag.l2 { background: #f5f3ff; color: #6d28d9; }
.layer-tag.l3 { background: #faf5ff; color: #9333ea; }
.layer-tag.l4 { background: #fdf4ff; color: #c026d3; }

.usecase-flow .arrow {
  color: #d1d5db;
  font-size: 14px;
}

.usecase-card p {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}

/* ─── AWS GRID ─── */
.aws-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.aws-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.aws-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.aws-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.aws-icon {
  width: 22px;
  height: 22px;
  color: #4f46e5;
}

.aws-service {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.aws-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* ─── CREDITS / INVESTMENT BREAKDOWN ─── */
.credits-ask {
  margin-top: 56px;
  padding: 36px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.credits-ask h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 28px;
  text-align: center;
}

.credits-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
}

.credit-pct {
  font-size: 28px;
  font-weight: 800;
  color: #4f46e5;
  min-width: 64px;
}

.credit-desc strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  display: block;
  margin-bottom: 4px;
}

.credit-desc p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* ─── TRACTION ─── */
.traction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.traction-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.traction-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.traction-card .icon-wrap {
  margin: 0 auto 16px;
}

.traction-num {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.traction-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* ─── VISION ─── */
.section-gradient .section-title {
  color: #111827;
}

.vision-text {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.vision-text strong {
  color: #111827;
  font-weight: 700;
}

/* ─── FOOTER ─── */
.footer {
  padding: 48px 0;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

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

.footer-tagline {
  font-size: 14px;
  color: #9ca3af;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-title { font-size: 44px; }
  .section-title { font-size: 32px; }
  .nav-links { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contrib-grid { grid-template-columns: 1fr; }
  .aws-grid { grid-template-columns: repeat(2, 1fr); }
  .traction-grid { grid-template-columns: repeat(2, 1fr); }
  .usecase-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 28px; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 26px; }
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .contrib-grid { grid-template-columns: 1fr; }
  .aws-grid { grid-template-columns: 1fr; }
  .traction-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  .flow-section { padding: 20px; }
  .ide-step { flex-direction: column; align-items: center; text-align: center; }
  .ide-connector { padding-left: 0; }
  .ide-highlight { flex-direction: column; align-items: center; text-align: center; }
  .contrib-insight { flex-direction: column; align-items: center; text-align: center; }
  .agent-layer { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .credit-item { flex-direction: column; text-align: center; }
  .credit-pct { min-width: auto; }
}
