/* Layout details and interaction states for Scena Studio. */

/* Full-bleed architectural studio bands (no floating bubbly 20px pillows) */
.sec[style*="background: #F4F5F6"],
.sec[style*="background: #F7F8F9"],
.sec[style*="background: rgb(244, 245, 246)"],
.sec[style*="background: rgb(247, 248, 249)"],
.sec[style*="background: #17181C"]:not(.foot),
.sec[style*="background: rgb(23, 24, 28)"]:not(.foot) {
  margin: 0 !important;
  border-radius: 0 !important;
  position: relative;
  overflow: hidden;
}

/* The render indicator is part of the demo. Its frame stays in place. */
.fl { position: absolute; z-index: 3; }
.fl > div { border: 1px solid rgb(255 255 255 / 18%) !important; }
.fl-dot { width: 7px; height: 7px; border-radius: 50%; background: #e8462a; flex: 0 0 auto; }
.fl-bar { display: block; height: 100%; border-radius: 2px; width: 4%; background: #d8411c; animation: flbar 6s cubic-bezier(.45,.05,.3,1) infinite; }
@keyframes flbar { 0% { width: 4%; } 68% { width: 100%; background: #d8411c; } 71%, 100% { width: 100%; background: #2E9E6B; } }
.fl-st { display: inline-grid; justify-items: end; font-size: 11px; font-weight: 700; white-space: nowrap; }
.fl-st > span { grid-area: 1 / 1; }
.fl-run { color: #F6B44A; animation: flrun 6s linear infinite; }
.fl-done { color: #67D69E; animation: fldone 6s linear infinite; }
@keyframes flrun { 0%, 69% { opacity: 1; } 71%, 100% { opacity: 0; } }
@keyframes fldone { 0%, 69% { opacity: 0; } 71%, 100% { opacity: 1; } }
.fl-ring { position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid rgba(46, 158, 107, 0.35); pointer-events: none; }

/* Keep video frames stable and use the play control for feedback. */
.gframe { border-radius: 5px !important; }
.gframe:hover { border-color: rgb(255 255 255 / 42%) !important; }
.gframe::before { content: ""; position: absolute; left: 50%; top: 76px; width: 44px; height: 44px; border-radius: 50%; z-index: 4; pointer-events: none;
  background: rgba(11,13,17,0.72); border: 1.5px solid rgba(255,255,255,0.78); opacity: 0.88; transform: translate(-50%, -50%); transition: opacity .22s ease, transform .22s ease, background-color .22s ease, border-color .22s ease; }
.gframe::after { content: ""; position: absolute; left: 50%; top: 76px; width: 12px; height: 14px; z-index: 5; pointer-events: none; background: #FFFFFF;
  clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: 0.94; transform: translate(-35%, -50%); transition: opacity .22s ease, transform .22s ease; }
.gframe:hover::before { opacity: 1 !important; transform: translate(-50%, -50%); background: #D8411C; border-color: #FFFFFF; }
.gframe:hover::after { opacity: 1 !important; transform: translate(-35%, -50%); }
.gframe.is-playing:not(:hover)::before, .gframe.is-playing:not(:hover)::after { opacity: 0 !important; transform: translate(-50%, -50%); }

/* 19 AI Service Rail: unified high-trust studio badge treatment (desaturated until hovered) */
.rail {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.rail > span[aria-hidden="true"] { display: none !important; }
.rail-track > span {
  filter: saturate(0.22) contrast(1.04);
  opacity: 0.84;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.rail-track > span:hover {
  filter: saturate(1) contrast(1);
  opacity: 1;
}

/* Break up Card-Box Monotony with bespoke Studio Hardware treatments per section */
/* Bento Studio Card Architecture — uniform 1px precision borders, zero AI-style thick left/top stripe lines */
[data-block="problems"] > .card {
  border: 1px solid #E2E0D8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}
[data-block="problems"] > .card > div:first-child {
  background: #0E1015 !important;
  border: 1px solid #232730 !important;
  border-radius: 6px !important;
  padding: 0 !important;
  overflow: hidden;
}

/* #guide (8-step workflow): Clean Bento Pipeline Modules (zero border-left stripes, no fake button jump on static cards) */
#guide .card,
#guide--t .card,
#guide--m .card {
  position: relative;
  border: 1px solid #E2E0D8 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
#guide .card:hover,
#guide--t .card:hover,
#guide--m .card:hover {
  border-color: rgba(23, 24, 28, 0.24) !important;
  box-shadow: none !important;
}

/* #testers: Verified Production Telemetry Bento Cards */
.qrow > span {
  border: 1px solid #E2E0D8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Global cleanup of AI-style thick border-left / border-top / dashed callout stripes across inner pages */
.card[style*="border-left: 3px"],
.card[style*="border-left: 4px"],
div[style*="border-left: 4px solid"],
div[style*="border-left: 3px solid"] {
  border: 1px solid #E2E0D8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}
div[style*="border: 1px dashed"] {
  border: 1px solid #E2E0D8 !important;
  border-radius: 8px !important;
  background: #FAF9F6 !important;
}
div[style*="padding-top: 16px; border-top: 2px solid"],
span[style*="padding-top: 16px; border-top: 2px solid"] {
  border-top: 1px solid #DFDDD6 !important;
}

/* Capability Bento cards: Spectrum 2 static container discipline (surface/border focus + subtle inner viewport scale, no fake button jump) */
.cap {
  transition: box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease;
}
.cap:hover {
  border-color: rgba(20, 21, 24, 0.24) !important;
  box-shadow: none !important;
}
.cap > div:first-child svg { transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1); }
.cap:hover > div:first-child svg { transform: scale(1.015); }

/* Adobe Creative Cloud / Spectrum 2 Module Mnemonic Tiles (.cc-tile) & Asymmetric Bento Bricks */
.cc-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px !important;
  background: #101218;
  border: 1.5px solid var(--cc-accent, #FF5A36);
  color: var(--cc-accent, #FF5A36);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  flex: 0 0 auto;
}
.bento-span-2 {
  grid-column: span 2;
}
@media (max-width: 860px) {
  .bento-span-2 {
    grid-column: span 1 !important;
  }
  section[role="region"][aria-label*="Cookie"],
  section[role="region"][aria-label*="cookie"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: calc(100% - 24px) !important;
    padding: 16px 18px !important;
    bottom: 12px !important;
  }
  section[role="region"][aria-label*="Cookie"] div[style*="display: flex"],
  section[role="region"][aria-label*="cookie"] div[style*="display: flex"] {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  section[role="region"][aria-label*="Cookie"] button,
  section[role="region"][aria-label*="cookie"] button {
    flex: 1 1 auto !important;
    min-height: 40px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 13.5px !important;
  }
}
.bento-spotlight {
  background: #171a20 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}
.bento-spotlight:hover {
  border-color: rgba(255, 90, 54, 0.55) !important;
  box-shadow: none !important;
}

/* Adobe Creative Cloud Segmented Billing Pill Switcher */
span[role="group"][aria-label*="Billing"],
span[role="group"][aria-label*="Thanh toán"],
span[role="group"][aria-label*="Chu kỳ"],
span[role="group"][aria-label*="Cách trả"] {
  border-radius: 6px !important;
  padding: 4px !important;
  background: #ECEAE4 !important;
  border: 1px solid rgba(20, 21, 24, 0.08) !important;
}
span[role="group"][aria-label*="Billing"] > button,
span[role="group"][aria-label*="Thanh toán"] > button,
span[role="group"][aria-label*="Chu kỳ"] > button,
span[role="group"][aria-label*="Cách trả"] > button {
  border-radius: 6px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Feature Sub-Pages: Scientific Bento Workflow Grid & Technical Parameter Matrix */
ol.feat-steps-bento {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 18px !important;
  padding: 0 !important;
  list-style: none !important;
}
@media (max-width: 720px) {
  ol.feat-steps-bento {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
ol.feat-steps-bento > li {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(20, 21, 24, 0.09) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}
ol.feat-steps-bento > li > span.mono:first-child {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  background: #12151C !important;
  color: #FF6B4A !important;
  border: 1px solid rgba(255, 107, 74, 0.3) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}
dl.feat-spec-table {
  margin-top: 18px !important;
  padding: 6px 20px !important;
  border: 1px solid rgba(20, 21, 24, 0.09) !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
}
dl.feat-spec-table > div:first-child {
  border-top: 0 !important;
}
dl.feat-spec-table dt {
  display: inline-flex !important;
  align-items: center !important;
  align-self: start !important;
  width: fit-content !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  background: #F4F3EE !important;
  border: 1px solid #E2E0D8 !important;
  font-family: 'JetBrains Mono', Consolas, 'SF Mono', ui-monospace, monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #17181C !important;
}

@media (prefers-reduced-motion: reduce) {
  .reel, .fl, .fl > div, .fl-dot, .fl-bar, .fl-run, .fl-done, .fl-ring, .plan { animation: none !important; }
  .fl-bar { width: 100%; background: #2E9E6B; } .fl-run { opacity: 0; } .fl-done { opacity: 1; }
  .gframe:hover { transform: none !important; }
}

/* Language picker uses the same surface and row treatment as navigation. */
.scena-lang-wrap { position: relative; display: inline-flex; align-items: center; vertical-align: middle; }
.scena-lang-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 34px; padding: 0 8px; border-radius: 4px; cursor: pointer;
  font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1;
  transition: border-color .15s ease, background-color .15s ease;
  white-space: nowrap; user-select: none;
}
.scena-lang-btn.is-dark {
  background: rgba(31, 34, 41, 0.92); color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.scena-lang-btn.is-dark:hover { border-color: rgba(255, 255, 255, 0.48); background: rgba(43, 47, 56, 0.98); }
.scena-lang-btn.is-light {
  background: #FFFFFF; color: #17181C;
  border: 1px solid #DCDDE0;
}
.scena-lang-btn.is-light:hover { border-color: #9DA3AE; background: #F7F8F9; }
.scena-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 9999;
  display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  box-sizing: border-box;
  width: min(280px, 100vw - 16px); max-height: calc(100dvh - 90px);
  overflow: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 6px;
  background: #fff; border: 1px solid #dedbd3;
  box-shadow: 0 10px 26px -16px rgb(23 24 28 / 28%);
}
.scena-lang-menu.is-open { display: grid; }
.scena-lang-opt {
  display: flex; align-items: center; gap: 6px; width: 100%;
  min-height: 38px; padding: 5px 7px; border: none; border-radius: 3px; background: transparent;
  color: #232529; font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  font-size: 12.5px; font-weight: 550; text-align: left; cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.scena-lang-opt:hover { background: #f5f4f0; }
.scena-lang-opt.is-active { background: #f4e9e0; color: #962c17; font-weight: 700; }
.scena-lang-opt:focus-visible { outline-offset: -2px !important; }
.scena-lang-code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 16px;
  color: #5b5c64;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em; flex: 0 0 auto;
}
.scena-lang-opt.is-active .scena-lang-code { color: inherit; }

@media (pointer: coarse) {
  .scena-lang-btn, .scena-lang-opt { min-height: 44px; }
}

/* Hide any Google Translate banner/frame when neural page translation is active */
iframe.goog-te-banner-frame, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .skiptranslate > iframe, #scena-gt-mount {
  display: none !important; visibility: hidden !important; height: 0 !important;
}
body { top: 0px !important; position: static !important; }
font { background-color: transparent !important; box-shadow: none !important; }

.cap-media {
  position: relative;
  overflow: hidden;
}

input[type="text"], input[type="email"], input[type="search"], textarea, select {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #D8411C !important;
  box-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .cap-media img, .cap, .plan, a.cap-media { transition: none !important; transform: none !important; }
}

/* Use the same accent for pointer and keyboard feedback. */
.mnav-top > span {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0 1px;
}

.mnav-top:focus-visible > span,
.mnav-top[aria-expanded="true"] > span {
  background-size: 100% 1px;
}

@media (hover: hover) and (pointer: fine) {
  .mnav-top:hover > span { background-size: 100% 1px; }
}

@media (prefers-reduced-motion: no-preference) {
  .mnav-top > span { transition: background-size 180ms ease-out; }
}

@media (prefers-reduced-motion: reduce) {
  .gframe > span:first-child > :is(img, video) { transition: none; transform: none !important; }
}
