/* =========================================================================
   IDUX sections — home page blocks and shared marketing sections
   (hero, marquee, constellation, duo, rail, bento, cases, CTA).
   ========================================================================= */

.section-tight { padding-block: clamp(64px, 8vw, 120px); }
.page-top { padding-top: calc(var(--nav-h) + 40px); }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 28px) 0 72px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: clamp(16px, 2.6vh, 26px); }
.hero-title { font-size: clamp(52px, min(8.4vw, 13.5vh), 132px); }
.hero-title em { padding-right: 0.06em; }
.hero-lead { margin-inline: auto; max-width: 54ch; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 13px;
  color: var(--muted-foreground); border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 50%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color 0.2s, border-color 0.2s;
}
.hero-pill b { color: var(--foreground); font-weight: 600; }
.hero-pill:hover { color: var(--foreground); border-color: color-mix(in srgb, var(--foreground) 25%, transparent); }
.hero-pill svg { transition: transform 0.3s var(--ease-out); }
.hero-pill:hover svg { transform: translateX(3px); }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.hero-chips .eyebrow { margin-right: 6px; }
.hero-sources { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--muted-foreground); }
.hero-orbits { position: absolute; left: 50%; top: 56%; width: 0; height: 0; z-index: 0; pointer-events: none; }
.hero-orbits i {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--foreground) 9%, transparent);
  transform: translate(-50%, -50%); animation: spin 120s linear infinite;
}
.hero-orbits i::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--glow-b); box-shadow: 0 0 12px var(--glow-b); }
.hero-orbits i:nth-child(1) { width: 720px; height: 720px; }
.hero-orbits i:nth-child(2) { width: 1060px; height: 1060px; animation-duration: 180s; animation-direction: reverse; }
.hero-orbits i:nth-child(2)::after { background: var(--glow-c); box-shadow: 0 0 12px var(--glow-c); }
.hero-orbits i:nth-child(3) { width: 1420px; height: 1420px; animation-duration: 240s; }
.hero-orbits i:nth-child(3)::after { background: var(--glow-a); box-shadow: 0 0 12px var(--glow-a); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid var(--border); z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--muted-foreground); animation: float-y 1.8s ease-in-out infinite; }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* ---------------- marquee band ---------------- */
.band { border-block: 1px solid var(--hairline); padding: 22px 0; background: color-mix(in srgb, var(--background) 60%, transparent); }
.mq-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 36px; font-family: var(--font-display); font-size: 34px; letter-spacing: -0.01em; white-space: nowrap; color: color-mix(in srgb, var(--foreground) 80%, transparent); }
.mq-item i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.mq-item small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.mq-item.ghost { color: var(--muted-foreground); font-style: italic; }
.mq-item.ghost i { background: none; border: 1px dashed var(--muted-foreground); box-shadow: none; }

