/* ================================================================
   PlanCore purchase site — dark marketing theme
   Brand: cyan #0891B2→#22C3E6 accent, violet #6D5BFF for motion/AI,
   navy canvas (family of the app splash #0f1b33). Geist type.
   ================================================================ */

:root {
  --bg:          #070D1A;
  --bg-2:        #0B1424;
  --bg-3:        #0F1B33;
  --card:        rgba(255, 255, 255, 0.03);
  --card-border: rgba(148, 178, 214, 0.14);
  --card-border-hover: rgba(34, 195, 230, 0.45);
  --text:        #E8EFF7;
  --text-2:      #A9B8CC;
  --text-3:      #74849B;
  --accent:      #22C3E6;
  --accent-2:    #0E97B9;
  --violet:      #6D5BFF;
  --ok:          #34D399;
  --grad:        linear-gradient(120deg, #22C3E6, #6D5BFF);
  --radius:      16px;
  --nav-h:       64px;
  --max:         1120px;
  --font:        "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono:        "Geist Mono", ui-monospace, "Cascadia Code", monospace;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(34, 195, 230, 0.35); }

a { color: var(--accent); text-decoration: none; }
code { font-family: var(--mono); font-size: 0.9em; background: rgba(148,178,214,0.12); padding: 1px 6px; border-radius: 6px; }

/* ---------------- ambient gradient orbs ---------------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 26s ease-in-out infinite alternate;
}
.orb-a { width: 560px; height: 560px; top: -180px; right: -140px;
         background: radial-gradient(circle, rgba(14,151,185,0.55), transparent 65%); }
.orb-b { width: 480px; height: 480px; bottom: -160px; left: -160px;
         background: radial-gradient(circle, rgba(109,91,255,0.42), transparent 65%);
         animation-delay: -13s; }
@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-60px, 50px, 0) scale(1.15); }
}

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(7, 13, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 178, 214, 0.10);
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo-word { font-weight: 600; font-size: 18px; letter-spacing: -0.3px; }
.logo-dash { color: var(--text-3); font-weight: 400; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* animated logo rings (keyframes referenced by the mark) */
.spin-outer { transform-origin: 24px 24px; animation: pc-spin 18s linear infinite; }
.spin-mid   { transform-origin: 24px 24px; animation: pc-spin 9s linear infinite reverse; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; letter-spacing: 0.1px;
  border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  color: #04121B;
  background: linear-gradient(120deg, #2ED3F5, #19A8CB);
  box-shadow: 0 4px 24px rgba(34, 195, 230, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34, 195, 230, 0.5), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text);
  border-color: rgba(148, 178, 214, 0.3);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { border-color: rgba(148, 178, 214, 0.6); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none !important; }

.buy-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(4,18,27,0.25); border-top-color: #04121B;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 20px 64px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero::after {  /* fade canvas into page bg */
  content: ""; position: absolute; inset: auto 0 0 0; height: 200px; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  border: 1px solid rgba(148, 178, 214, 0.22);
  background: rgba(11, 20, 36, 0.6);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 26px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero-title {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.grad-text {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: grad-shift 6s ease-in-out infinite alternate;
}
@keyframes grad-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 640px; margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  border: 1px solid rgba(148, 178, 214, 0.16);
  background: rgba(11, 20, 36, 0.55);
  padding: 6px 13px; border-radius: 999px;
}
.badge svg { color: var(--accent); flex: none; }

/* ---------------- stat strip ---------------- */
.strip { padding: 8px 20px 12px; }
.strip-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border-radius: var(--radius);
  padding: 26px 30px;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-unit { font-size: 22px; }
.stat-label { font-size: 13.5px; color: var(--text-3); }

/* ---------------- sections ---------------- */
.section { position: relative; z-index: 1; padding: 96px 20px; max-width: var(--max); margin: 0 auto; }
.section-narrow { max-width: 780px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 12px;
}
.section-head h2, .split-copy h2, .final-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.section-sub { color: var(--text-2); margin-top: 14px; font-size: 17px; }

/* ---------------- feature cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 14px 44px rgba(8, 145, 178, 0.16);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: rgba(34, 195, 230, 0.10);
  border: 1px solid rgba(34, 195, 230, 0.22);
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--text-2); }

/* ---------------- workflow ---------------- */
.flow {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.flow-step {
  position: relative;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  padding: 22px 18px 18px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.flow-step:hover { border-color: var(--card-border-hover); transform: translateY(-3px); }
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-weight: 700; font-size: 15px; color: #04121B;
  background: var(--grad);
  margin-bottom: 12px;
}
.flow-step h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.flow-step p { font-size: 13px; color: var(--text-3); line-height: 1.45; }

/* ---------------- pricing ---------------- */
.price-wrap { display: flex; justify-content: center; }
.price-card {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid rgba(34, 195, 230, 0.35);
  background: linear-gradient(180deg, rgba(15, 27, 51, 0.9), rgba(11, 20, 36, 0.9));
  border-radius: 22px;
  padding: 40px 38px 34px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.price-glow {
  position: absolute; inset: -40% -20% auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(34,195,230,0.22), transparent 70%);
  pointer-events: none;
}
.price-plan { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.price-amount { font-size: 62px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 20px; line-height: 1; }
.price-currency { font-size: 32px; vertical-align: 16px; margin-right: 2px; color: var(--text-2); }
.price-note { font-size: 15px; font-weight: 500; color: var(--text-3); margin-left: 10px; letter-spacing: 0; }
.price-list { list-style: none; margin-bottom: 28px; }
.price-list li {
  position: relative; padding: 8px 0 8px 30px;
  font-size: 15px; color: var(--text-2);
  border-bottom: 1px dashed rgba(148,178,214,0.12);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.15)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.5 8.5l2.3 2.3 4.7-5" fill="none" stroke="%2334D399" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
}
.price-fine { margin-top: 16px; font-size: 13px; color: var(--text-3); text-align: center; }

/* ---------------- split (trust) ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy p { color: var(--text-2); margin: 16px 0 20px; }
.check-list { list-style: none; }
.check-list li {
  position: relative; padding: 7px 0 7px 30px; font-size: 15px; color: var(--text-2);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 17px; height: 17px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 1l5 2v4c0 3.2-2.1 5.9-5 7-2.9-1.1-5-3.8-5-7V3l5-2z" fill="none" stroke="%2322C3E6" stroke-width="1.4"/><path d="M5.5 8l1.8 1.8L10.8 6.3" fill="none" stroke="%2322C3E6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
}

.term {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: #0A111F;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  overflow: hidden;
  font-family: var(--mono);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(148,178,214,0.1);
  background: rgba(255,255,255,0.02);
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(148,178,214,0.22); }
.term-bar em { margin-left: 8px; font-style: normal; font-size: 12px; color: var(--text-3); }
.term-body { padding: 20px 18px; font-size: 13px; line-height: 1.75; overflow-x: auto; }
.term-body code { background: none; padding: 0; color: var(--text-2); }
.t-prompt { color: var(--violet); font-weight: 600; }
.t-dim { color: var(--text-3); }
.t-ok { color: var(--ok); }
.t-hash { color: var(--accent); }

/* ---------------- support ---------------- */
.support-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 820px; margin: 0 auto; }
.support-card {
  display: block;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border-radius: var(--radius);
  padding: 30px 28px;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s;
}
.support-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 14px 44px rgba(8, 145, 178, 0.16);
}
.support-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.support-card p { font-size: 14.5px; color: var(--text-2); margin-bottom: 14px; }
.support-link { font-size: 14.5px; font-weight: 600; color: var(--accent); }

/* ---------------- FAQ ---------------- */
.faq details {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq details[open] { border-color: rgba(34, 195, 230, 0.35); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 48px 18px 22px;
  font-weight: 600; font-size: 15.5px;
  position: relative;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 12px; height: 12px; translate: 0 -50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center/12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/2px 12px no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; font-size: 14.5px; color: var(--text-2); }

/* ---------------- final CTA / footer ---------------- */
.final-cta { text-align: center; padding-bottom: 120px; }
.final-inner {
  border: 1px solid rgba(109, 91, 255, 0.3);
  border-radius: 24px;
  padding: 64px 32px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(34,195,230,0.14), transparent 55%),
    radial-gradient(ellipse at 75% 100%, rgba(109,91,255,0.16), transparent 55%),
    rgba(11, 20, 36, 0.6);
}
.final-inner p { color: var(--text-2); margin: 12px 0 28px; font-size: 17px; }

.footer { border-top: 1px solid rgba(148,178,214,0.1); padding: 28px 20px; position: relative; z-index: 1; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-brand { font-weight: 600; }
.footer-copy { color: var(--text-3); font-size: 13.5px; margin-right: auto; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-3); font-size: 13.5px; }
.footer-links a:hover { color: var(--text); }

/* ---------------- scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
/* stagger siblings */
.cards .reveal.in:nth-child(2), .support-cards .reveal.in:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal.in:nth-child(3) { transition-delay: 0.16s; }
.cards .reveal.in:nth-child(4) { transition-delay: 0.06s; }
.cards .reveal.in:nth-child(5) { transition-delay: 0.14s; }
.cards .reveal.in:nth-child(6) { transition-delay: 0.22s; }

/* ---------------- success page ---------------- */
.dl-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 40px) 20px 60px; position: relative; z-index: 1; }
.dl-card {
  width: min(620px, 100%);
  border: 1px solid rgba(34, 195, 230, 0.3);
  background: linear-gradient(180deg, rgba(15, 27, 51, 0.92), rgba(11, 20, 36, 0.92));
  border-radius: 22px;
  padding: 44px 40px;
  text-align: center;
}
.dl-icon {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ok);
}
.dl-card h1 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 10px; }
.dl-card > p { color: var(--text-2); font-size: 15.5px; }
.dl-meta { margin: 22px 0 6px; font-size: 14px; color: var(--text-3); }
.dl-meta strong { color: var(--text); font-weight: 600; }
.dl-actions { margin: 22px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.dl-steps { text-align: left; margin: 26px 0 6px; padding-left: 0; list-style: none; counter-reset: dstep; }
.dl-steps li {
  counter-increment: dstep;
  position: relative; padding: 9px 0 9px 40px;
  font-size: 14.5px; color: var(--text-2);
  border-bottom: 1px dashed rgba(148,178,214,0.12);
}
.dl-steps li:last-child { border-bottom: none; }
.dl-steps li::before {
  content: counter(dstep);
  position: absolute; left: 0; top: 9px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #04121B;
  background: var(--grad);
}
.dl-fine { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.dl-error { color: #FCA5A5; font-size: 14.5px; margin-top: 14px; }
.dl-loading { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 0; }
.dl-loading .ring {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(34,195,230,0.18); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

/* ---------------- responsive / motion prefs ---------------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 68px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
