:root {
  color-scheme: light dark;
  --primary: #2d5bff;
  --secondary: #00c896;
  --accent: #ff6b6b;
  --neutral-50: #f8f9fa;
  --neutral-900: #212529;
  --neutral-700: #495057;
  --neutral-200: #e9ecef;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(33, 37, 41, 0.08);
  --shadow-md: 0 16px 40px rgba(33, 37, 41, 0.12);
  --radius-lg: 20px;
  --radius-md: 12px;
  --max-width: 1440px;
  --section-spacing: 80px;
}

body.theme-dark {
  --neutral-50: #0f1115;
  --neutral-900: #f8f9fa;
  --neutral-700: #ced4da;
  --neutral-200: #2b3035;
  --white: #1e1e1e;
  --primary: #4d7bff;
  background: #0f1115;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-900);
  background: var(--neutral-50);
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 999;
}

.progress__bar {
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.2s ease;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--neutral-50) 85%, transparent);
  border-bottom: 1px solid var(--neutral-200);
  z-index: 200;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

.nav {
  display: none;
  gap: 24px;
  font-weight: 500;
}

.nav a {
  opacity: 0.8;
}

.nav a:hover,
.nav a:focus {
  opacity: 1;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button--primary:hover,
.button--primary:focus {
  background: color-mix(in srgb, var(--primary) 88%, #000);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.button--ghost {
  background: transparent;
  border-color: var(--neutral-200);
  color: var(--neutral-900);
}

.button--ghost:hover,
.button--ghost:focus {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(45, 91, 255, 0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0, 200, 150, 0.2), transparent 60%);
}

.hero__grid {
  display: grid;
  gap: 40px;
}

.hero__content h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 12px 0 16px;
}

.hero__sub {
  font-size: 18px;
  margin: 0 0 8px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.hero__trust {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.trust-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--neutral-200);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  align-items: start;
}

.hero__screens--four {
  grid-template-columns: repeat(2, 1fr);
}

.hero__screens img {
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.hero__screen--featured img {
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.25);
  border: 2px solid rgba(99, 102, 241, 0.3);
  transform: scale(1.03);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.7;
  animation: fadeout 2s ease 2s forwards;
}

.scroll-indicator__arrow {
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--neutral-900);
  border-right: 2px solid var(--neutral-900);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

.section {
  padding: var(--section-spacing) 0;
}

.section--muted {
  background: var(--neutral-50);
}

.section__header {
  margin-bottom: 32px;
}

.section__header--spaced {
  margin-top: 56px;
}

.section__header h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card--accent {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--neutral-200));
}

.card--feature img {
  margin-top: 16px;
  border-radius: 16px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Callout box */
.callout {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.06));
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.7;
}

/* Strengths section */
.strength {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strength__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--neutral-200);
  display: grid;
  place-items: center;
  color: var(--primary);
}

.strength__icon--primary {
  background: linear-gradient(135deg, #6366F1, #06B6D4);
  color: #fff;
}

.strength--featured {
  border: 2px solid var(--primary);
  position: relative;
}

.strength__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366F1, #06B6D4);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

/* Step highlight */
.step--highlight {
  border-color: var(--primary);
  border-width: 2px;
  border-style: solid;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
}

.steps--four {
  grid-template-columns: repeat(2, 1fr);
}

/* Demo phone featured */
.demo__phone--featured img {
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.demo__step-badge--highlight {
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  font-size: 13px;
  padding: 5px 14px;
}

.demo {
  display: flex;
  justify-content: center;
}

.demo__slideshow {
  max-width: 800px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
}

.demo__slides {
  position: relative;
}

.demo__slide {
  display: none;
  padding: 32px 24px;
  align-items: center;
  gap: 32px;
}

.demo__slide--active {
  display: flex;
}

.demo__phone {
  flex-shrink: 0;
  width: 180px;
}

.demo__phone img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.demo__info {
  flex: 1;
  min-width: 0;
}

.demo__step-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366F1, #06B6D4);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.demo__info h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.demo__info p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0;
}

.demo__controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 24px 16px;
}

