/* ==========================================================================
   CREATOR EMBASSY — Homepage + signature components
   ========================================================================== */

/* ---------- Signature hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 140px 0 80px;
}

/* Poster layer = instant LCP. Aurora canvas paints over it. */
.hero__poster {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 70% at 75% 18%, rgba(29, 158, 117, 0.34), transparent 62%),
    radial-gradient(45% 60% at 15% 75%, rgba(20, 110, 84, 0.25), transparent 60%),
    radial-gradient(30% 40% at 55% 90%, rgba(212, 184, 106, 0.10), transparent 65%),
    var(--ink);
}
#hero-gl {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease;
}
#hero-gl.ready { opacity: 1; }

.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
}

.hero__seal {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  padding: 8px 18px 8px 12px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(212, 184, 106, 0.06);
  margin-bottom: 28px;
}
.hero__seal svg { width: 22px; height: 18px; }

.hero h1 { margin-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--emerald-bright), var(--mint) 60%, var(--gold-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* While SplitText has the headline split into char wrappers, the gradient can't
   clip to them — fill those chars solid mint until the split reverts. */
.hero h1 em div {
  background: none;
  -webkit-text-fill-color: var(--mint);
  color: var(--mint);
}
.hero .lede { max-width: 52ch; margin-bottom: 36px; }

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }

.hero__meta {
  display: flex; gap: 26px; flex-wrap: wrap;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
}

.hero__scroll-hint {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; font-family: var(--font-head);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll-hint::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll-hint::after { animation: none; } }
@media (max-width: 980px) { .hero__scroll-hint { display: none; } }

/* ---------- Phone mockups (CSS-built app screens) ---------- */
.phone {
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19;
  background: #050B08;
  border: 1px solid rgba(127, 232, 196, 0.25);
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 0 0 5px rgba(5, 11, 8, 0.9),
    var(--shadow),
    0 0 80px -20px rgba(29, 158, 117, 0.45);
  position: relative;
  flex: none;
}
.phone::before {
  content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0;
  width: 88px; height: 22px; background: #050B08; border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: linear-gradient(170deg, #0E1B15 0%, #0A1410 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.phone__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px 8px;
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 600;
  color: var(--text-soft);
}
.phone__status .sig { display: flex; gap: 4px; align-items: flex-end; }
.phone__status .sig i {
  display: block; width: 3px; border-radius: 1px; background: var(--text-soft);
}
.phone__status .sig i:nth-child(1) { height: 4px; }
.phone__status .sig i:nth-child(2) { height: 6px; }
.phone__status .sig i:nth-child(3) { height: 8px; }
.phone__head {
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.phone__head strong {
  font-family: var(--font-head); font-size: 0.95rem; color: var(--text);
  display: block;
}
.phone__head small { font-size: 0.7rem; color: var(--text-dim); }
.phone__body { flex: 1; overflow: hidden; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }

/* app rows (channels / creators) */
.app-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(127, 232, 196, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.74rem; color: var(--text-soft);
}
.app-row .ico {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(29, 158, 117, 0.18);
  color: var(--mint);
}
.app-row .ico svg { width: 15px; height: 15px; }
.app-row .ico--gold { background: rgba(212, 184, 106, 0.16); color: var(--gold-bright); }
.app-row b { display: block; font-family: var(--font-head); font-size: 0.76rem; color: var(--text); font-weight: 600; }
.app-row small { font-size: 0.65rem; color: var(--text-dim); display: block; }
.app-row .chev { margin-left: auto; color: var(--text-dim); flex: none; }
.app-row .avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  color: #06120D;
  background: linear-gradient(135deg, var(--emerald-bright), var(--gold));
}
.app-row .heart { margin-left: auto; color: var(--emerald-bright); font-size: 0.85rem; flex: none; }
.app-row .heart.off { color: var(--text-dim); }

/* chat bubbles */
.chat-msg { max-width: 86%; }
.chat-msg .bubble {
  background: rgba(127, 232, 196, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  padding: 8px 11px;
  font-size: 0.72rem; color: var(--text-soft);
}
.chat-msg.me { align-self: flex-end; }
.chat-msg.me .bubble {
  background: rgba(29, 158, 117, 0.2);
  border-radius: 12px 12px 4px 12px;
}
.chat-msg .who {
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 600;
  color: var(--gold-bright); margin-bottom: 3px; display: block;
}
.chat-msg .reacts { display: flex; gap: 6px; margin-top: 5px; }
.chat-msg .reacts span {
  font-size: 0.62rem; color: var(--text-dim);
  background: rgba(127, 232, 196, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 7px;
}

/* ---------- Hero phone composition ---------- */
.hero__visual {
  position: relative;
  display: flex; justify-content: center;
  perspective: 1200px;
}
.hero__visual .phone { rotate: 4deg; }
.hero__visual::before {
  content: ""; position: absolute; inset: 10% -8%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(29, 158, 117, 0.28), transparent 70%);
  z-index: -1; filter: blur(10px);
}
@media (max-width: 980px) { .hero__visual { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-gold);
  background: var(--ink-2);
  padding-block: 20px;
  display: flex;
}
.marquee__track {
  display: flex; gap: 0; flex: none;
  will-change: transform;
}
.marquee__track > span {
  flex: none;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 28px;
  padding-inline: 28px;
  white-space: nowrap;
}
/* alternate entries render as outlined type — editorial rhythm */
.marquee__track > span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 232, 196, 0.45);
}
.marquee__track > span::after { content: "✦"; color: var(--gold); font-size: 0.8em; }
@media (prefers-reduced-motion: reduce) { .marquee { display: none; } }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.stat { text-align: center; padding: 10px; position: relative; }
/* gold hairline dividers between stats */
.stat + .stat::before {
  content: ""; position: absolute; left: calc(-1 * clamp(10px, 2vw, 24px)); top: 15%; bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-gold), transparent);
}
@media (max-width: 760px) {
  .stat + .stat::before {
    left: 20%; right: 20%; top: calc(-0.5 * clamp(20px, 4vw, 48px)); bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
  }
}
.stat__num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--emerald-bright), var(--mint));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__num .suffix { font-size: 0.5em; }
.stat__label { margin-top: 12px; color: var(--text-dim); font-size: 0.98rem; }

