@font-face {
  font-family: 'Pelicula';
  src: url('../fonts/Pelicula.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

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

:root {
  --bg: #FAFAF7;
  --bg-alt: #F5F5F0;
  --text: #1A1A1A;
  --text-secondary: #8d8d83;
  --text-tertiary: #b5b5ab;
  --accent: #1e3a8a;
  --accent-light: rgba(30, 58, 138, 0.07);
  --highlight: rgba(30, 58, 138, 0.08);
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.12), 0 6px 24px rgba(0, 0, 0, 0.06);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', 'PingFang SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(30, 58, 138, 0.12);
  color: var(--text);
}

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.stagger>.reveal:nth-child(1) {
  transition-delay: 0s;
}

.stagger>.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger>.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger>.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav .container {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-brand {
  position: absolute;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-brand svg {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 55px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.nav-actions {
  position: absolute;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon-link {
  display: flex;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-icon-link:hover {
  color: var(--text);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 56px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--text);
}

.hero h1 .highlight {
  background: linear-gradient(120deg, var(--highlight) 0%, var(--highlight) 100%);
  background-size: 100% 38%;
  background-repeat: no-repeat;
  background-position: 0 88%;
  padding: 0 2px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  transition: all 0.28s var(--ease);
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: -0.005em;
}

.btn-apple {
  display: block;
  position: relative;
  top: -1px;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(3, 79, 70, 0.08);
  transform: translateY(-1px);
}

.btn-arrow-down {
  transition: transform 0.28s var(--ease);
}

.btn-primary:hover .btn-arrow-down {
  transform: translateY(3px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.hero-meta {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 12px;
  letter-spacing: 0.01em;
}

/* ===== Hero video ===== */
.hero-video-wrap {
  max-width: 1140px;
  margin: 52px auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.18), 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: scale(0.88);
  will-change: transform, border-radius, box-shadow;
  transition: transform 0.1s linear, border-radius 0.1s linear, box-shadow 0.1s linear;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Section headers ===== */
.section-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* ===== Steps ===== */
.steps-header {
  text-align: center;
  margin-bottom: 64px;
}

.steps-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1300px;
  margin: 0 auto;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.step-number {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.step-item h3 {
  font-size: 18px;
  font-weight: 620;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.step-item p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
  margin: 0 auto;
}

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

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 12px;
  flex-shrink: 0;
}

/* ===== Setup ===== */
.setup-header {
  text-align: center;
  margin-bottom: 48px;
}

.setup-header .section-desc {
  margin: 0 auto;
}

.setup-terminal {
  max-width: 640px;
  margin: 0 auto 40px;
}

.setup-cmd-box {
  position: relative;
  background: #1c1c1e;
  border-radius: var(--radius);
  padding: 28px 28px 28px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.setup-cmd-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.setup-cmd-dots {
  position: absolute;
  top: 10px;
  left: 14px;
  display: flex;
  gap: 7px;
  z-index: 1;
}

.setup-cmd-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.setup-cmd-dots span:nth-child(1) {
  background: #ff5f57;
}

.setup-cmd-dots span:nth-child(2) {
  background: #febc2e;
}

.setup-cmd-dots span:nth-child(3) {
  background: #28c840;
}

.setup-code {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre;
  overflow-x: auto;
  margin: 0;
  padding-top: 20px;
  text-align: left;
}

.setup-copy-btn {
  position: absolute;
  top: 7px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  z-index: 1;
}

.setup-copy-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.setup-copy-btn .icon-copy,
.setup-copy-btn .icon-check {
  transition: opacity 0.2s, transform 0.2s var(--ease-bounce);
}

.setup-copy-btn .icon-copy {
  opacity: 1;
  transform: scale(1);
}

.setup-copy-btn .icon-check {
  position: absolute;
  opacity: 0;
  transform: scale(0.5);
  color: #28c840;
}

.setup-copy-btn.copied .icon-copy {
  opacity: 0;
  transform: scale(0.5);
}

.setup-copy-btn.copied .icon-check {
  opacity: 1;
  transform: scale(1);
}


.setup-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.setup-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.setup-note strong {
  font-size: 13px;
  font-weight: 620;
  color: var(--text);
  letter-spacing: -0.01em;
}

.setup-note span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .setup-notes {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
  }

  .setup-cmd-box {
    padding: 24px 20px 24px 20px;
  }

  .setup-code {
    font-size: 11.5px;
  }
}

/* ===== How it works ===== */
.steps-header {
  text-align: center;
  margin-bottom: 64px;
}

.steps-header .section-desc {
  margin: 0 auto;
}

/* ===== Comparison ===== */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-col {
  border-radius: var(--radius);
  padding: 40px 38px;
}

.comparison-before {
  background: rgba(0, 0, 0, 0.02);
  border: 1.5px dashed rgba(0, 0, 0, 0.1);
}

section:nth-child(even) .comparison-before {
  background: rgba(0, 0, 0, 0.02);
}

.comparison-after {
  background: var(--accent-light);
  border: 1.5px solid rgba(30, 58, 138, 0.15);
  box-shadow: var(--shadow-md);
}

.comparison-label {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-label-icon {
  flex-shrink: 0;
}

.comparison-after .comparison-label {
  color: var(--accent);
  border-bottom-color: rgba(30, 58, 138, 0.12);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comparison-list li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 28px;
  position: relative;
}

.comparison-before .comparison-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0816a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12.5 12.5'/%3E%3Cpath d='M18.5 6L6 18.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.comparison-pain {
  color: #c0816a;
  font-weight: 600;
}

.comparison-after .comparison-list li {
  color: var(--text);
}

.comparison-after .comparison-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.5c2 2 4 5.5 6.5 7.5C13.5 14 17.5 8 21.5 3.5' /%3E%3C/svg%3E") no-repeat center / contain;
}

@media (max-width: 768px) {
  .comparison {
    grid-template-columns: 1fr;
  }
}

/* ===== Platforms marquee ===== */
.platforms {
  padding: 60px 0 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 35s linear infinite;
  width: max-content;
  align-items: center;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 0.3s, color 0.3s;
}

.marquee-item:hover {
  opacity: 1;
  color: var(--accent);
}

/* Separator dots between items */
.marquee-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.5;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== FAQ ===== */
.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-header .section-desc {
  margin: 0 auto;
}

.faq-grid {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: default;
  letter-spacing: -0.01em;
}

.faq-q-marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.faq-q-marker svg {
  display: block;
}

.faq-answer {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 38px;
}

.faq-answer strong {
  color: var(--text);
  font-weight: 620;
}

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

.footer .container {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.005em;
}

.footer-brand svg {
  width: 22px;
  height: 22px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-tertiary);
  font-size: 13px;
  transition: color 0.2s;
}

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

/* ===== CTA text dance (hover) ===== */
.btn-primary .btn-text span {
  display: inline-block;
  transition: transform 0.2s;
}

.btn-primary:hover .btn-text span {
  animation: charDance 0.4s ease forwards;
}

@keyframes charDance {
  0% {
    transform: translateY(0) rotate(0);
  }

  30% {
    transform: translateY(-3px) rotate(-2deg);
  }

  60% {
    transform: translateY(1px) rotate(1deg);
  }

  100% {
    transform: translateY(0) rotate(0);
  }
}

.btn-primary:hover .btn-text span:nth-child(1) {
  animation-delay: 0.00s;
}

.btn-primary:hover .btn-text span:nth-child(2) {
  animation-delay: 0.02s;
}

.btn-primary:hover .btn-text span:nth-child(3) {
  animation-delay: 0.04s;
}

.btn-primary:hover .btn-text span:nth-child(4) {
  animation-delay: 0.06s;
}

.btn-primary:hover .btn-text span:nth-child(5) {
  animation-delay: 0.08s;
}

.btn-primary:hover .btn-text span:nth-child(6) {
  animation-delay: 0.10s;
}

.btn-primary:hover .btn-text span:nth-child(7) {
  animation-delay: 0.12s;
}

.btn-primary:hover .btn-text span:nth-child(8) {
  animation-delay: 0.14s;
}

.btn-primary:hover .btn-text span:nth-child(9) {
  animation-delay: 0.16s;
}

.btn-primary:hover .btn-text span:nth-child(10) {
  animation-delay: 0.18s;
}

.btn-primary:hover .btn-text span:nth-child(11) {
  animation-delay: 0.20s;
}

.btn-primary:hover .btn-text span:nth-child(12) {
  animation-delay: 0.22s;
}

.btn-primary:hover .btn-text span:nth-child(13) {
  animation-delay: 0.24s;
}

.btn-primary:hover .btn-text span:nth-child(14) {
  animation-delay: 0.26s;
}

.btn-primary:hover .btn-text span:nth-child(15) {
  animation-delay: 0.28s;
}

/* ===== SVG stroke animation ===== */
.stroke-anim {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1s var(--ease);
}

.visible .stroke-anim {
  stroke-dashoffset: 0;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 42px;
  }

  .section-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

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

  .hero h1 {
    font-size: 34px;
  }

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

  .section-title {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .nav-links {
    gap: 18px;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
  }

  .hero-video-wrap {
    margin: 48px -20px 0;
    border-radius: 10px;
  }

  .steps-flow {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .step-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .comparison-col {
    padding: 28px 24px;
  }

  .comparison-list li {
    font-size: 15px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-answer {
    font-size: 15px;
  }

  .nav-links .nav-link-text {
    display: none;
  }
}

/* ===== Comparison doodles ===== */
.comparison-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.comp-doodle {
  position: absolute;
  pointer-events: none;
}

.comp-doodle-star-tl {
  top: -16px;
  left: -40px;
}

.comp-doodle-squiggle-top {
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.comp-doodle-star-tr {
  top: -12px;
  right: -32px;
}

.comp-doodle-arrow {
  top: 50%;
  left: -60px;
  transform: translateY(-50%) rotate(-8deg);
}

.comp-doodle-circle-bl {
  bottom: -18px;
  left: -36px;
}

.comp-doodle-dots-br {
  bottom: -6px;
  right: 60px;
}

.comp-doodle-star-br {
  bottom: -14px;
  right: -30px;
}

@media (max-width: 768px) {
  .comp-doodle {
    display: none;
  }
}