.demo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--neutral-200);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.demo__dot--active {
  background: var(--primary);
  transform: scale(1.3);
}

.demo__progress-bar {
  height: 3px;
  background: var(--neutral-200);
}

.demo__progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366F1, #06B6D4);
  transition: width 0.1s linear;
}

@media (max-width: 767px) {
  .demo__slide {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }

  .demo__phone {
    width: 140px;
  }

  .demo__info h3 {
    font-size: 20px;
  }
}

.demo__cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.steps {
  display: grid;
  gap: 20px;
}

.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--neutral-200);
}

.step__number {
  font-weight: 700;
  color: var(--primary);
}

.pricing__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing__card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.pricing__card ul li::before {
  content: "✔";
  margin-right: 8px;
  color: var(--secondary);
}

.price {
  font-size: 24px;
  font-weight: 700;
}

.price span {
  display: block;
  font-size: 14px;
  color: var(--neutral-700);
  margin-top: 4px;
}

.pricing__card--featured {
  border: 2px solid var(--primary);
  position: relative;
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.pricing__note {
  margin-top: 24px;
  color: var(--neutral-700);
}

.reviews .review {
  display: grid;
  gap: 12px;
}

.review__header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.review__stars {
  color: #f5c518;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion__button {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
}

.accordion__panel {
  display: none;
  padding: 16px 20px 0;
}

.accordion__item.active .accordion__panel {
  display: block;
}

.final-cta {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(45, 91, 255, 0.1), rgba(0, 200, 150, 0.12));
  text-align: center;
}

.footer {
  padding: 48px 0 32px;
  background: var(--neutral-50);
  border-top: 1px solid var(--neutral-200);
}

.footer__grid {
  display: grid;
  gap: 16px;
}

.footer__links {
  display: grid;
  gap: 8px;
}

.footer__copy {
  text-align: center;
  margin-top: 24px;
  color: var(--neutral-700);
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--white) 90%, transparent);
  border-top: 1px solid var(--neutral-200);
  display: flex;
  justify-content: center;
  z-index: 300;
}

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  :root {
    --section-spacing: 100px;
  }

  .hero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .hero__cta {
    flex-direction: row;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav {
    display: flex;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  :root {
    --section-spacing: 120px;
  }

  .hero__content h1 {
    font-size: 48px;
  }

  .grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .floating-cta {
    display: inline-flex;
  }

  .sticky-cta {
    display: none;
  }
}

@media (min-width: 1280px) {
  .hero__screens {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__screens--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(6px) rotate(45deg);
  }
}

@keyframes fadeout {
  to {
    opacity: 0;
  }
}

/* Legal document styles */
.legal-document {
  font-size: 13px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  color: var(--neutral-900);
}

.legal-document h2 {
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--neutral-200);
  padding-bottom: 8px;
  margin: 40px 0 16px;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.legal-document p {
  margin: 8px 0;
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 12px 0;
}

.legal-document table th,
.legal-document table td {
  border: 1px solid var(--neutral-200);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.legal-document table th {
  background: var(--neutral-200);
  font-weight: 600;
}

.legal-document ol {
  padding-left: 24px;
  margin: 8px 0;
}

.legal-document ol li {
  margin: 4px 0;
}

.legal-document ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-document ul li {
  margin: 4px 0;
  list-style: disc;
}

.legal-document ol ol {
  padding-left: 20px;
  list-style-type: lower-alpha;
}

.legal-document ol ul {
  padding-left: 20px;
}

body.theme-dark .legal-document table th {
  background: #2b3035;
}

body.theme-dark .legal-document table th,
body.theme-dark .legal-document table td {
  border-color: #3a3f44;
}

body.theme-dark .legal-document h2 {
  border-bottom-color: #3a3f44;
}
