/* ============================================
   Appsmith OS — Theme
   ============================================ */

:root {
  --bg: #0c0c0e;
  --bg-surface: #141417;
  --bg-elevated: #1c1c21;
  --fg: #f0ede8;
  --fg-muted: #7c7b78;
  --fg-subtle: #4a4945;
  --accent: #FF6D2D;
  --accent-dim: rgba(255, 109, 45, 0.12);
  --border: rgba(240, 237, 232, 0.08);
  --border-strong: rgba(240, 237, 232, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header ── */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

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

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

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-label {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

/* ── Hero ── */
.hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 109, 45, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  margin-bottom: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 20px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.55;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 48px 0 0;
}

.stat:first-child {
  padding-left: 0;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-strong);
  margin-right: 48px;
  flex-shrink: 0;
}

/* ── Features ── */
.features {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 64px;
  max-width: 600px;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-surface);
  padding: 40px 36px;
  transition: background 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-elevated);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 109, 45, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Manifesto ── */
.manifesto {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 800px;
}

.manifesto-text {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--fg-muted);
}

.manifesto-text strong {
  color: var(--fg);
  font-weight: 600;
}

/* ── Process ── */
.process {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  min-width: 32px;
  padding-top: 4px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Closing ── */
.closing {
  padding: 120px 0;
}

.closing-inner {
  max-width: 800px;
}

.closing-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
}

/* ── Footer ── */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-content {
    margin-bottom: 48px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat {
    padding: 0;
  }

  .stat-divider {
    display: none;
  }

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

  .features, .manifesto, .process, .closing {
    padding: 72px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .step {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .stat-value {
    font-size: 28px;
  }

  .feature-card {
    padding: 28px 24px;
  }
}