@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #18181b;
  --bg-elevated: #1f1f23;
  --bg-hover: #27272c;

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-primary: #FFBD91;
  --accent-hover: #FFD591;
  --accent-secondary: #FFEBCA;
  --accent-gradient: #FFBD91;

  --border-subtle: #27272a;
  --border-default: #3f3f46;

  --success: #22c55e;
  --error: #ef4444;

  --font-heading: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.logo-icon {
  display: block;
  object-fit: contain;
}

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

.nav-link {
  color: var(--accent-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px 8px;
}

.lang-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
  padding: 2px 4px;
  border-radius: 4px;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.lang-active {
  color: var(--accent-primary);
}

.lang-sep {
  font-size: 12px;
  color: var(--border-default);
  user-select: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 189, 145, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  box-shadow: 0 4px 16px rgba(255, 213, 145, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 189, 145, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 213, 145, 0.05), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

.demo-section {
  background: var(--bg-primary);
  padding: 100px 0;
}

.demo-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

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

.window-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.demo-editor {
  padding: 20px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.editor-line {
  display: flex;
  color: var(--text-secondary);
}

.editor-line.active {
  background: rgba(255, 189, 145, 0.1);
  border-radius: var(--radius-sm);
}

.line-number {
  width: 32px;
  color: var(--text-muted);
  user-select: none;
}

.line-content {
  flex: 1;
}

.token.heading { color: #e879f9; font-weight: 600; }
.token.bold { color: #fcd34d; font-weight: 600; }
.token.italic { color: #22d3ee; font-style: italic; }
.token.list { color: #22c55e; }

.demo-preview {
  padding: 20px;
  background: var(--bg-secondary);
}

.preview-content {
  color: var(--text-primary);
  line-height: 1.8;
}

.preview-h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

.preview-h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 12px;
  color: var(--accent-hover);
}

.preview-content p {
  margin-bottom: 12px;
}

.preview-content ul {
  list-style: none;
}

.preview-content li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.preview-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.preview-content li.active {
  background: rgba(255, 189, 145, 0.15);
  border-radius: var(--radius-sm);
  margin: 0 -8px;
  padding-left: 28px;
}

.features-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

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

.feature-card {
  padding: 28px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 189, 145, 0.15);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.formats-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.formats-tabs {
  max-width: 700px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--accent-primary);
  border-color: transparent;
  color: #000;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.code-lang {
  font-weight: 600;
  color: var(--accent-secondary);
}

.code-file {
  color: var(--text-muted);
}

.code-content {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
}

.token.key { color: #22d3ee; }
.token.string { color: #86efac; }
.token.number { color: #fcd34d; }
.token.boolean { color: #f472b6; }
.token.heading { color: #e879f9; }
.token.bold { color: #fcd34d; }
.token.italic { color: #22d3ee; }
.token.link { color: #60a5fa; }
.token.code { color: #94a3b8; }
.token.list { color: #22c55e; }

.navigator-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-content {
  max-width: 480px;
}

.split-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 24px 0;
}

.nav-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.highlight-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.highlight-dot.active-editor {
  background: #ef4444;
}

.highlight-dot.active-reading {
  background: #3b82f6;
}

.navigator-window {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 350px;
}

.nav-sidebar {
  padding: 16px;
  background: var(--bg-tertiary);
  border-right: 1px solid var(--border-subtle);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-item.active-editor {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.nav-item.active-reading {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.nav-indent {
  width: 0;
}

.nav-indent.indent-2 {
  width: 16px;
}

.nav-mark {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.nav-preview {
  padding: 20px;
  overflow-y: auto;
}

.preview-section {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.preview-section h1,
.preview-section h2,
.preview-section h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.preview-section h1 { font-size: 20px; font-weight: 700; }
.preview-section h2 { font-size: 16px; font-weight: 600; }
.preview-section h3 { font-size: 14px; font-weight: 600; }

.preview-section.active h3 {
  color: #93c5fd;
}

.shortcuts-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

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

.shortcut-item {
  padding: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.shortcut-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(255, 189, 145, 0.2);
}

.shortcut-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 16px;
}

.shortcut-desc h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.shortcut-desc p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.trust-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}

.trust-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.trust-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.cta-content {
  text-align: center;
  padding: 60px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .split-layout {
    grid-template-columns: 1fr;
  }
  
  .split-content {
    max-width: none;
    text-align: center;
  }
  
  .nav-highlights {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .stat-divider {
    width: 32px;
    height: 1px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-content {
    grid-template-columns: 1fr;
  }
  
  .demo-editor {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .nav {
    display: none;
  }
  
  .navigator-window {
    grid-template-columns: 1fr;
  }
  
  .nav-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}