/* ============================================
   Kling vs Sora 2026 - AI Video Comparison
   Geist / Vercel Design System
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: #4d4d4d;
  background-color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: #171717;
}

h1 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -2.4px;
  line-height: 1.1;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -2.4px;
  line-height: 1.15;
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.96px;
  line-height: 1.3;
  margin-bottom: 16px;
}

p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

a {
  color: #0072f5;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.7;
}

code, .mono {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
}

/* --- Layout Containers --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-section {
  padding: 80px 0;
}

.page-section + .page-section {
  box-shadow: rgba(0,0,0,0.08) 0px -1px 0px 0px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px;
}

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

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: #171717;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.nav-links a:hover {
  background: #f5f5f5;
  opacity: 1;
}

.nav-links a.active {
  background: #f0f0f0;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px;
  border-radius: 6px;
  color: #171717;
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: #4d4d4d;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
  gap: 6px;
}

.btn-primary {
  background: #171717;
  color: #ffffff;
  box-shadow: none;
  border: none;
}

.btn-primary:hover {
  background: #333;
  opacity: 1;
  color: #fff;
}

.btn-ghost {
  background: #ffffff;
  color: #171717;
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px;
  border: none;
}

.btn-ghost:hover {
  box-shadow: rgba(0,0,0,0.12) 0px 0px 0px 1px;
  opacity: 1;
  color: #171717;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 9999px;
  background: #ebf5ff;
  color: #0068d6;
  line-height: 1.5;
}

.badge-red {
  background: #fef2f2;
  color: #dc2626;
}

.badge-green {
  background: #f0fdf4;
  color: #16a34a;
}

.badge-orange {
  background: #fff7ed;
  color: #ea580c;
}

/* --- Workflow Steps --- */
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.workflow-step {
  text-align: center;
  padding: 32px 24px;
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;
  border-radius: 8px;
}

