/* Syailendra AI — round 3: Geist typography, icons, imagery, interactive motion.
   Loaded after syai-refined-20261003.css and syai-icons-20261003.css. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300..800&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --rf-serif: "Geist", "Plus Jakarta Sans", system-ui, sans-serif;
  --rf-sans: "Geist", "Plus Jakarta Sans", system-ui, sans-serif;
  --rf-mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
html body, html body button, html body input, html body select { font-family: var(--rf-sans); }
html body .hero h1,
html body .subhero h1,
html body .form-intro h1 { font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
html body .hero h1 { font-size: clamp(44px, 4.8vw, 70px); }
html body .syai-section-title h3,
html body .syai-stream__heading h3,
html body .syai-recruitment h3,
html body .template-auto h3,
html body .template-robot h3,
html body .syai-company-intro h3,
html body .syai-hero h2,
html body .section-title h2,
html body .detail-grid h2,
html body .company-about h2,
html body .leadership__head h2,
html body .sub-cta h2,
html body .direct-contact h2,
html body .contact-primary h2,
html body .form-panel h2,
html body .template-fund-grid h4,
html body .syai-cases header h4,
html body .leadership-grid h3,
html body .template-company-facts strong { font-weight: 600; letter-spacing: -.035em; }
html body .syai-conclusion { font-weight: 500; letter-spacing: -.02em; }
html body .template-fund-grid h4 { font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.02em; }
html body .template-service-grid h4, html body .template-stock-grid h4,
html body .syai-flow-grid h4, html body .syai-advantages h4, html body .detail-points h3 { font-weight: 600; letter-spacing: -.02em; }
html body .syai-kicker, html body .hero .eyebrow, html body .subhero .eyebrow { letter-spacing: .16em; }
/* soft sheen on display headings */
html body .syai-section-title h3,
html body .syai-stream__heading h3,
html body .syai-hero h2,
html body .syai-recruitment h3,
html body .section-title h2,
html body .detail-grid h2,
html body .sub-cta h2 {
  background: linear-gradient(180deg, #ffffff 25%, #b9c4d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Icon tiles (icons come from syai-icons via --rf-ic) ---------- */
html body .template-service-grid article::after,
html body .template-stock-grid article::after,
html body .syai-flow-grid article::after,
html body .syai-advantages article::after,
html body .detail-points article::after,
html body .template-company-facts > div::after,
html body .syai-cases article header::after {
  content: "";
  display: block;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rf-ic) center / 22px no-repeat, linear-gradient(145deg, rgba(125, 180, 255, .16), rgba(125, 180, 255, .04));
  border: 1px solid rgba(125, 180, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .5s var(--rf-ease), border-color .3s, box-shadow .3s;
}
html body .template-company-facts > div,
html body .syai-cases article header,
html body .detail-points article { position: relative; }
html body .template-company-facts > div::after { top: 50%; right: 28px; margin-top: -22px; }
html body .template-service-grid article:hover::after,
html body .template-stock-grid article:hover::after,
html body .syai-flow-grid article:hover::after,
html body .syai-advantages article:hover::after,
html body .detail-points article:hover::after {
  transform: translateY(-2px) rotate(-6deg) scale(1.06);
  border-color: rgba(125, 180, 255, .5);
  box-shadow: 0 10px 24px -10px rgba(125, 180, 255, .6);
}
html body .syai-flow-grid h4, html body .syai-advantages h4,
html body .template-stock-grid h4, html body .detail-points h3 { padding-right: 52px; }
html body .syai-recruitment li { padding-left: 52px; }
html body .syai-recruitment li::before,
html body .syai-recruitment li:nth-child(2)::before {
  content: "";
  width: 28px;
  height: 28px;
  margin-top: -14px;
  left: 12px;
  border-radius: 8px;
  background: var(--rf-ic) center / 16px no-repeat, rgba(255, 138, 92, .12);
  border: 1px solid rgba(255, 138, 92, .3);
}

/* ---------- Service cards: animated mini visuals (injected by syai-fx.js) ---------- */
html body .template-service-grid article { padding-top: 0; }
.rf-viz {
  position: relative;
  height: 132px;
  margin: 0 -22px 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--rf-line);
  background: radial-gradient(circle at 70% 30%, rgba(125, 180, 255, .12), transparent 60%), rgba(255, 255, 255, .015);
}
.rf-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
html body .template-service-grid article::after { top: 150px; }
.rf-viz .ring { transform-origin: 70px 66px; animation: rf-ring-spin 16s linear infinite; }
.rf-viz .seg { animation: rf-dash 3.6s var(--rf-ease) infinite alternate; }
.rf-viz .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: rf-bar 2.6s ease-in-out infinite alternate; }
.rf-viz .bar:nth-child(2n) { animation-delay: .4s; }
.rf-viz .bar:nth-child(3n) { animation-delay: .8s; }
.rf-viz .line { fill: none; stroke: #ff8a5c; stroke-width: 2; stroke-dasharray: 420; stroke-dashoffset: 420; animation: rf-draw 3.4s var(--rf-ease) infinite; }
.rf-viz .dot { animation: rf-dot 3s ease-in-out infinite; }
.rf-viz .dot:nth-child(3n) { animation-delay: 1s; }
.rf-viz .dot:nth-child(4n) { animation-delay: 2s; }
.rf-viz .scanline { animation: rf-scan 3.4s ease-in-out infinite alternate; }
@keyframes rf-ring-spin { to { transform: rotate(360deg); } }
@keyframes rf-dash { from { stroke-dasharray: 30 400; } to { stroke-dasharray: 130 400; } }
@keyframes rf-bar { from { transform: scaleY(.5); } to { transform: scaleY(1); } }
@keyframes rf-draw { 0% { stroke-dashoffset: 420; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes rf-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes rf-scan { from { transform: translateX(0); } to { transform: translateX(240px); } }

/* ---------- 3D renders as decorative imagery ---------- */
@media (min-width: 1001px) {
  html body .syai-subsection .syai-section-title { position: relative; }
  html body .syai-subsection:has(.syai-advantages) .syai-section-title::after,
  html body .syai-subsection:has(.syai-cases) .syai-section-title::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: -30px;
    width: 210px;
    height: 210px;
    background: url("/feature-risk.webp") center / contain no-repeat;
    mix-blend-mode: lighten;
    animation: rf-float 6s ease-in-out infinite;
    pointer-events: none;
  }
  html body .syai-subsection:has(.syai-cases) .syai-section-title::after { background-image: url("/feature-consistency.webp"); width: 230px; height: 230px; bottom: -44px; }
  html body .syai-recruitment > * { z-index: 1; }
  html body .syai-recruitment::after {
    content: "";
    position: absolute;
    left: 36%;
    bottom: -70px;
    width: 280px;
    height: 280px;
    background: url("/feature-explanation.webp") center / contain no-repeat;
    mix-blend-mode: lighten;
    opacity: .85;
    animation: rf-float 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }
}
@keyframes rf-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(2deg); } }

