/* ===== Landing Styles ===== */

/* --- Header --- */
#site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: #E8E7E4;
}

/* --- Section Label --- */
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: #F25C2A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Cards --- */
.card {
  background: #FFFFFF;
  border: 1px solid #E8E7E4;
  border-radius: 14px;
  padding: 24px;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

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

/* --- Code Tabs --- */
.code-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #73726C;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 150ms ease-out, border-color 200ms ease-out;
}

.code-tab:hover {
  color: #2A2A28;
}

.code-tab.active {
  color: #F25C2A;
  border-bottom-color: #F25C2A;
}

.code-panel {
  display: none;
}

.code-panel.active {
  display: block;
}

/* --- Comparison Table --- */
.comparison-table {
  border-collapse: collapse;
}

.comparison-table thead tr {
  border-bottom: 2px solid #E8E7E4;
}

.comparison-table tbody tr {
  border-bottom: 1px solid #F3F3F1;
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

/* --- Phone Mockups --- */
.phone-mockup {
  width: 180px;
  flex-shrink: 0;
}

.phone-screen {
  width: 180px;
  height: 320px;
  border-radius: 20px;
  border: 3px solid #2A2A28;
  overflow: hidden;
  position: relative;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #2A2A28;
  border-radius: 0 0 4px 4px;
}

.border-l-3 {
  border-left-width: 3px;
}

/* --- Docs --- */
.docs-nav-link.active {
  background: #FFF5F2;
  color: #F25C2A;
  font-weight: 500;
}

.docs-section .prose {
  color: #55544F;
  font-size: 15px;
  line-height: 1.7;
}

.docs-section .prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2A2A28;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.docs-section .prose h3:first-child {
  margin-top: 0;
}

.docs-section .prose p {
  margin-bottom: 1rem;
}

.docs-section .prose ul,
.docs-section .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-section .prose ul {
  list-style-type: disc;
}

.docs-section .prose ol {
  list-style-type: decimal;
}

.docs-section .prose li {
  margin-bottom: 0.375rem;
}

.docs-section .prose hr {
  border: none;
  border-top: 1px solid #E8E7E4;
  margin: 2rem 0;
}

.docs-section .prose code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  background: #F3F3F1;
  padding: 2px 6px;
  border-radius: 4px;
  color: #3D3D3A;
}

.docs-section .prose a {
  color: #F25C2A;
  text-decoration: none;
  transition: color 150ms;
}

.docs-section .prose a:hover {
  color: #D94A1A;
}

.code-block {
  background: #1A1A19;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.code-block pre {
  padding: 16px 20px;
  margin: 0;
}

.code-block code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #D4D3CF;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 1rem;
}

.docs-table th {
  text-align: left;
  font-weight: 600;
  color: #2A2A28;
  padding: 8px 12px;
  border-bottom: 2px solid #E8E7E4;
  white-space: nowrap;
}

.docs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #F3F3F1;
  color: #55544F;
}

.docs-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: #F3F3F1;
  padding: 1px 5px;
  border-radius: 3px;
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Check marks scale animation */
.check-mark {
  display: inline-block;
  transition: transform 300ms ease-out;
}

.check-mark.is-visible {
  animation: check-pop 300ms ease-out;
}

@keyframes check-pop {
  0% { transform: scale(0.8); }
  100% { transform: scale(1); }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .check-mark {
    animation: none !important;
    transition: none !important;
  }

  #site-header {
    transition: none !important;
  }

  .code-tab {
    transition: none !important;
  }

  .card {
    transition: none !important;
  }
}

/* --- Responsive --- */
@media (max-width: 639px) {
  .phone-mockup {
    width: 150px;
  }

  .phone-screen {
    width: 150px;
    height: 270px;
  }
}
