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

body {
  font-family: 'Figtree', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ============================================
   UTILITY
   ============================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-block {
  max-width: 640px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
}

h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-large {
  font-size: 18px;
  line-height: 1.6;
}

.text-small {
  font-size: 14px;
}

.text-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.header-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-download-header {
  background: var(--text-primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-download-header:hover {
  background: #333;
}

.header-github {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.header-github:hover {
  color: var(--text-primary);
}

.header-github svg {
  width: 20px;
  height: 20px;
}

.mobile-menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 220px;
  padding-bottom: 120px;
  background: var(--bg);
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 32px;
  background: var(--white);
}

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

.hero-badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-dark);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.hero-platforms {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Hero Mockup */
.hero-visual {
  position: relative;
}

.editor-mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
  transform: rotate(1.5deg);
  position: relative;
}

.editor-titlebar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

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

.editor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-dark);
}

.editor-dot:nth-child(1) { background: #FF6059; }
.editor-dot:nth-child(2) { background: #FFBE2F; }
.editor-dot:nth-child(3) { background: #2ACB42; }

.editor-title-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.editor-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 320px;
}

.editor-sidebar {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 16px 0;
}

.editor-sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 16px;
  margin-bottom: 12px;
}

.editor-sidebar-item {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: default;
  border-left: 2px solid transparent;
  transition: background 0.15s;
}

.editor-sidebar-item.active {
  background: var(--white);
  color: var(--text-primary);
  font-weight: 500;
  border-left-color: var(--accent);
}

.editor-sidebar-item-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.editor-content {
  padding: 24px;
  background: var(--white);
}

.editor-content-toolbar {
  display: flex;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.toolbar-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.toolbar-divider {
  width: 1px;
  background: var(--border);
  margin: 4px 6px;
}

.editor-text h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.editor-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.editor-text .code-inline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-hover);
}

/* ============================================
   SOCIAL PROOF BAR
   ============================================ */
.proof-bar {
  background: var(--bg-alt);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.proof-item:not(:last-child) {
  border-right: 1px solid var(--border-dark);
}

.proof-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 120px 0;
  background: var(--bg);
}

.features-header {
  margin-bottom: 80px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.features-header h2 {
  margin-bottom: 16px;
  max-width: 540px;
}

.features-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* Feature Row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

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

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--bg-subtle);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  user-select: none;
}

.feature-text h3 {
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 440px;
}

/* Feature Visual: Editor */
.feature-editor-mock {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.feature-editor-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  gap: 6px;
}

.feat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-dark);
}

.feature-editor-body {
  padding: 20px;
}

