/* ---------- Features: shared ---------- */

.fx-section { padding: 96px 0 104px; }
.fx-head { text-align: center; margin: 0 auto 48px; max-width: 640px; }
.fx-head .section-title { margin: 0 0 14px; font-size: 34px; letter-spacing: -0.02em; }
.fx-head p { margin: 0; font-size: 17px; line-height: 1.55; color: oklch(0.5 0.01 90); }

.fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: oklch(0.25 0.01 90);
  background: oklch(0.97 0.004 90);
  border: 1px solid oklch(0.92 0.006 90);
  border-radius: 7px;
  padding: 4px 8px;
}
.fx-chip .ar { color: oklch(0.6 0.01 90); font-family: inherit; }
.fx-pro {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3175B5;
  background: oklch(0.955 0.02 250);
  border-radius: 6px;
  padding: 3px 7px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* video frame: a minimal browser-ish panel */
.fx-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid oklch(0.93 0.006 90);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.03);
  line-height: 0;
}
.fx-media video { width: 100%; height: auto; display: block; }

/* ---------- Variant A: bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bento-tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: oklch(0.985 0.003 90);
  border: 1px solid oklch(0.93 0.006 90);
  border-radius: 22px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px oklch(0 0 0 / 0.07); }
.bento-tile.w3 { grid-column: span 3; }
.bento-tile.w4 { grid-column: span 4; }
.bento-tile h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: oklch(0.18 0.01 90); }
.bento-tile p { margin: 0; font-size: 14.5px; line-height: 1.5; color: oklch(0.5 0.01 90); }
.bento-tile .fx-chip { margin-top: 14px; align-self: flex-start; }
.bento-tile .fx-media { margin-top: 20px; }
.bento-tile.w4 .tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.bento-tile.w4 .tile-top .fx-chip { margin-top: 2px; flex: none; }

.bento-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: oklch(0.955 0.012 250); color: #3175B5; margin-bottom: 16px;
}

/* variables mini-demo */
.var-demo { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.var-line { background: #fff; border: 1px solid oklch(0.93 0.006 90); border-radius: 10px; padding: 10px 12px; line-height: 1.5; color: oklch(0.3 0.01 90); }
.var-tag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #3175B5; background: oklch(0.955 0.02 250); border-radius: 5px; padding: 1px 5px; }
.var-arrow { text-align: center; color: oklch(0.65 0.01 90); font-size: 13px; line-height: 1; }
.var-val { background: oklch(0.96 0.05 95); border-radius: 4px; padding: 0 3px; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-tile, .bento-tile.w3, .bento-tile.w4 { grid-column: span 2; }
  .bento-tile.small { grid-column: span 1; }
  .bento-tile.w4 .tile-top { display: block; }
  .bento-tile.w4 .tile-top .fx-chip { margin-top: 14px; }
}
@media (max-width: 560px) {
  .bento-tile.small { grid-column: span 2; }
  .fx-head .section-title { font-size: 28px; }
}

/* ---------- Variant B: sticky scroll tour ---------- */

.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.tour-steps { padding: 18vh 0 0; }   /* no bottom padding: the sticky stage stops at the last step's bottom */
.tour-step {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transition: opacity 0.35s ease;
}
.tour-step.active { opacity: 1; }
.tour-step .num { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: #3175B5; margin-bottom: 10px; }
.tour-step h3 { margin: 0 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: oklch(0.18 0.01 90); }
.tour-step p { margin: 0; font-size: 16px; line-height: 1.55; color: oklch(0.48 0.01 90); max-width: 380px; }
.tour-step .fx-chip { margin-top: 16px; align-self: flex-start; }
.tour-step .fx-media { display: none; }

.tour-stage { position: sticky; top: calc(50vh - 210px); }
.tour-window {
  border-radius: 18px;
  background: #fff;
  border: 1px solid oklch(0.92 0.006 90);
  box-shadow: 0 30px 70px oklch(0 0 0 / 0.10), 0 6px 18px oklch(0 0 0 / 0.05);
  overflow: hidden;
}
.tour-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: oklch(0.975 0.003 90); border-bottom: 1px solid oklch(0.93 0.006 90); }
.tour-bar i { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.88 0.005 90); }
.tour-bar .tour-label { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: oklch(0.5 0.01 90); }
.tour-screen { position: relative; aspect-ratio: 960 / 508; background: #fff; }
.tour-screen video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left top;
  opacity: 0; transition: opacity 0.45s ease;
}
.tour-screen video.on { opacity: 1; }
.tour-progress { display: flex; gap: 6px; margin-top: 18px; justify-content: center; }
.tour-progress span { width: 28px; height: 4px; border-radius: 2px; background: oklch(0.9 0.005 90); transition: background 0.3s ease, width 0.3s ease; }
.tour-progress span.on { background: #3175B5; width: 44px; }
.tour-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.tour-extras .bento-tile { grid-column: auto; }

@media (max-width: 900px) {
  .tour { display: block; }
  .tour-stage { display: none; }
  .tour-steps { padding: 0; }
  .tour-step { min-height: 0; opacity: 1; margin-bottom: 44px; }
  .tour-step .fx-media { display: block; margin-top: 18px; }
  .tour-extras { grid-template-columns: 1fr; }
}

/* ---------- "Make it work your way" (under the tour) ---------- */
.power { margin-top: 120px; }
.power-title { text-align: center; margin: 0 0 36px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: oklch(0.18 0.01 90); }
.power-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.power-card h4 { margin: 22px 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: oklch(0.18 0.01 90); }
.power-card p { margin: 0; font-size: 15px; line-height: 1.55; color: oklch(0.5 0.01 90); }
.pc-visual {
  position: relative; height: 200px; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 0% 0%, oklch(0.95 0.04 250) 0%, transparent 60%),
    radial-gradient(120% 90% at 100% 100%, oklch(0.96 0.03 200) 0%, transparent 55%),
    oklch(0.985 0.004 250);
  border: 1px solid oklch(0.93 0.01 250);
}
.power-card:nth-child(2) .pc-visual { background: radial-gradient(120% 90% at 100% 0%, oklch(0.95 0.04 280) 0%, transparent 60%), radial-gradient(120% 90% at 0% 100%, oklch(0.96 0.03 230) 0%, transparent 55%), oklch(0.985 0.004 260); }
.power-card:nth-child(3) .pc-visual { background: radial-gradient(120% 90% at 50% 0%, oklch(0.96 0.05 95) 0%, transparent 60%), radial-gradient(120% 90% at 100% 100%, oklch(0.96 0.03 250) 0%, transparent 55%), oklch(0.985 0.004 90); }

/* trigger: keycap cycling / ; ! ⌘K */
.pv-trigger .keys { position: relative; width: 150px; height: 74px; }
.pv-trigger .k { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; animation: keyCycle 8s infinite; }
.pv-trigger .k1, .pv-trigger .k2, .pv-trigger .k3 {
  left: 38px; right: 38px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 34px; font-weight: 700; color: oklch(0.2 0.01 90);
  background: #fff; border-radius: 16px;
  box-shadow: 0 0 0 1px oklch(0.9 0.006 90), 0 4px 0 oklch(0.88 0.006 90), 0 10px 22px oklch(0 0 0 / 0.08);
}
.pv-trigger .cap { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: oklch(0.2 0.01 90); background: #fff; border-radius: 15px; box-shadow: 0 0 0 1px oklch(0.9 0.006 90), 0 4px 0 oklch(0.88 0.006 90), 0 10px 22px oklch(0 0 0 / 0.08); }
.pv-trigger .k1 { animation-delay: 0s; } .pv-trigger .k2 { animation-delay: 2s; } .pv-trigger .k3 { animation-delay: 4s; } .pv-trigger .k4 { animation-delay: 6s; }
@keyframes keyCycle {
  0% { opacity: 0; transform: translateY(10px) scale(0.92); }
  4% { opacity: 1; transform: translateY(0) scale(1); }
  10% { transform: translateY(3px) scale(0.97); }
  13% { transform: translateY(0) scale(1); }
  22% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-10px); }
}
.pv-trigger .mode { position: relative; height: 20px; width: 100%; margin-top: 22px; font-size: 13px; font-weight: 600; color: #3175B5; text-align: center; }
.pv-trigger .mode span { position: absolute; left: 0; right: 0; }
.pv-trigger .m1 { animation: modeA 8s infinite; }
.pv-trigger .m2 { animation: modeB 8s infinite; }
@keyframes modeA { 0%, 72% { opacity: 1; } 75%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes modeB { 0%, 72% { opacity: 0; } 75%, 97% { opacity: 1; } 100% { opacity: 0; } }

/* variants: mini palette with a moving highlight */
.pv-variants { flex-direction: row; gap: 8px; padding: 0 14px; }
.pv-variants .pal, .pv-variants .sub { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px oklch(0.92 0.006 90), 0 10px 24px oklch(0 0 0 / 0.08); }
.pv-variants .pal { align-self: flex-start; margin-top: 44px; padding: 6px; }
.pv-variants .pal-row { display: flex; align-items: center; gap: 3px; padding: 7px 9px; border-radius: 8px; background: oklch(0.955 0.02 250); font-size: 13px; font-weight: 600; color: oklch(0.22 0.01 90); white-space: nowrap; }
.pv-variants .slash { color: #3175B5; font-weight: 800; }
.pv-variants .cnt { margin-left: 6px; font-size: 11px; font-weight: 600; color: #3175B5; }
.pv-variants .sub { position: relative; padding: 6px; width: 150px; flex: none; }
.pv-variants .opt { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 6px 10px; height: 38px; box-sizing: border-box; }
.pv-variants .opt span { font-size: 12.5px; font-weight: 700; color: oklch(0.22 0.01 90); }
.pv-variants .opt em { font-style: normal; font-size: 11px; color: oklch(0.55 0.01 90); }
.pv-variants .hl { position: absolute; left: 6px; right: 6px; top: 6px; height: 38px; border-radius: 8px; background: oklch(0.955 0.02 250); animation: hlMove 6s infinite cubic-bezier(.6,0,.3,1); }
@keyframes hlMove { 0%, 26% { transform: translateY(0); } 33%, 59% { transform: translateY(38px); } 66%, 92% { transform: translateY(76px); } 100% { transform: translateY(0); } }

/* variables: {name} → Anna */
.pv-vars .msg { background: #fff; border-radius: 14px; padding: 18px 20px; font-size: 16px; color: oklch(0.25 0.01 90); box-shadow: 0 0 0 1px oklch(0.92 0.006 90), 0 10px 24px oklch(0 0 0 / 0.08); white-space: nowrap; }
.pv-vars .msg { display: grid; }
.pv-vars .msg > span { grid-area: 1 / 1; }
.pv-vars .tok { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: #3175B5; background: oklch(0.955 0.02 250); border-radius: 6px; padding: 1px 6px; }
.pv-vars .val { font-weight: 700; background: oklch(0.95 0.07 95); border-radius: 5px; padding: 0 4px; }
.pv-vars .l1 { animation: tokFade 5s infinite; }
.pv-vars .l2 { animation: valFade 5s infinite; }
@keyframes tokFade { 0%, 40% { opacity: 1; filter: blur(0); } 48%, 92% { opacity: 0; filter: blur(4px); } 100% { opacity: 1; } }
@keyframes valFade { 0%, 42% { opacity: 0; transform: translateY(6px); } 50%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* trust strip */
.trust-strip { position: relative; margin-top: 40px; padding-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
/* short horizontal divider between the cards row and this row */
.trust-strip::before { content: ''; position: absolute; top: 0; left: 50%; width: 64px; height: 1px; margin-left: -32px; background: oklch(0.88 0.006 90); }
.ts-item { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.45; color: oklch(0.58 0.01 90); }
.ts-item svg { flex: none; color: oklch(0.6 0.01 90); }
.ts-item strong { color: oklch(0.45 0.01 90); font-weight: 600; }

@media (max-width: 900px) {
  .power { margin-top: 72px; }
  .power-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-strip { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-trigger .k, .pv-trigger .mode span, .pv-variants .hl, .pv-vars .l1, .pv-vars .l2 { animation: none; }
  .pv-trigger .k1, .pv-trigger .m1, .pv-vars .l2 { opacity: 1; }
  .pv-vars .l1 { opacity: 0; }
}

/* card text padding */
.pc-text { position: relative; padding: 0 25px 0 15px; }
.ts-item { padding: 0 25px 0 15px; }

/* ---------- How it works: steps zoom in/out as the section scrolls by ---------- */
.how-zoom .step-col { will-change: transform; transform-origin: 50% 50%; }

/* ---------- Final CTA ---------- */
.cta2 { padding: 0 32px 96px; }
.cta2-card {
  position: relative; overflow: hidden; max-width: 1080px; margin: 0 auto;
  padding: 72px 32px 64px; border-radius: 28px; text-align: center;
  background: oklch(0.16 0.012 260);
  display: flex; flex-direction: column; align-items: center;
}
.cta2-glow {
  position: absolute; left: 50%; top: -260px; width: 900px; height: 560px; margin-left: -450px; pointer-events: none;
  background: radial-gradient(closest-side, oklch(0.58 0.14 250 / 0.55), oklch(0.5 0.12 250 / 0.18) 55%, transparent);
  filter: blur(10px);
}
.cta2-card > *:not(.cta2-glow) { position: relative; }
.cta2-mark { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 0 0 1.5px oklch(1 0 0 / 0.28), 0 0 40px oklch(0.6 0.14 250 / 0.55); }
.cta2-title { margin: 26px 0 0; font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.cta2-type {
  margin-top: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: oklch(0.72 0.012 260);
}
.cta2-cmd { margin-left: 0.3em; color: #8cb8e8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; font-size: 0.92em; }
.cta2-caret { width: 3px; height: 1.05em; margin-left: 3px; background: #8cb8e8; border-radius: 1px; animation: cta2Blink 1s steps(1) infinite; }
@keyframes cta2Blink { 50% { opacity: 0; } }
.cta2-btn {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; color: oklch(0.16 0.012 260); background: #fff;
  padding: 15px 26px; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 10px 30px oklch(0 0 0 / 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta2-btn:hover { color: oklch(0.16 0.012 260); transform: translateY(-2px); box-shadow: 0 16px 36px oklch(0 0 0 / 0.45); }
.cta2-btn:visited { color: oklch(0.16 0.012 260); }
.cta2-note { margin-top: 16px; font-size: 13.5px; color: oklch(0.62 0.012 260); }
@media (max-width: 760px) {
  .cta2 { padding: 0 20px 64px; }
  .cta2-card { padding: 52px 22px 44px; border-radius: 22px; }
  .cta2-title { font-size: 32px; }
  .cta2-type { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .cta2-caret { animation: none; } }
@media (max-width: 760px) { .fx-section { padding: 56px 0; } }