.workflow-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.workflow-icon.step1 { background: #0072f5; }
.workflow-icon.step2 { background: #f472b6; }
.workflow-icon.step3 { background: #ef4444; }

.workflow-step h3 {
  margin-bottom: 8px;
}

.workflow-step p {
  font-size: 14px;
  margin-bottom: 0;
  color: #666;
}

/* --- Section Divider --- */
.section-divider {
  height: 1px;
  background: #ebebeb;
  margin: 0 auto;
  max-width: 1100px;
}
hr.divider {
  border: none;
  height: 0;
  box-shadow: rgba(0,0,0,0.08) 0px -1px 0px 0px;
  margin: 0;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
}

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

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  box-shadow: rgba(0,0,0,0.06) 0px -1px 0px 0px inset;
}

.comparison-table th {
  font-weight: 600;
  color: #171717;
  font-size: 14px;
  background: #fafafa;
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px;
  white-space: nowrap;
}

.comparison-table th:first-child {
  border-radius: 8px 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 8px 0 0;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: #171717;
  white-space: nowrap;
}

.comparison-table tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.comparison-table tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

.winner {
  color: #16a34a;
  font-weight: 500;
}

/* --- Verdict Box --- */
.verdict-box {
  background: #fafafa;
  border-radius: 8px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;
}

.verdict-box h3 {
  margin-bottom: 12px;
}

.verdict-box p:last-child {
  margin-bottom: 0;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.pricing-card {
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;
  border-radius: 8px;
  padding: 40px 32px;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
  box-shadow: rgba(0,0,0,0.12) 0px 0px 0px 1px, rgba(0,0,0,0.06) 0px 4px 8px, #fafafa 0px 0px 0px 1px;
}

.pricing-card.featured {
  box-shadow: rgba(0,114,245,0.15) 0px 0px 0px 2px, rgba(0,0,0,0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;
}

.pricing-card.featured .pricing-badge {
  background: #0072f5;
  color: #ffffff;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #171717;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 16px;
  border-radius: 9999px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 20px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 40px;
  font-weight: 600;
  color: #171717;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  box-shadow: rgba(0,0,0,0.06) 0px -1px 0px 0px inset;
}

.pricing-features li:first-child {
  box-shadow: none;
}

.pricing-features li::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: 600;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  box-shadow: rgba(0,0,0,0.06) 0px -1px 0px 0px inset;
  padding: 20px 0;
}

.faq-item:first-child {
  box-shadow: none;
}

.faq-question {
  font-weight: 500;
  font-size: 16px;
  color: #171717;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  padding: 0;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #808080;
}

.faq-question.open::after {
  content: "−";
}

.faq-answer {
  font-size: 15px;
  color: #666;
  padding-top: 12px;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px;
  padding: 48px 0;
  margin-top: 80px;
}

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

.footer-text {
  font-size: 14px;
  color: #808080;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: #808080;
  font-weight: 400;
}

.footer-links a:hover {
  color: #171717;
}

/* --- Feature Detail --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.feature-cell {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.feature-cell.label {
  font-weight: 500;
  color: #171717;
}

.feature-cell.kling {
  background: #fafafa;
  border-radius: 6px;
}

.feature-cell.sora {
  background: #fafafa;
  border-radius: 6px;
}

.feature-header {
  font-weight: 600;
  color: #171717;
  font-size: 14px;
  padding-bottom: 12px;
  box-shadow: rgba(0,0,0,0.08) 0px -1px 0px 0px inset;
}

.feature-section-title {
  font-weight: 600;
  color: #171717;
  font-size: 16px;
  padding: 24px 16px 12px;
  box-shadow: rgba(0,0,0,0.08) 0px -1px 0px 0px inset;
}

/* --- Example Cards --- */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.example-card {
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;
  border-radius: 8px;
  padding: 32px;
  transition: box-shadow 0.2s ease;
}

.example-card:hover {
  box-shadow: rgba(0,0,0,0.12) 0px 0px 0px 1px, rgba(0,0,0,0.06) 0px 4px 8px, #fafafa 0px 0px 0px 1px;
}

.example-card h3 {
  margin-bottom: 8px;
}

.example-card .badge {
  margin-bottom: 12px;
}

.example-card p {
  font-size: 14px;
  margin-bottom: 0;
}

/* --- Tutorial Steps --- */
.tutorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.tutorial-column {
  padding: 32px;
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;
  border-radius: 8px;
}

.tutorial-column h3 {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutorial-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

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

.tutorial-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  background: #171717;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.tutorial-step-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 4px;
}

.tutorial-step-content p {
  font-size: 14px;
  margin-bottom: 0;
  color: #666;
}

/* --- Decision Section --- */
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.decision-card {
  padding: 32px;
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;
  border-radius: 8px;
}

.decision-card h3 {
  margin-bottom: 12px;
}

.decision-card p {
  font-size: 14px;
}

.decision-card ul {
  list-style: none;
  margin-top: 12px;
}

.decision-card ul li {
  font-size: 14px;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.decision-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #0072f5;
}

/* --- Value Analysis --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.value-metric {
  padding: 24px;
  box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;
  border-radius: 8px;
}

.value-metric h4 {
  font-size: 14px;
  font-weight: 500;
  color: #808080;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.value-metric .number {
  font-size: 32px;
  font-weight: 600;
  color: #171717;
  letter-spacing: -1px;
}

/* --- Page Header --- */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  font-size: 18px;
  color: #4d4d4d;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Use Case Tags --- */
.use-case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

/* --- Score Bar --- */
.score-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.score-track {
  flex: 1;
  height: 8px;
  background: #ebebeb;
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 4px;
}

.score-fill.kling { background: #0072f5; }
.score-fill.sora { background: #f472b6; }

.score-label {
  font-size: 13px;
  font-weight: 500;
  color: #4d4d4d;
  min-width: 60px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
    letter-spacing: -1.6px;
  }
  h2 {
    font-size: 28px;
    letter-spacing: -1.2px;
  }
  h3 {
    font-size: 20px;
    letter-spacing: -0.8px;
  }
  p {
    font-size: 15px;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .page-section {
    padding: 48px 0;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

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

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

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

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

  .nav-inner {
    height: 56px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px;
    padding: 8px 16px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Helper --- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.small { font-size: 14px; color: #808080; }
