/* Shared motion components (see assets/js/fx.js) */

/* ---------- light ribbons ---------- */
.ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 30%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 30%, #000 60%);
}
.ribbons--full { -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 75%); }

/* ---------- proof pill ---------- */
.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(13, 13, 17, 0.6);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.proof-pill b { color: var(--ink); font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: live-dot 2s infinite; flex: none; }
@keyframes live-dot { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---------- homepage hero layout ---------- */
.hero--fx .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }
.hero--fx h1.display { font-size: clamp(2.8rem, 6.2vw, 6rem); }
.hero-local { margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-local a { color: var(--ink); border-bottom: 1px solid var(--accent); }

/* ---------- live studio panel ---------- */
.studio {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(21, 21, 28, 0.82), rgba(11, 11, 15, 0.9));
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-size: 0.82rem;
}
.studio::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 74, 31, 0.6), transparent 35%, transparent 65%, rgba(108, 92, 231, 0.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.st-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.st-head .st-lights { display: flex; gap: 5px; margin-right: 0.4rem; }
.st-head .st-lights i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a31; }
.st-head .st-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink-dim); }
.st-job { padding: 1rem 1.1rem 0.2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.st-job b { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); }
.st-job span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.st-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; padding: 1rem 1.1rem 1.1rem; position: relative; }
.st-flow::before { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 2.05rem; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); animation: st-dash 1.2s linear infinite; }
@keyframes st-dash { to { background-position: 12px 0; } }
.st-node { position: relative; display: grid; justify-items: center; gap: 0.35rem; text-align: center; }
.st-node .st-ico { width: 2.1rem; height: 2.1rem; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--muted); font-family: var(--font-mono); font-size: 0.62rem; transition: all 0.4s var(--ease-out); position: relative; z-index: 1; }
.st-node b { font-weight: 500; font-size: 0.74rem; color: var(--ink-dim); }
.st-node small { font-size: 0.62rem; color: var(--faint); }
.st-node .st-state { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.st-node.run .st-ico { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(255, 74, 31, 0.12), 0 0 24px rgba(255, 74, 31, 0.45); animation: st-pulse 1.2s ease-in-out infinite; }
.st-node.run .st-state { color: var(--accent); }
.st-node.done .st-ico { border-color: rgba(61, 220, 132, 0.5); color: #3ddc84; background: rgba(61, 220, 132, 0.08); }
.st-node.done .st-state { color: #3ddc84; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 74, 31, 0.06), 0 0 34px rgba(255, 74, 31, 0.6); } }
.st-log-head { padding: 0.7rem 1.1rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.st-log { list-style: none; margin: 0; padding: 0 1.1rem 1rem; min-height: 9.6rem; display: grid; align-content: start; gap: 0.15rem; }
.st-log li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-dim); font-size: 0.78rem; opacity: 0; transform: translateY(-6px); transition: opacity 0.5s, transform 0.5s var(--ease-out); white-space: nowrap; overflow: hidden; }
.st-log li .m { overflow: hidden; text-overflow: ellipsis; }
.st-log li.in { opacity: 1; transform: none; }
.st-log li .t { font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); }
.st-log li.hot .m { color: var(--ink); }
.st-log li.hot .m::before { content: "● "; color: #3ddc84; }
@media (max-width: 560px) {
  .st-node small { display: none; }
  .st-flow { gap: 0.2rem; }
}

/* ---------- spotlight cards ---------- */
[data-spot] { position: relative; isolation: isolate; }
[data-spot]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity 0.35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 74, 31, 0.14), transparent 60%); }
[data-spot]:hover::after { opacity: 1; }

