/* ================= FolioForge marketing site ================= */
:root {
  --bg: #05060f;
  --panel: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9ebf8;
  --muted: #9298b8;
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(135deg, #7c3aed, #22d3ee);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: rgba(124, 58, 237, 0.5); }

/* ---------------- ambient layers ---------------- */
#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.cursor-glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 65%);
  transform: translate(-50%, -50%);
  left: 50vw; top: 40vh;
  transition: left 0.35s ease-out, top 0.35s ease-out;
}
.orb {
  position: fixed; border-radius: 50%; filter: blur(100px);
  opacity: 0.32; pointer-events: none; z-index: 0;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-a { width: 520px; height: 520px; top: -180px; left: -140px;
  background: radial-gradient(circle, #7c3aed, transparent 70%); }
.orb-b { width: 460px; height: 460px; bottom: -160px; right: -120px;
  background: radial-gradient(circle, #22d3ee, transparent 70%); animation-delay: -9s; }
.orb-c { width: 340px; height: 340px; top: 40%; left: 55%;
  background: radial-gradient(circle, #f472b6, transparent 70%);
  opacity: 0.15; animation-delay: -17s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(70px, 50px) scale(1.18); }
}

/* ---------------- reveal on scroll ---------------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- brand & buttons ---------------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.brand em { font-style: normal; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.65)); }

.grad-text {
  background: linear-gradient(90deg, #a78bfa, #22d3ee, #f472b6, #a78bfa);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue-slide 7s linear infinite;
}
@keyframes hue-slide { to { background-position: 300% 0; } }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 14px;
  font: 600 0.95rem var(--font-head); letter-spacing: 0.01em;
  text-decoration: none; color: var(--text); cursor: pointer;
  transition: transform 0.18s, box-shadow 0.25s, border-color 0.2s, background 0.2s;
}
.btn-grad {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}
.btn-grad:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(124, 58, 237, 0.55); }
.btn-outline { border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.btn-outline:hover { border-color: var(--violet); background: rgba(124, 58, 237, 0.14); transform: translateY(-3px); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 11px; }
.btn-block { display: block; text-align: center; }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5vw;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 15, 0.75); backdrop-filter: blur(18px);
  border-bottom-color: var(--border); padding: 11px 5vw;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 130px 5vw 60px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; max-width: 1200px; margin: 0 auto; width: 100%;
}
.pill {
  display: inline-block; font-size: 0.82rem; font-weight: 600; color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.45); background: rgba(124, 58, 237, 0.12);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 22px;
}
.strike { position: relative; color: var(--muted); }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 3px;
  background: var(--pink); border-radius: 2px; transform: rotate(-2deg);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.7);
}
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin-bottom: 30px; }
.hero-sub strong { color: var(--text); }
.typer { color: var(--cyan); font-weight: 600; }
.caret { color: var(--cyan); animation: blink 1s step-end infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.88rem; }
.avatars { display: inline-flex; }
.avatars i {
  width: 30px; height: 30px; border-radius: 50%; font-style: normal;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: #fff;
  border: 2px solid var(--bg); margin-left: -8px;
}
.avatars i:first-child { margin-left: 0; background: linear-gradient(135deg, #7c3aed, #22d3ee); }
.avatars i:nth-child(2) { background: linear-gradient(135deg, #f472b6, #7c3aed); }
.avatars i:nth-child(3) { background: linear-gradient(135deg, #22d3ee, #34d399); }

/* hero visual: browser mock */
.hero-visual { position: relative; }
.browser-mock {
  background: rgba(12, 14, 30, 0.85); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; backdrop-filter: blur(12px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 58, 237, 0.12);
  animation: float-slow 7s ease-in-out infinite alternate;
}
@keyframes float-slow { to { transform: translateY(-14px); } }
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.b-dot { width: 11px; height: 11px; border-radius: 50%; }
.b-dot.r { background: #f87171; } .b-dot.y { background: #fbbf24; } .b-dot.g { background: #34d399; }
.b-url {
  margin-left: 12px; font-size: 0.75rem; color: var(--muted);
  background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 4px 14px;
}
.browser-body { padding: 26px; }
.mock-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad); margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.55);
}
.mock-line { height: 13px; border-radius: 7px; background: rgba(255, 255, 255, 0.16); margin-bottom: 9px; }
.mock-line.dim { background: rgba(255, 255, 255, 0.07); }
.w60 { width: 60%; } .w40 { width: 40%; }
.mock-cards { display: flex; gap: 10px; margin: 18px 0; }
.mock-card {
  flex: 1; height: 62px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(34, 211, 238, 0.15));
  border: 1px solid var(--border);
}
.mock-card:nth-child(2) { background: linear-gradient(135deg, rgba(244, 114, 182, 0.22), rgba(124, 58, 237, 0.14)); }
.mock-card:nth-child(3) { background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(52, 211, 153, 0.14)); }
.mock-bars { display: flex; flex-direction: column; gap: 8px; }
.mock-bar {
  height: 8px; border-radius: 4px; width: var(--w);
  background: var(--grad); opacity: 0.75;
  animation: bar-grow 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes bar-grow { from { width: 0; } }
.float-badge {
  position: absolute; font-size: 0.78rem; font-weight: 600;
  background: rgba(12, 14, 30, 0.9); border: 1px solid var(--border);
  padding: 9px 15px; border-radius: 999px; backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: float-slow 5s ease-in-out infinite alternate;
}
.fb-1 { top: -16px; right: 8%; animation-delay: -1s; color: #c4b5fd; }
.fb-2 { bottom: 18%; left: -26px; animation-delay: -2.4s; color: #a5f3fc; }
.fb-3 { bottom: -14px; right: 14%; animation-delay: -3.8s; color: #fbcfe8; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px;
  background: var(--cyan); border-radius: 2px; transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 55% { transform: translate(-50%, 14px); opacity: 0; } 56% { opacity: 0; } }

/* ---------------- marquee ---------------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 15px 0; position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.015);
}
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: marquee 32s linear infinite;
  font: 600 0.9rem var(--font-head); color: var(--muted); letter-spacing: 0.14em;
  text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- stats ---------------- */
.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1100px; margin: 0 auto; padding: 70px 5vw 10px;
  text-align: center;
}
.stat b {
  display: block; font: 700 2.4rem var(--font-head); letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span:last-child { color: var(--muted); font-size: 0.88rem; }

/* ---------------- sections ---------------- */
.section { position: relative; z-index: 1; padding: 110px 5vw; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font: 600 0.78rem var(--font-body);
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--cyan);
  margin-bottom: 14px;
}
.section-head h2, .about h2, .cta-panel h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.15;
}
.section-head p { color: var(--muted); margin-top: 14px; }
.center { text-align: center; margin-top: 44px; }

/* ---------------- example cards ---------------- */
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.example-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; transition: border-color 0.25s, box-shadow 0.3s;
}
.example-card:hover {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.15);
}
.ex-thumb { height: 200px; position: relative; overflow: hidden; padding: 18px; }
.ex-info { padding: 20px 22px 24px; }
.ex-info h3 { font-family: var(--font-head); margin-bottom: 6px; letter-spacing: -0.01em; }
.ex-info p { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.ex-cta { font-size: 0.85rem; font-weight: 600; color: var(--cyan); }

.ex-dev { background: #060b08; font-family: monospace; }
.ex-term-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.ex-term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #1f3a2a; }
.ex-term-line { color: #4ade80; font-size: 0.82rem; margin-bottom: 6px; }
.ex-term-line.accent { color: #a7f3d0; text-shadow: 0 0 12px rgba(74, 222, 128, 0.6); }
.ex-term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.ex-term-grid i {
  height: 30px; border-radius: 6px; background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.example-card:hover .ex-term-grid i { background: rgba(74, 222, 128, 0.25); }

.ex-des { background: #f5efe6; }
.ex-des-type {
  font: 800 3.4rem var(--font-head); color: #1a1a2e; letter-spacing: -0.05em; line-height: 1;
}
.ex-des-blob {
  position: absolute; right: -30px; top: -30px; width: 130px; height: 130px;
  background: linear-gradient(135deg, #ff5e78, #ffb74d); border-radius: 46% 54% 60% 40%/50% 45% 55% 50%;
  animation: blob-morph 7s ease-in-out infinite alternate;
}
@keyframes blob-morph { to { border-radius: 55% 45% 42% 58%/48% 60% 40% 52%; transform: rotate(24deg); } }
.ex-des-strip { display: flex; gap: 8px; margin-top: 20px; }
.ex-des-strip i { flex: 1; height: 44px; border-radius: 8px; }
.ex-des-strip i:nth-child(1) { background: #1a1a2e; }
.ex-des-strip i:nth-child(2) { background: #ff5e78; }
.ex-des-strip i:nth-child(3) { background: #4d96ff; }

.ex-data { background: #050c1c; display: flex; flex-direction: column; justify-content: flex-end; }
.ex-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.ex-chart i {
  flex: 1; height: var(--h); border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, #1d4ed8, #22d3ee);
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.example-card:hover .ex-chart i { filter: brightness(1.35); }
.ex-data-line { height: 2px; background: rgba(255, 255, 255, 0.15); margin-top: 0; }

/* ---------------- steps ---------------- */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: step;
}
.step {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.5); }
.step-num {
  font: 700 0.95rem var(--font-head);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-family: var(--font-head); font-size: 1.06rem; margin: 12px 0 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* ---------------- features ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px 26px; transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.feature:hover {
  transform: translateY(-6px); border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}
.f-ico { font-size: 1.7rem; display: block; margin-bottom: 14px;
  filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.5)); }
.feature h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* ---------------- pricing ---------------- */
.price-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 26px; justify-content: center;
}
.price-card {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: 22px; padding: 36px 32px;
  transition: transform 0.25s, box-shadow 0.3s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(10, 12, 26, 0.96), rgba(10, 12, 26, 0.96)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 24px 70px rgba(124, 58, 237, 0.28);
}
.ribbon {
  position: absolute; top: -13px; right: 26px;
  background: var(--grad); color: #fff; font: 700 0.72rem var(--font-body);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}
.price-card h3 { font-family: var(--font-head); color: var(--muted); font-size: 1rem; }
.price { font: 700 3.4rem var(--font-head); letter-spacing: -0.04em; margin: 10px 0 20px; }
.price .cur { font-size: 1.6rem; vertical-align: super; }
.price .per { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; margin-bottom: 28px; }
.price-card li {
  padding: 8px 0 8px 28px; position: relative; color: var(--muted); font-size: 0.93rem;
}
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700;
}

/* ---------------- about ---------------- */
.about-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 26px;
  padding: 56px 48px;
}
.about-inner h2 { margin-bottom: 22px; }
.about-inner p { color: var(--muted); margin-bottom: 16px; }
.about-sign { color: var(--text) !important; font-weight: 600; margin-top: 8px; }

/* ---------------- faq ---------------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 0 24px; overflow: hidden; transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(124, 58, 237, 0.55); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font: 600 1rem var(--font-head); display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--cyan); transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 0.93rem; padding-bottom: 22px; }

/* ---------------- cta ---------------- */
.cta-panel {
  text-align: center; border-radius: 28px; padding: 76px 32px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(8, 9, 20, 0.92), rgba(8, 9, 20, 0.92)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 90px rgba(124, 58, 237, 0.25);
  position: relative; overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(124, 58, 237, 0.25), transparent 85%);
  animation: spin 9s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-panel h2 { margin-bottom: 12px; position: relative; }
.cta-panel p { color: var(--muted); margin-bottom: 30px; position: relative; }
.cta-panel .btn { position: relative; }

/* ---------------- footer ---------------- */
.footer {
  position: relative; z-index: 1; text-align: center;
  padding: 60px 5vw 40px; border-top: 1px solid var(--border);
}
.footer-links { display: flex; justify-content: center; gap: 26px; margin: 22px 0; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--muted); font-size: 0.82rem; }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 120px; }
  .example-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(5, 6, 15, 0.97); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; font-size: 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; z-index: 61; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .example-grid, .feature-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 6vw; }
  .about-inner { padding: 40px 26px; }
  .float-badge { display: none; }
  .cursor-glow { display: none; }
}
