:root {
  --ink: #141820;
  --soft: #5a6474;
  --line: #e4e8ef;
  --paper: #f7f8fb;
  --white: #ffffff;
  --blue: #1877f2;
  --blue-deep: #0f5fd1;
  --ok: #0d7a66;
  --danger: #c03535;
  --display: 'Unbounded', system-ui, sans-serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

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

.hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

.landing-body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 50% -15%, rgba(24, 119, 242, 0.12), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

.landing-wrap {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

/* banners */
.landing-banner {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.landing-banner-ok { border-bottom-color: rgba(13, 122, 102, 0.28); }
.landing-banner-danger { border-bottom-color: rgba(192, 53, 53, 0.28); }

.landing-banner-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.landing-banner-inner strong {
  display: block;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.landing-banner-ok strong { color: var(--ok); }
.landing-banner-danger strong { color: var(--danger); }

.landing-banner-inner p {
  color: var(--soft);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.45;
}

/* nav */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  animation: fadeIn 0.5s ease both;
}

.landing-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-nav-links a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

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

.landing-nav-login {
  color: var(--blue) !important;
}

/* hero */
.landing-hero {
  padding: 56px 0 48px;
  text-align: center;
  animation: riseIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.landing-hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.35;
  max-width: 28ch;
  margin: 0 auto 14px;
  color: var(--ink);
}

.landing-sub {
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 42ch;
  margin: 0 auto 28px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* buttons */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.landing-btn:hover {
  transform: translateY(-1px);
}

.landing-btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 13px 22px;
  font-size: 0.98rem;
}

.landing-btn-primary:hover {
  background: var(--blue-deep);
}

.landing-btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
  padding: 13px 22px;
  font-size: 0.98rem;
}

.landing-btn-ghost:hover {
  border-color: #c8d0dc;
}

.landing-btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

/* explain */
.landing-explain {
  padding: 12px 0 48px;
  animation: fadeIn 0.7s 0.1s ease both;
}

.landing-explain-head {
  text-align: center;
  margin-bottom: 28px;
}

.landing-explain h2,
.landing-plans h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.landing-explain-lead {
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 40ch;
  margin: 0 auto;
}

.landing-plans-lead {
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 48ch;
  margin-bottom: 22px;
}

.landing-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 24, 32, 0.05);
}

.landing-steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(24, 119, 242, 0.35), transparent);
  pointer-events: none;
  z-index: 0;
}

.landing-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px 30px;
  gap: 8px;
}

.landing-step + .landing-step {
  border-left: 1px solid var(--line);
}

.landing-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #eaf2ff, #f4f8ff);
  color: var(--blue);
  margin-bottom: 6px;
  animation: stepPop 0.7s ease both;
}

.landing-step:nth-child(2) .landing-step-icon {
  animation-delay: 0.1s;
}

.landing-step:nth-child(3) .landing-step-icon {
  animation-delay: 0.2s;
  background: linear-gradient(160deg, #e8f8f4, #f3fbf8);
  color: var(--ok);
}

.landing-step-icon svg {
  width: 24px;
  height: 24px;
}

.landing-step-num {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  opacity: 0.75;
}

.landing-step strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-step-text {
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 22ch;
}

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

/* plans */
.landing-plans {
  padding: 8px 0 32px;
  animation: fadeIn 0.7s 0.18s ease both;
}

.landing-plan-list {
  border-top: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.landing-plan-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.landing-plan-row:last-child {
  border-bottom: none;
}

.landing-plan-row strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.landing-plan-row span {
  color: var(--soft);
  font-size: 0.88rem;
}

.landing-plan-row em {
  font-style: normal;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.landing-plan-row em span {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--soft);
  margin-left: 2px;
}

.landing-plan-row.is-focus {
  background: rgba(24, 119, 242, 0.05);
}

.landing-foot {
  text-align: center;
  color: var(--soft);
  font-size: 0.8rem;
  padding: 12px 0 40px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .landing-nav-links a:not(.landing-nav-login) {
    display: none;
  }

  .landing-hero {
    padding: 40px 0 36px;
  }

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

  .landing-actions .landing-btn {
    width: 100%;
  }

  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-steps::before {
    display: none;
  }

  .landing-step + .landing-step {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .landing-step-text {
    max-width: 34ch;
  }

  .landing-plan-row {
    flex-direction: column;
    gap: 6px;
  }
}