/* ---------- Heading wipe-in when its block reveals ---------- */
[data-rf] h2, [data-rf] h3 { transition: clip-path 1.1s var(--rf-ease), transform 1.1s var(--rf-ease); }
[data-rf="wait"] h2, [data-rf="wait"] h3 { clip-path: inset(0 0 100% 0); transform: translateY(18px); }
[data-rf="in"] h2, [data-rf="in"] h3 { clip-path: inset(-10% -10% -25% -10%); transform: none; }

/* ---------- Flow line: travelling pulse on the arrows ---------- */
html body .syai-flow-line > *:nth-child(even) { animation: rf-arrow 2.4s ease-in-out infinite; }
html body .syai-flow-line > *:nth-child(4) { animation-delay: .4s; }
html body .syai-flow-line > *:nth-child(6) { animation-delay: .8s; }
html body .syai-flow-line > *:nth-child(8) { animation-delay: 1.2s; }
@keyframes rf-arrow { 0%, 100% { opacity: .35; transform: translateX(0); } 50% { opacity: 1; transform: translateX(4px); } }

/* ---------- Keyword marquee (injected after the hero) ---------- */
.rf-marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--rf-line);
  border-bottom: 1px solid var(--rf-line);
  background: rgba(255, 255, 255, .02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rf-marquee__track { display: flex; width: max-content; gap: 44px; animation: rf-marquee 40s linear infinite; }
.rf-marquee:hover .rf-marquee__track { animation-play-state: paused; }
.rf-marquee__item { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--rf-soft); white-space: nowrap; }
.rf-marquee__item i { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--rf-ic) center / 15px no-repeat, rgba(125, 180, 255, .1); border: 1px solid rgba(125, 180, 255, .2); }
@keyframes rf-marquee { to { transform: translateX(-50%); } }

/* ---------- Hero interactive network canvas ---------- */
.rf-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
html body .hero__content, html body .subhero__content, html body .scroll-cue { position: relative; z-index: 2; }
html body .scroll-cue { position: absolute; }

/* ---------- Cursor light ---------- */
.rf-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(125, 180, 255, .075), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  will-change: transform;
}
html.rf-has-cursor .rf-cursor { opacity: 1; }

/* ---------- Card tilt (inline transform from syai-fx.js) ---------- */
html body .rf-tilt { will-change: transform; transition: transform .2s ease-out, border-color .3s; }

@media (prefers-reduced-motion: reduce) {
  .rf-marquee__track, .rf-viz * { animation: none !important; }
  .rf-net, .rf-cursor { display: none; }
}
@media (max-width: 760px) {
  .rf-marquee { padding: 12px 0; }
  .rf-marquee__item { font-size: 13px; }
  .rf-viz { height: 110px; margin-left: -18px; margin-right: -18px; }
  html body .template-service-grid article::after { top: 128px; }
  html body .template-company-facts > div::after { right: 0; }
}

/* fixes */
html body .scroll-cue { display: none; }
html body .syai-recruitment::after { display: none !important; }
html body .syai-section-title::after {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
}

/* subpage detail column: 3D render under the intro copy */
@media (min-width: 1001px) {
  html body .detail-grid > div:first-child::after {
    content: "";
    display: block;
    width: 220px;
    height: 220px;
    margin-top: 28px;
    background: url("/feature-consistency.webp") center / contain no-repeat;
    -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 71%);
    mask-image: radial-gradient(circle, #000 52%, transparent 71%);
    animation: rf-float 6s ease-in-out infinite;
  }
  html[data-rf-page="/tools/signals"] body .detail-grid > div:first-child::after,
  html[data-rf-page="/tools/news"] body .detail-grid > div:first-child::after,
  html[data-rf-page="/tools/daily-intel"] body .detail-grid > div:first-child::after,
  html[data-rf-page="/platforms"] body .detail-grid > div:first-child::after { background-image: url("/feature-explanation.webp"); }
  html[data-rf-page="/tools/ipo"] body .detail-grid > div:first-child::after,
  html[data-rf-page="/tools/post-ipo"] body .detail-grid > div:first-child::after,
  html[data-rf-page="/tools/institutional-discount"] body .detail-grid > div:first-child::after,
  html[data-rf-page="/tools/calendar"] body .detail-grid > div:first-child::after,
  html[data-rf-page="/why-syailendra"] body .detail-grid > div:first-child::after { background-image: url("/feature-risk.webp"); }
}