/* ---------------- constellation ---------------- */
.constellation { position: relative; height: clamp(460px, 62vh, 640px); margin-top: -12px; touch-action: pan-y; }
.constellation canvas { position: absolute; inset: 0; }
.cg-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 6px; font-size: 12.5px; color: var(--muted-foreground); }
.cg-legend li { display: inline-flex; align-items: center; gap: 8px; }
.cg-legend i { width: 10px; height: 10px; display: inline-block; }
.lg-source { border-radius: 50%; background: var(--glow-a); box-shadow: 0 0 10px var(--glow-a); }
.lg-trainer { border-radius: 50%; border: 1.6px solid var(--glow-b); }
.lg-course { border-radius: 50%; background: var(--glow-b); transform: scale(0.6); }
.lg-award { background: var(--glow-c); transform: rotate(45deg) scale(0.7); }
.lg-ghost { border-radius: 50%; border: 1.2px dashed var(--muted-foreground); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; border-radius: 20px; overflow: hidden; background: var(--border); border: 1px solid var(--border); }
.stat { display: grid; gap: 4px; padding: 28px 24px; background: var(--background); }
.stat b { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.02em; }
.stat span { font-size: 13.5px; color: var(--muted-foreground); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------------- duo (two capabilities) ---------------- */
.duo { display: flex; gap: 16px; }
.duo-card {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); min-height: 560px; border-radius: 28px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 70%, transparent); overflow: hidden; isolation: isolate;
  transition: flex-grow 0.8s var(--ease-out), border-color 0.3s;
}
.duo-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--glow-a) 14%, transparent), transparent 60%);
}
.duo-card:hover { flex-grow: 1.35; border-color: color-mix(in srgb, var(--foreground) 22%, transparent); }
.duo-card:hover::before { opacity: 1; }
.duo-card h3 { max-width: 16ch; }
.duo-card > p { max-width: 46ch; }
.duo-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; font-size: 15px; }
.duo-cta svg { transition: transform 0.35s var(--ease-out); }
a:hover > .duo-cta svg { transform: translateX(4px); }
.duo-visual { position: relative; margin: 8px 0 20px; padding: 18px; border-radius: 18px; border: 1px solid var(--hairline); background: color-mix(in srgb, var(--background) 70%, transparent); }
.ds-q { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); font-size: 14px; margin-bottom: 10px; }
.ds-spark { color: var(--accent); }
.ds-typed { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--accent); animation: typing 4s steps(30) infinite alternate, blink 0.9s steps(1) infinite; max-width: 100%; }
@keyframes typing { 0%, 20% { max-width: 0; } 70%, 100% { max-width: 30ch; } }
.ds-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; animation: fade-up 0.6s var(--ease-out) both; }
.ds-row:nth-child(2) { animation-delay: 0.2s; } .ds-row:nth-child(3) { animation-delay: 0.35s; } .ds-row:nth-child(4) { animation-delay: 0.5s; }
.ds-row:nth-child(2) { background: color-mix(in srgb, var(--foreground) 6%, transparent); }
.ds-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.ds-row b { font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-row em { font-style: normal; font-size: 12px; color: var(--muted-foreground); font-family: var(--font-mono); }
.duo-admin { display: flex; gap: 14px; }
.da-side { display: grid; gap: 10px; align-content: start; padding-right: 14px; border-right: 1px solid var(--hairline); }
.da-side i { width: 22px; height: 22px; border-radius: 7px; background: var(--muted); }
.da-side i.on { background: var(--aurora); }
.da-main { flex: 1; display: grid; gap: 14px; }
.da-top { display: flex; justify-content: space-between; font-size: 13px; }
.da-top span { color: var(--muted-foreground); }
.da-bars { display: flex; align-items: end; gap: 8px; height: 96px; }
.da-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--glow-b), color-mix(in srgb, var(--glow-a) 50%, transparent)); transform-origin: bottom; animation: grow-y 1.2s var(--ease-out) both; }
.da-bars i:nth-child(2n) { animation-delay: 0.1s; } .da-bars i:nth-child(3n) { animation-delay: 0.2s; }
.da-cert { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; }
.da-cert em { font-style: normal; color: #34d399; font-family: var(--font-sans); font-weight: 600; }
@media (max-width: 860px) { .duo { flex-direction: column; } .duo-card { min-height: 0; } .duo-card:hover { flex-grow: 1; } }

/* ---------------- rail ---------------- */
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.rail-head .section-head { margin-bottom: 0; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(16px, calc((100vw - var(--container)) / 2)) 28px; scrollbar-width: none;
  scroll-padding-inline: max(16px, calc((100vw - var(--container)) / 2));
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-foot { display: flex; justify-content: center; }

/* ---------------- bento ---------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.bento-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid var(--border);
}
.bento-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--glow-b) 12%, transparent), transparent 60%); }
.bento-card:hover::before { opacity: 1; }
.bento-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.b-copy { display: grid; gap: 10px; }
.b-video { grid-column: span 2; grid-row: span 2; }
.b-cert, .b-lang { grid-column: span 2; }
.b-gql { grid-column: span 4; flex-direction: row; align-items: center; gap: 32px; }
.b-gql .b-copy { flex: 1; }
.b-cert { flex-direction: row; align-items: center; gap: 24px; }
.b-cert .b-copy { flex: 1; }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } .b-gql { grid-column: span 2; flex-direction: column; align-items: stretch; } .b-cert { flex-direction: column; align-items: stretch; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto !important; grid-row: auto !important; } }

.mock-player { margin-top: auto; display: grid; gap: 12px; }
.mp-screen { position: relative; aspect-ratio: 16 / 8; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--src-iabfm) 45%, transparent), transparent 55%), radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--glow-a) 45%, transparent), transparent 55%), var(--muted); }
.mp-play { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #07070a; font-size: 18px; padding-left: 4px; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.12); transition: transform 0.4s var(--ease-spring); }
.b-video:hover .mp-play { transform: scale(1.1); }
.mp-title { position: absolute; left: 16px; bottom: 14px; font-size: 13px; font-weight: 500; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.mp-bar { height: 4px; border-radius: 4px; background: var(--muted); overflow: hidden; }
.mp-bar i { display: block; width: 38%; height: 100%; background: var(--aurora); transform-origin: left; animation: grow-x 2.4s var(--ease-out) both; }
.mp-list { display: grid; gap: 4px; font-size: 13.5px; }
.mp-list li { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted-foreground); }
.mp-list li::before { content: "○"; }
.mp-list li.done::before { content: "✓"; color: #34d399; }
.mp-list li.now { background: color-mix(in srgb, var(--foreground) 6%, transparent); color: var(--foreground); }
.mp-list li.now::before { content: "▶"; color: var(--accent); font-size: 10px; line-height: 2; }
.mp-list em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; }
.mock-quiz { margin-top: auto; display: grid; gap: 6px; font-size: 13px; }
.mock-quiz p { color: var(--muted-foreground); margin-bottom: 4px; }
.mock-quiz span { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); }
.mock-quiz span.ok { border-color: #34d399; background: color-mix(in srgb, #34d399 12%, transparent); color: var(--foreground); }
.mock-quiz span.ok::after { content: "  ✓"; color: #34d399; }
.mock-receipt { margin-top: auto; display: grid; gap: 8px; font-size: 13px; padding: 14px; border-radius: 12px; border: 1px dashed var(--border); }
.mock-receipt p { display: flex; justify-content: space-between; color: var(--muted-foreground); }
.mock-receipt b { color: var(--foreground); font-weight: 600; }
.mock-receipt .tot { padding-top: 8px; border-top: 1px solid var(--hairline); }
.mock-receipt .tot b { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mock-cert { flex: 1; max-width: 340px; padding: 20px; border-radius: 14px; color: #2b2416; background: linear-gradient(135deg, #fbf7ec, #f1e7cc); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); transform: rotate(-2deg); transition: transform 0.6s var(--ease-out); }
.b-cert:hover .mock-cert { transform: rotate(0deg) scale(1.03); }
.mc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #9c7d25; }
.mc-head b { font-size: 14px; letter-spacing: 0.12em; }
.mc-name { font-family: var(--font-display); font-size: 24px; line-height: 1.1; margin: 18px 0; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; padding-top: 12px; border-top: 1px solid rgba(156, 125, 37, 0.3); }
.mc-foot em { font-style: normal; font-weight: 700; color: #0f8a5f; }
.mock-split { margin-top: auto; display: grid; gap: 10px; }
.mock-split div { height: 12px; border-radius: 6px; background: var(--muted); overflow: hidden; }
.mock-split i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--aurora); transform-origin: left; animation: grow-x 1.6s var(--ease-out) both; }
.mock-split p { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted-foreground); }
.mock-faces { margin-top: auto; display: flex; align-items: center; }
.mock-faces i { display: grid; place-items: center; width: 42px; height: 42px; margin-right: -10px; border-radius: 50%; border: 2px solid var(--card); font-style: normal; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(135deg, hsl(var(--h1) 70% 55%), hsl(var(--h2) 75% 45%)); transition: transform 0.4s var(--ease-spring); }
.b-portal:hover .mock-faces i { transform: translateY(-4px); }
.b-portal:hover .mock-faces i:nth-child(2) { transition-delay: 0.05s; } .b-portal:hover .mock-faces i:nth-child(3) { transition-delay: 0.1s; } .b-portal:hover .mock-faces i:nth-child(4) { transition-delay: 0.15s; }
.mock-faces span { margin-left: 20px; font-size: 13px; color: var(--muted-foreground); }
.lang-big { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: auto; font-family: var(--font-display); font-size: clamp(48px, 5vw, 76px); line-height: 1; }
.lang-big span:nth-child(2) { color: var(--glow-b); } .lang-big span:nth-child(3) { color: var(--glow-c); }
.mock-code { flex: 1.1; margin: 0; padding: 20px 22px; border-radius: 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; background: color-mix(in srgb, var(--background) 80%, transparent); border: 1px solid var(--hairline); color: var(--muted-foreground); }
.mock-code .k { color: var(--glow-a); font-weight: 500; } .mock-code .t { color: var(--glow-b); } .mock-code .r { color: var(--glow-c); } .mock-code .s { color: #34d399; }

/* ---------------- case strip ---------------- */
.case-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 380px; padding: clamp(24px, 3vw, 40px); border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border)); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 60%), color-mix(in srgb, var(--card) 70%, transparent);
  transition: transform 0.6s var(--ease-out), border-color 0.3s;
}
.case-card:hover { transform: translateY(-6px); border-color: var(--c); }
.case-card h3 { font-size: clamp(40px, 4.4vw, 64px); }
.case-status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }
.case-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.case-facts li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--muted-foreground); }
.case-facts b { color: var(--foreground); font-weight: 600; }
@media (max-width: 760px) { .case-strip { grid-template-columns: 1fr; } }

/* ---------------- CTA ---------------- */
.cta { position: relative; padding: clamp(110px, 14vw, 200px) 0; overflow: hidden; text-align: center; -webkit-mask-image: linear-gradient(transparent, #000 140px, #000 calc(100% - 140px), transparent); mask-image: linear-gradient(transparent, #000 140px, #000 calc(100% - 140px), transparent); }
.cta-glow { position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient(from var(--angle), var(--glow-a), var(--glow-b), var(--glow-c), var(--glow-a)); opacity: 0.18; filter: blur(90px); animation: spin-angle 16s linear infinite; z-index: -1; }
.cta-inner { display: grid; justify-items: center; gap: 22px; }
.cta-inner .lead { margin-inline: auto; }
.cta-actions { justify-content: center; margin-top: 10px; }