/* ---------- who we help (bento) ---------- */
.help-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } }
.help-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: 0.8rem; align-content: start; transition: border-color 0.3s, transform 0.3s var(--ease-out); overflow: hidden; }
.help-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.help-card--big { grid-row: span 2; background: radial-gradient(90% 70% at 100% 0%, rgba(255, 74, 31, 0.16), transparent 60%), var(--panel); align-content: space-between; }
@media (max-width: 900px) { .help-card--big { grid-row: auto; } }
.help-card .eyebrow { margin: 0; }
.help-card h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.03em; line-height: 1.05; }
.help-card--big h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.help-card p { color: var(--ink-dim); max-width: 34rem; }
.help-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.help-facts span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--ink-dim); }
.help-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.6rem; }
.help-price { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.03em; }
.help-price small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- guides bento hero ---------- */
.guides-hero { position: relative; overflow: hidden; }
.guides-hero .wrap { position: relative; z-index: 1; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(9.5rem, auto); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.tile { border: 1px solid var(--line); border-radius: 18px; background: rgba(17, 17, 23, 0.78); backdrop-filter: blur(10px); padding: 1.4rem; display: grid; align-content: space-between; gap: 1rem; overflow: hidden; transition: border-color 0.3s, transform 0.4s var(--ease-out); }
.tile:hover { border-color: var(--line-strong); }
.tile .eyebrow { margin: 0; }
.tile--ticker { grid-column: span 2; grid-row: span 2; background: radial-gradient(80% 70% at 0% 0%, rgba(255, 74, 31, 0.18), transparent 60%), rgba(17, 17, 23, 0.82); }
@media (max-width: 600px) { .tile--ticker { grid-column: auto; grid-row: auto; } }
.ticker-text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.08; min-height: 3.3em; }
.ticker-text::after { content: ""; display: inline-block; width: 0.08em; height: 0.9em; margin-left: 0.08em; background: var(--accent); vertical-align: -0.08em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ticker-foot { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.ticker-foot .tag { margin-right: auto; }
.tile-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -0.05em; line-height: 0.9; }
.tile-num + p { color: var(--ink-dim); font-size: 0.92rem; }
.tile--cover { padding: 0; background: none; border: 0; }
.tile--cover .guide-cover { height: 100%; aspect-ratio: auto; transition: transform 0.4s var(--ease-out); }
.tile--free { grid-column: span 2; background: linear-gradient(120deg, rgba(108, 92, 231, 0.2), rgba(17, 17, 23, 0.85) 55%); }
@media (max-width: 600px) { .tile--free { grid-column: auto; } }
.tile--free h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.02em; }
.tile--free p { color: var(--ink-dim); font-size: 0.92rem; }

@media (min-width: 1001px) {
  .bento { grid-template-areas: "tick tick s1 cov" "tick tick s2 cov" "free free free free"; }
  .tile--ticker { grid-area: tick; } .tile--s1 { grid-area: s1; } .tile--s2 { grid-area: s2; } .tile--cover { grid-area: cov; } .tile--free { grid-area: free; grid-template-columns: 1fr 1.1fr; align-items: center; }
}
.tile--cover .guide-cover { min-height: 18rem; }
.tile--cover .cover-num { font-size: clamp(4rem, 7vw, 6rem); }
.tile--cover .cover-title { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

/* ---------- free hooks form (shared) ---------- */
.free-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.free-form input[type="email"] { flex: 1 1 14rem; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 100px; color: var(--ink); font: inherit; padding: 0.8rem 1.1rem; outline: none; }
.free-form input[type="email"]:focus { border-color: var(--accent); }
.free-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.free-status { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--accent); min-height: 1.2em; }
.free-band { border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: radial-gradient(70% 90% at 100% 50%, rgba(108, 92, 231, 0.18), transparent 60%), var(--panel); }
@media (max-width: 860px) { .free-band { grid-template-columns: 1fr; } }
.free-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.free-band p { color: var(--ink-dim); margin-top: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  .live-dot, .st-flow::before, .st-node.run .st-ico, .ticker-text::after { animation: none; }
}
@media (max-width: 1000px) {
  .ribbons { opacity: 0.75; -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, #000 80%); mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, #000 80%); }
}