.feat-toolbar {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.feat-tool {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.feat-tool.active {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.feat-line {
  height: 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.feat-line-h {
  height: 12px;
  width: 60%;
  background: var(--text-primary);
  border-radius: 3px;
  margin-bottom: 14px;
  opacity: 0.12;
}

.feat-line-p {
  height: 7px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 7px;
}

.feat-line-p:nth-child(2) { width: 95%; }
.feat-line-p:nth-child(3) { width: 88%; }
.feat-line-p:nth-child(4) { width: 72%; }

.feat-line-code {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 12px;
}

.feat-line-code-line {
  height: 6px;
  background: var(--border-dark);
  border-radius: 3px;
  margin-bottom: 6px;
  opacity: 0.6;
}

.feat-line-code-line:nth-child(1) { width: 70%; }
.feat-line-code-line:nth-child(2) { width: 55%; }
.feat-line-code-line:nth-child(3) { width: 80%; }
.feat-line-code-line:last-child { margin-bottom: 0; }

/* Feature Visual: Themes */
.feature-themes-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.theme-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.theme-card:hover {
  border-color: var(--border-dark);
}

.theme-card-preview {
  height: 100px;
  position: relative;
}

.theme-card:nth-child(1) .theme-card-preview {
  background: #F8F8F6;
}

.theme-card:nth-child(2) .theme-card-preview {
  background: #1A1A1A;
}

.theme-card:nth-child(3) .theme-card-preview {
  background: #F0EDE6;
}

.theme-card:nth-child(4) .theme-card-preview {
  background: #E8EDE6;
}

.theme-card-preview-lines {
  padding: 16px;
}

.theme-preview-line {
  height: 5px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.theme-card:nth-child(1) .theme-preview-line { background: #D4D4D2; }
.theme-card:nth-child(2) .theme-preview-line { background: rgba(255,255,255,0.15); }
.theme-card:nth-child(3) .theme-preview-line { background: #C8C2B6; }
.theme-card:nth-child(4) .theme-preview-line { background: #B8C2B6; }

.theme-preview-line:nth-child(1) { width: 50%; height: 8px; margin-bottom: 10px; }
.theme-preview-line:nth-child(2) { width: 90%; }
.theme-preview-line:nth-child(3) { width: 75%; }
.theme-preview-line:nth-child(4) { width: 60%; }

.theme-card-info {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

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

.theme-card-engine {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

/* Feature Visual: Deploy */
.feature-deploy-mock {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.deploy-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  gap: 6px;
}

.deploy-body {
  padding: 24px;
}

.deploy-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
}

.deploy-step:last-child {
  margin-bottom: 0;
}

.deploy-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: -18px;
  width: 1px;
  background: var(--border);
}

.deploy-step-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.deploy-step-icon.done {
  background: #E8F5E8;
  color: #2D8A2D;
}

.deploy-step-icon.active {
  background: var(--accent-light);
  color: var(--accent);
}

.deploy-step-icon.pending {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.deploy-step-content {
  flex: 1;
  padding-top: 3px;
}

.deploy-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.deploy-step-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.deploy-step-url {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  margin-top: 4px;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison {
  padding: 120px 0;
  background: var(--bg-alt);
}

.comparison-header {
  margin-bottom: 48px;
}

.comparison-header h2 {
  margin-bottom: 12px;
}

.comparison-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

.comparison-table-wrap {
  max-width: 840px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table thead th {
  padding: 14px 24px;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-dark);
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  padding-left: 0;
}

.comparison-table thead th.highlight {
  color: var(--text-primary);
}

.comparison-table tbody td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 400;
}

.comparison-table tbody td:first-child {
  padding-left: 0;
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-table tbody td.highlight {
  background: rgba(212, 135, 14, 0.04);
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-table .check {
  color: var(--text-primary);
}

.comparison-table .dash {
  color: var(--text-muted);
}

.comparison-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   LEGACY
   ============================================ */
.legacy {
  padding: 100px 0;
  background: var(--bg);
}

.legacy-content {
  max-width: 640px;
}

.legacy-content h2 {
  margin-bottom: 24px;
}

.legacy-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legacy-content p:last-of-type {
  margin-bottom: 24px;
}

.legacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

.legacy-link:hover {
  color: var(--accent-hover);
}

.legacy-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.legacy-link:hover svg {
  transform: translateX(3px);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 80px 0;
  background: var(--accent-light);
  border-top: 1px solid #E8D5B0;
  border-bottom: 1px solid #E8D5B0;
  text-align: center;
}

.cta h2 {
  margin-bottom: 12px;
  font-size: 32px;
}

.cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}

.footer-col-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding-top: 160px;
    padding-bottom: 80px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .editor-mockup {
    transform: none;
  }

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

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-visual {
    order: unset;
  }

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

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .hero {
    padding-top: 140px;
    padding-bottom: 64px;
  }

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

  .features,
  .comparison {
    padding: 80px 0;
  }

  .feature-row {
    margin-bottom: 64px;
  }

  .feature-number {
    font-size: 48px;
  }

  .features-header {
    margin-bottom: 56px;
  }

  .proof-bar .container {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .proof-item {
    padding: 8px 20px;
    border-right: none !important;
    font-size: 13px;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
  }

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

  .editor-body {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta h2 {
    font-size: 26px;
  }

  .legacy {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding-top: 120px;
  }

  .feature-themes-mock {
    grid-template-columns: 1fr;
  }
}
