/* Vision-specific variables (supplements global.css) */
:root {
  --purple: #845ef7; --coral: #f76c5e; --amber: #fbbf24;
  --card-bg: #1e1738;
}

/* ========== HEADER ========== */
.v-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--pad); pointer-events: none; }
.v-header > * { pointer-events: auto; }
.v-logo { background: var(--bg); border-radius: 2rem; padding: .35rem .7rem; display: inline-flex; align-items: center; transition: transform .3s; }
.v-logo:hover { transform: scale(1.05); }
.v-logo img { height: 40px; width: auto; }
.v-back { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 2rem; padding: .45rem 1rem .45rem .6rem; font-weight: 600; font-size: .8rem; transition: transform .3s; }
.v-back:hover { transform: scale(1.05); }

/* ========== TAG / TYPO ========== */
.v-tag { font-size: clamp(10px, .7vw, 12px); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--purple); margin-bottom: 1.2rem; }
.v-tag--amber { color: var(--amber); }

/* ========== HERO ========== */
.v-hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: var(--pad); position: relative; }
.v-hero__h { font-size: clamp(36px, 7.5vw, 110px); font-weight: 500; line-height: .92; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.v-hero__h em { font-style: italic; font-weight: 900; background: linear-gradient(135deg, var(--purple), var(--coral)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.v-hero__sub { max-width: 440px; font-size: clamp(13px, 1vw, 16px); opacity: .5; }
.v-scroll-hint { position: absolute; bottom: var(--pad); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .7rem; opacity: .35; }
.v-scroll-dot { animation: scrollDot 2s ease-in-out infinite; }
@keyframes scrollDot { 0%,100%{ cy:6; opacity:1; } 50%{ cy:14; opacity:.3; } }

/* ========== SECTIONS ========== */
.v-module { padding: 0 var(--pad); position: relative; }
.v-module--dark { background: #2a1f4e; color: #faf5ee; }

/* ========== STICKY SPLIT ========== */
.v-sticky-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); max-width: 1400px; margin: 0 auto; }
.v-sticky-layout__scroll { padding: 10vh 0; }
.v-sticky-layout__fixed { align-self: start; position: sticky; top: 15vh; padding: 10vh 0; }

/* ========== TEXT BLOCKS ========== */
.v-block { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.v-block.is-visible { opacity: 1; transform: translateY(0); }
.v-block__h { font-size: clamp(32px, 4.5vw, 68px); font-weight: 500; line-height: .9; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.v-block__label { font-size: clamp(11px, .8vw, 14px); font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--purple); margin-bottom: .8rem; padding-left: 1.5rem; position: relative; }
.v-block__label::before { content: ''; position: absolute; left: 0; top: 50%; width: 1rem; height: 1px; background: var(--purple); }
.v-block__p { font-size: clamp(14px, 1.05vw, 17px); opacity: .55; line-height: 1.7; max-width: 420px; }
.v-block__quote { border-left: 2px solid var(--amber); padding: 1rem 0 1rem 1.5rem; margin: .5rem 0 1.5rem; font-size: clamp(16px, 1.4vw, 24px); font-weight: 600; line-height: 1.5; }
.v-block__quote span { display: block; margin-top: .6rem; font-size: clamp(11px, .8vw, 13px); font-weight: 400; opacity: .35; font-style: italic; line-height: 1.5; }

/* ===========================================================
   MOTION GRAPHIC — Module 1  (warm, colorful, brand-aligned)
   =========================================================== */
.mg-card {
  background: #f5f0e8;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: 0 4px 30px rgba(22,17,39,.06);
}
.mg { display: block; width: 100%; height: 100%; overflow: hidden; }

/* --- Connection lines --- */
.mg__line { stroke: var(--purple); stroke-width: 1.5; opacity: .12; stroke-dasharray: 400; stroke-dashoffset: 400; }

/* --- Labels --- */
.mg__label--big { font-family: RG, sans-serif; font-size: 11px; font-weight: 700; fill: #fff; }
.mg__label--sm  { font-family: RG, sans-serif; font-size: 9px; font-weight: 600; fill: var(--fg); opacity: .45; }
.mg__label--code { font-family: monospace; font-size: 11px; font-weight: 700; fill: rgba(255,255,255,.8); }
.mg__label--cr  { font-family: RG, sans-serif; font-size: 8px; font-weight: 700; fill: #fff; }
.mg__label--m1  { font-family: RG, sans-serif; font-size: 13px; font-weight: 700; fill: #fff; }

/* --- YOU — Solid coral --- */
.mg__you rect   { fill: #f76c5e; stroke: none; }
.mg__you circle { stroke: #fff; fill: none; }
.mg__you path   { stroke: #fff; }

/* --- Meee1 — Solid purple --- */
.mg__meee1-bg   { fill: #845ef7; stroke: none; }
.mg__meee1-ring { fill: none; stroke: #a78bfa; opacity: .3; }

/* --- Design — Solid lime --- */
.mg__agent--design path:first-child { fill: #b5d932; stroke: none; }
.mg__agent--design .mg__label--sm { fill: #5a7a10; }

/* --- Code — Solid amber --- */
.mg__agent--code rect:first-child { fill: #fbbf24; stroke: none; }
.mg__agent--code line  { stroke: rgba(255,255,255,.3); }
.mg__agent--code circle { stroke: none; fill: rgba(255,255,255,.5); }
.mg__agent--code .mg__label--sm { fill: #8a6510; }

/* --- Write — Solid soft purple --- */
.mg__agent--write path { fill: #a78bfa; stroke: none; }
.mg__agent--write line { stroke: rgba(255,255,255,.3); }
.mg__agent--write .mg__label--sm { fill: #6040a4; }

/* --- Plan — Solid peach --- */
.mg__agent--plan path { fill: #f9a89a; stroke: none; }
.mg__agent--plan .mg__label--sm { fill: #9a4535; }

/* --- Data — Solid dark --- */
.mg__agent--data ellipse { fill: #3a3252; stroke: none; }
.mg__agent--data path    { fill: none; stroke: #3a3252; }
.mg__agent--data .mg__label--sm { fill: #3a3252; }

/* --- Request bubble --- */
.mg__req rect     { fill: var(--purple); stroke: none; }
.mg__req polygon  { fill: var(--purple); }

/* --- Credits — Amber coins --- */
.mg__cr path { fill: var(--amber); }

/* --- Result — Coral badge --- */
.mg__result rect { fill: var(--coral); }

/* --- HIVE watermark --- */
.mg__hive-bg { fill: rgba(132,94,247,.03); stroke: #a78bfa; stroke-width: 1.2; stroke-dasharray: 8 6; opacity: 0; }

/* --- Initial hidden states --- */
.mg__you, .mg__meee1, .mg__agent, .mg__req, .mg__cr, .mg__result { opacity: 0; }
.mg__hive-bg { opacity: 0; }

/* ===========================================================
   SCROLL-DRIVEN — Module 2
   =========================================================== */
.sd-intro { max-width: 600px; margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--pad); text-align: center; }
.sd-intro__h { font-size: clamp(32px, 5vw, 72px); font-weight: 500; line-height: .9; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.sd-wrapper { height: calc(100vh + 3200px); position: relative; }
.sd { height: 100vh; overflow: hidden; position: sticky; top: 0; }
.sd__split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); max-width: 1400px; margin: 0 auto; height: 100%; align-items: center; padding: 0 var(--pad); }

.sd__visual { position: relative; width: 100%; aspect-ratio: 1; max-width: 400px; margin: 0 auto; }

/* ★ Core circle */
.sd__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0);
  width: 60px; height: 60px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  background: rgba(132,94,247,.08);
  opacity: 0;
}

/* ★ Stage 1: Chat bubbles */
.sd__chat {
  position: absolute; opacity: 0;
  border-radius: 14px;
  padding: 8px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.sd__chat-line { display: block; height: 3px; border-radius: 2px; width: 100%; }
.sd__chat-line--short { width: 65%; }
.sd__chat-line--shorter { width: 40%; }
.sd__chat-dot { width: 5px; height: 5px; border-radius: 50%; }

/* Sizes, positions, colors — varied like a real chat */
.sd__chat--1 {
  width: 110px; left: 5%; top: 8%;
  background: rgba(132,94,247,.12); border: 1.5px solid rgba(132,94,247,.25);
  border-radius: 14px 14px 14px 4px;
  animation: cf1 4s ease-in-out infinite;
}
.sd__chat--1 .sd__chat-line { background: rgba(132,94,247,.2); }

.sd__chat--2 {
  width: 80px; right: 8%; top: 10%;
  background: rgba(247,108,94,.1); border: 1.5px solid rgba(247,108,94,.2);
  border-radius: 14px 14px 4px 14px;
  animation: cf2 3.5s ease-in-out infinite .3s;
}
.sd__chat--2 .sd__chat-line { background: rgba(247,108,94,.2); }

.sd__chat--3 {
  width: 65px; left: 15%; top: 35%;
  background: rgba(251,191,36,.1); border: 1.5px solid rgba(251,191,36,.2);
  border-radius: 14px 14px 14px 4px;
  flex-direction: row; justify-content: center; align-items: center; gap: 4px; padding: 8px 14px;
  animation: cf1 3.2s ease-in-out infinite .6s;
}
.sd__chat--3 .sd__chat-dot { background: rgba(251,191,36,.35); }

.sd__chat--4 {
  width: 120px; right: 5%; top: 38%;
  background: rgba(132,94,247,.08); border: 1.5px solid rgba(132,94,247,.18);
  border-radius: 14px 14px 4px 14px;
  animation: cf2 3.8s ease-in-out infinite .2s;
}
.sd__chat--4 .sd__chat-line { background: rgba(132,94,247,.15); }

.sd__chat--5 {
  width: 70px; left: 30%; bottom: 25%;
  background: rgba(247,108,94,.08); border: 1.5px solid rgba(247,108,94,.18);
  border-radius: 14px 14px 14px 4px;
  animation: cf1 4.2s ease-in-out infinite .8s;
}
.sd__chat--5 .sd__chat-line { background: rgba(247,108,94,.18); }

.sd__chat--6 {
  width: 55px; left: 3%; bottom: 12%;
  background: rgba(251,191,36,.08); border: 1.5px solid rgba(251,191,36,.18);
  border-radius: 14px 14px 4px 14px;
  animation: cf2 3.6s ease-in-out infinite .4s;
}
.sd__chat--6 .sd__chat-line { background: rgba(251,191,36,.2); }

.sd__chat--7 {
  width: 95px; right: 15%; bottom: 10%;
  background: rgba(132,94,247,.1); border: 1.5px solid rgba(132,94,247,.2);
  border-radius: 14px 14px 14px 4px;
  animation: cf1 3.4s ease-in-out infinite 1s;
}
.sd__chat--7 .sd__chat-line { background: rgba(132,94,247,.18); }

.sd__chat--8 {
  width: 60px; right: 35%; top: 65%;
  background: rgba(247,108,94,.06); border: 1.5px solid rgba(247,108,94,.15);
  border-radius: 14px 14px 4px 14px;
  flex-direction: row; justify-content: center; align-items: center; gap: 4px; padding: 8px 14px;
  animation: cf2 4s ease-in-out infinite .5s;
}
.sd__chat--8 .sd__chat-dot { background: rgba(247,108,94,.3); }

@keyframes cf1 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }
@keyframes cf2 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(5px); } }

/* ★ Stage 2: Dot-wire network */
.sd__net {
  position: absolute; inset: 5%; width: 90%; height: 90%; opacity: 0;
}
.sd__dot { fill: var(--purple); opacity: 0; }
.sd__wire { stroke: var(--purple); stroke-width: 1.2; opacity: 0; }

/* ★ Stage 3: Dandelion seeds */
.sd__seed {
  position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  opacity: 0;
}
.sd__seed--1 { background: var(--purple); }
.sd__seed--2 { background: var(--coral); }
.sd__seed--3 { background: var(--amber); }
.sd__seed--4 { background: var(--purple); width: 6px; height: 6px; }
.sd__seed--5 { background: var(--coral); width: 6px; height: 6px; }
.sd__seed--6 { background: var(--amber); width: 7px; height: 7px; }
.sd__seed--7 { background: var(--coral); width: 5px; height: 5px; }
.sd__seed--8 { background: var(--purple); width: 9px; height: 9px; }

/* ★ Stage 4: Ripple rings */
.sd__ripple {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; opacity: 0;
  border: 1.5px solid var(--purple);
}
.sd__ripple--1 { width: 100px; height: 100px; }
.sd__ripple--2 { width: 180px; height: 180px; border-color: var(--coral); }
.sd__ripple--3 { width: 280px; height: 280px; border-color: var(--amber); }
.sd__ripple--4 { width: 380px; height: 380px; border-color: var(--purple); border-width: 1px; }

/* Text stages */
.sd__texts { position: relative; min-height: 200px; }
.sd__step { position: absolute; top: 0; left: 0; right: 0; opacity: 0; }
.sd__step-label { font-size: clamp(11px, .8vw, 14px); font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--amber); margin-bottom: .8rem; padding-left: 1.5rem; position: relative; }
.sd__step-label::before { content: ''; position: absolute; left: 0; top: 50%; width: 1rem; height: 1px; background: var(--amber); }
.sd__step-text { font-size: clamp(14px, 1.05vw, 17px); opacity: .5; line-height: 1.7; max-width: 420px; }

/* ========== CTA ========== */
.v-cta { min-height: 45vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--pad); }
.v-cta__h { font-size: clamp(36px, 6vw, 80px); font-weight: 500; line-height: .9; letter-spacing: -.03em; margin-bottom: .5rem; }
.v-cta__p { font-size: clamp(13px, 1vw, 16px); opacity: .45; margin-bottom: 2rem; }
.v-cta__btn { display: inline-block; background: var(--purple); color: #fff; font-family: RG, sans-serif; font-weight: 600; font-size: clamp(13px, .9vw, 15px); padding: .9rem 2.2rem; border-radius: 2rem; transition: transform .3s, box-shadow .3s; }
.v-cta__btn:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(132,94,247,.3); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .v-sticky-layout { grid-template-columns: 1fr; }
  .v-sticky-layout__fixed { position: relative; top: auto; padding: 2rem 0 0; order: -1; }
  .v-sticky-layout__scroll { padding: 4rem 0; }
  .v-block { min-height: 40vh; }
  .mg-card { max-width: 400px; margin: 0 auto; }
  .sd__split { grid-template-columns: 1fr; }
  .sd__visual { max-width: 300px; }
}
@media (max-width: 480px) {
  .v-logo img { height: 30px; }
  .v-back { font-size: 0; padding: .4rem; }
}
