/* ==========================================================================
   LauncherForge — component layer
   Plain CSS (not processed by the Tailwind CDN runtime): utility classes
   used across the page live here so index.html stays uncluttered.
   ========================================================================== */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

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

/* ---------- buttons ---------- */
.btn-base {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero-bg {
  background:
    radial-gradient(620px 420px at 76% 20%, rgba(32,122,213,.32), transparent 67%),
    linear-gradient(125deg, #071426 0%, #09203a 62%, #0e2b4e 100%);
}
.hero-grid-lines {
  background-image:
    linear-gradient(rgba(183,218,251,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183,218,251,.12) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 84%);
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}
.check {
  width: 15px; height: 15px; display: inline-grid; place-items: center;
  border-radius: 50%; color: #7dd8ac; border: 1px solid rgba(125,216,172,.36); font-size: 9px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #d4dde8; }
.pill {
  display: inline-flex; align-items: center; min-height: 18px; padding: 0 7px;
  border-radius: 20px; color: #17855e; background: #e7f7f0; font-size: 8px;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  animation: pulseDot 2.6s ease-in-out infinite;
}
.side-item { display: flex; align-items: center; min-height: 25px; padding: 0 7px; border-radius: 6px; }
.side-active { color: #155d9f; background: #e9f4ff; }
.mini-panel { padding: 11px; border: 1px solid #e0e7f0; border-radius: 10px; background: #fff; }
.mini-panel small { display: block; color: #9aa8b9; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.mini-panel strong { display: block; margin-top: 6px; color: #263850; font-size: 16px; letter-spacing: -.03em; }
.mini-panel p { margin: 4px 0 0; color: #8693a4; font-size: 8px; }
.progress-bar { animation: progressBreathe 3.2s ease-in-out infinite; transform-origin: left; }
@keyframes progressBreathe { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.92); } }

/* ---------- section headers ---------- */
.kicker {
  position: relative; display: inline-flex; align-items: center;
  color: #197fd5; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.kicker::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 8px; background: currentColor; opacity: .65; }
.section-title {
  margin: 12px 0 0; color: #12213a; font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em;
}
.section-copy { margin: 14px 0 0; color: #50627c; font-size: 15.5px; line-height: 1.7; }

/* ---------- trust strip ---------- */
.trust-item {
  min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px; border-right: 1px solid #e7edf4; color: #63748a; font-size: 12px; font-weight: 650;
  text-align: center; flex-wrap: wrap;
}
.trust-item b { color: #1c5389; font-weight: 800; }
@media (max-width: 767px) { .trust-item:nth-child(2n) { border-right: 0; } }

/* ---------- feature grid ---------- */
.feature-card {
  padding: 24px; border: 1px solid #e7edf4; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 20px rgba(14,34,60,.025);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(12,33,62,.09); }
.feature-dark { color: #fff; border-color: #123556; background: linear-gradient(160deg, #0a203a, #102f52); }
.feature-icon {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  color: #1768b3; background: #eaf4ff;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-icon-dark { color: #a4d6ff; background: rgba(120,190,255,.12); }
.feature-title { margin: 16px 0 0; color: #172740; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.feature-copy { margin: 10px 0 0; color: #697a8f; font-size: 13px; line-height: 1.6; }
.row-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: #6e7d90; font-size: 10px; border-top: 1px solid #eff3f7; }
.row-line strong { color: #183a60; }

/* ---------- workflow steps ---------- */
.step-card { position: relative; min-height: 220px; padding: 28px; border-right: 1px solid #e5ecf4; transition: transform .25s ease, box-shadow .25s ease; }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(12,33,62,.09); }
.step-num { color: #1773c9; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.step-title { margin: 22px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.step-copy { margin: 10px 0 0; color: #50627c; font-size: 13px; line-height: 1.6; }
.step-arrow {
  position: absolute; top: 30px; right: -14px; width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid #d9e5f1; border-radius: 50%; color: #317ec1; background: #fff; font-size: 13px;
}
@media (max-width: 767px) { .step-card { border-right: 0; border-bottom: 1px solid #e5ecf4; } .step-arrow { display: none; } }

/* ---------- engine compatibility ---------- */
.engine-note { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; border-top: 1px solid #e8eef5; }
.engine-note i { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; color: #1674c8; background: #eaf4ff; font-size: 11px; font-style: normal; font-weight: 800; }
.engine-note-title { display: block; font-size: 13px; font-weight: 700; }
.engine-note-copy { margin: 4px 0 0; color: #6d7e94; font-size: 12px; line-height: 1.55; }
.engine-card { padding: 15px; border: 1px solid #e2eaf3; border-radius: 12px; background: #fff; transition: transform .25s ease, border-color .25s ease; }
.engine-card:hover { transform: translateY(-4px); border-color: rgba(25,127,213,.42); }
.engine-card b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #1968af; background: #eaf4ff; font-size: 10px; }
.engine-card strong { display: block; margin-top: 12px; color: #29425d; font-size: 12px; }
.engine-card span { display: block; margin-top: 4px; color: #8796a8; font-size: 10px; }

/* ---------- templates ---------- */
.template-point { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid #dbe6f1; }
.template-point b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #1968af; background: #e7f3ff; font-size: 11px; }
.template-point-title { display: block; color: #20364e; font-size: 13px; font-weight: 700; }
.template-point-copy { margin: 4px 0 0; color: #6d7e94; font-size: 12px; line-height: 1.55; }

/* ---------- pricing ---------- */
.billing-btn {
  min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; cursor: pointer;
  color: #aebfd1; background: transparent; font-size: 11.5px; font-weight: 750;
}
.billing-btn.active { color: #fff; background: rgba(94,166,234,.28); }
.plan-card {
  min-height: 500px; display: flex; flex-direction: column; padding: 22px;
  border: 1px solid rgba(204,226,249,.15); border-radius: 14px; background: rgba(255,255,255,.035);
}
.plan-card.featured {
  border-color: #4599e2; background: linear-gradient(160deg, rgba(26,112,197,.35), rgba(255,255,255,.06));
  box-shadow: 0 20px 42px rgba(0,0,0,.18);
}
.plan-tag { display: inline-block; color: #9fd4ff; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.plan-card h3 { margin: 10px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.plan-card > p.plan-desc { margin: 8px 0 0; color: #adbed1; font-size: 12.5px; line-height: 1.55; min-height: 38px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin: 18px 0 20px; }
.plan-price strong { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { color: #90a3b8; font-size: 12px; }
.plan-features { display: grid; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: #cfe0f2; }
.plan-features li { display: flex; gap: 8px; line-height: 1.5; }
.plan-features i { color: #7dd8ac; font-style: normal; font-weight: 900; }

/* ---------- faq ---------- */
.faq-item { border: 1px solid #e7edf4; border-radius: 12px; background: #fff; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.faq-item:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(12,33,62,.09); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border: 0; background: transparent; cursor: pointer; text-align: left;
  color: #172740; font-size: 14.5px; font-weight: 700;
}
.faq-q b { color: #197fd5; font-size: 18px; font-weight: 400; transition: transform .2s ease; }
.faq-item.open .faq-q b { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 18px; color: #50627c; font-size: 13.5px;
  line-height: 1.65; transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 18px 16px; }

/* ---------- final CTA ---------- */
.cta-box {
  padding: 48px 40px; border-radius: 26px; color: #fff;
  background: radial-gradient(620px 320px at 80% 0%, rgba(38,120,207,.5), transparent 65%),
    linear-gradient(135deg, #0a1b32, #071426);
}

/* ---------- scroll reveal ---------- */
#nav { transition: background .25s ease, box-shadow .25s ease; }
#nav.scrolled { box-shadow: 0 12px 30px rgba(3,12,24,.22); }

.reveal-hero { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.motion-ready .reveal-hero { opacity: 1; transform: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible .reveal-stagger > * { opacity: 1; transform: none; }
.reveal-stagger > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger > *:nth-child(5) { transition-delay: .33s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-hero, .reveal, .reveal-stagger > *, .animate-float, .animate-orbit, .progress-bar, .pill {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
}

/* skeleton */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.animate-pulse { animation: pulse 1.6s ease-in-out infinite; border-radius: 14px; }