/* ---------- Problem section ---------- */
.problem { position: relative; }
.problem__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 40px); }
@media (max-width: 880px) { .problem__cols { grid-template-columns: 1fr; } }
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.problem-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.97rem; color: var(--text-soft);
}
.problem-list .x {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(194, 69, 69, 0.14);
  color: #F08A8A;
  margin-top: 1px;
}
.problem-list .x svg { width: 13px; height: 13px; }
.problem__answer {
  margin-top: clamp(36px, 5vw, 56px);
  background: linear-gradient(150deg, rgba(29,158,117,0.16), rgba(212,184,106,0.06));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
}
@media (max-width: 640px) { .problem__answer { grid-template-columns: 1fr; } }
.problem__answer .crown { width: 54px; color: var(--gold); flex: none; }
.problem__answer h3 { color: var(--gold-bright); }
.problem__answer p { margin-bottom: 0; }

/* ---------- Pinned app walkthrough ---------- */
.walkthrough { position: relative; }
.walkthrough__stage {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  min-height: 80vh;
}
@media (max-width: 880px) {
  .walkthrough__stage { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
}
.walkthrough__phones { position: relative; display: flex; justify-content: center; min-height: 640px; align-items: center; }
@media (max-width: 880px) { .walkthrough__phones { display: none; } }
.walkthrough__phones .phone { position: absolute; }
.walkthrough__phones .phone:nth-child(2),
.walkthrough__phones .phone:nth-child(3) { opacity: 0; }

.walkthrough__steps { display: grid; gap: clamp(22px, 3vw, 30px); }
.wt-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  background: var(--ink-2);
  transition: border-color 0.35s, background 0.35s, opacity 0.35s;
  opacity: 0.45;
}
.wt-step.active {
  opacity: 1;
  border-color: var(--line-gold);
  background: linear-gradient(150deg, rgba(29,158,117,0.10), var(--ink-2) 55%);
}
@media (max-width: 880px) { .wt-step { opacity: 1; } }
.wt-step__num {
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.2em; color: var(--gold); margin-bottom: 12px; display: block;
}
.wt-step h3 { margin-bottom: 8px; }
.wt-step p { margin: 0; font-size: 0.96rem; }
/* mobile: show one static phone above steps */
.walkthrough__phone-mobile { display: none; }
@media (max-width: 880px) {
  .walkthrough__phone-mobile { display: flex; justify-content: center; margin-bottom: 40px; }
}

/* ---------- Sticky stacking feature cards ---------- */
.stack-cards { display: grid; gap: 22px; }
.stack-card {
  position: sticky;
  top: 110px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px);
  align-items: start;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) { .stack-card { grid-template-columns: 1fr; position: static; } }
.stack-card:nth-child(odd) { background: linear-gradient(160deg, #14271C, var(--ink-2)); }
.stack-card .card__icon { margin-bottom: 0; width: 60px; height: 60px; }
.stack-card .card__icon svg { width: 28px; height: 28px; }
.stack-card h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.stack-card p { margin-bottom: 0; max-width: 60ch; }
.stack-card .tag {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill); padding: 6px 14px;
}

/* ---------- Audience split ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
@media (max-width: 880px) { .audience { grid-template-columns: 1fr; } }
.audience-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 4.5vw, 52px);
  background: var(--ink-2);
  display: flex; flex-direction: column; align-items: flex-start;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.audience-panel:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--shadow-glow); }
.audience-panel--brand { border-top: 3px solid var(--emerald); }
.audience-panel--creator { border-top: 3px solid var(--gold); }
.audience-panel--brand:hover { border-color: rgba(47, 206, 155, 0.4); }
.audience-panel--creator:hover { border-color: var(--line-gold); }
.audience-panel ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.audience-panel li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: 0.97rem; }
.audience-panel li svg { flex: none; width: 18px; height: 18px; color: var(--emerald-bright); margin-top: 4px; }
.audience-panel--creator li svg { color: var(--gold); }
.audience-panel .btn { margin-top: auto; }

/* ---------- Magnetic wrapper ---------- */
.magnetic { display: inline-block; will-change: transform; }

/* ---------- Compare teaser on home ---------- */
.compare-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.compare-links a {
  font-family: var(--font-head); font-size: 0.88rem; font-weight: 500;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.compare-links a:hover { border-color: var(--emerald-bright); color: var(--mint); background: var(--glass-brt); }
