/* Shared SiMa revamp adjunct styles (all landing pages). */

#sima-revamp {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Shared hero H1 scale (SWv2 / brand home / hardware) */
.sima-revamp-hero-h1,
#sima-revamp .clone-hero-h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
}

/* Scroll-reveal */
.sr {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.sr.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.22s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Outlined card grids — neutral shell when colored outlines are off */
#sima-revamp .industry-card--plain {
  border: 1px solid #e5e5ea;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.log-fade {
  background: linear-gradient(to top, #F9FAFB 0%, transparent 100%);
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0px transparent; }
  50%       { box-shadow: 0 0 14px 3px var(--glow-color, #5998DD55); }
}
.glow-pulse {
  animation: glow-pulse 1s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}
.dot-pulse {
  animation: dot-pulse 1.6s ease-in-out infinite;
}

.log-scroll-wrap {
  overflow: hidden;
  position: relative;
}

.cta-input:focus {
  border-color: #2A9C4F;
  outline: none;
}

/* Primary nav — DevKit buy pill (after last menu item) */
@media (min-width: 768px) {
  header .menu-main-menu-container > ul {
    align-items: center;
  }

  header .menu-item-devkit-cta {
    display: flex;
    align-items: center;
    align-self: center;
    padding: 0 0 0 4px;
    margin-bottom: 0;
  }
}

header .menu-main-menu-container li.menu-item-devkit-cta > a.sima-nav-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 1.15rem !important;
  border: 0 !important;
  border-bottom: none !important;
  border-radius: 9999px;
  background: #5998DD;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease;
  box-sizing: border-box;
}

header .menu-main-menu-container li.menu-item-devkit-cta:hover > a.sima-nav-buy-btn,
header .sima-nav-buy-btn:hover {
  filter: brightness(1.08);
  color: #fff !important;
  border-bottom: none !important;
  padding-bottom: 0.4rem !important;
}

@media (max-width: 767px) {
  header .menu-main-menu-container > ul {
    align-items: stretch;
  }

  header .menu-main-menu-container > ul > li.menu-item-devkit-cta {
    align-self: stretch;
    width: 100%;
    margin-top: 0;
    padding: 16px 0 0;
    background: none !important;
    border-bottom: none !important;
  }

  header .menu-main-menu-container li.menu-item-devkit-cta > a.sima-nav-buy-btn {
    width: fit-content;
    min-height: 44px;
    padding: 0.55rem 1.35rem !important;
    font-size: 18px;
    font-weight: 500;
  }
}

#sima-revamp a.iec-big-cta {
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}
#sima-revamp a.iec-big-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}
#sima-revamp a.iec-big-cta:active {
  filter: brightness(1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
#sima-revamp a.iec-big-cta .iec-big-cta-arrow {
  transition: transform 0.2s ease;
}
#sima-revamp a.iec-big-cta:hover .iec-big-cta-arrow {
  transform: translateX(4px);
}

#sima-revamp .iec-form-cta {
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}
#sima-revamp .iec-form-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}
#sima-revamp .iec-form-cta:active {
  filter: brightness(1);
  box-shadow: none;
  transform: translateY(0);
}
#sima-revamp .iec-form-cta .iec-form-cta-arrow {
  transition: transform 0.2s ease;
}
#sima-revamp .iec-form-cta:hover .iec-form-cta-arrow {
  transform: translateX(3px);
}

/* Global revamp announcement bar (theme options + page toggle) */
:root {
  --announcement-bar-height: 36px;
  --revamp-header-height: 5rem;
}

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--announcement-bar-height);
  padding: 8px 22px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.announcement-bar__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.announcement-bar__headline {
  font-family: "Denim", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #0b1220;
}

.announcement-bar__separator {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.announcement-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Denim", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #5998dd;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.announcement-bar__link--brand-blue {
  color: #5998dd;
}

.announcement-bar__link--dark-green {
  color: #2a9c4f;
}

.announcement-bar__link:hover {
  opacity: 0.85;
}

body.sima-has-announcement-bar > header.fixed,
body.sima-has-announcement-bar .announcement-bar + header {
  top: var(--announcement-bar-height) !important;
}

body.sima-has-announcement-bar .palette-revamp-main,
body.sima-has-announcement-bar .site-main.pt-20 {
  padding-top: calc(5rem + var(--announcement-bar-height)) !important;
}

@media (max-width: 767px) {
  .announcement-bar {
    padding: 8px 16px;
  }

  .announcement-bar__content {
    gap: 4px 8px;
  }

  .announcement-bar__headline,
  .announcement-bar__link {
    font-size: 12px;
  }

  body.sima-has-announcement-bar .main-nav .nav-menu {
    top: calc(80px + var(--announcement-bar-height));
  }
}

#cet-desc-panel::-webkit-scrollbar,
#cet-code-panel::-webkit-scrollbar,
#cet2-desc-panel::-webkit-scrollbar,
#cet2-code-panel::-webkit-scrollbar {
  width: 5px;
}
#cet-desc-panel::-webkit-scrollbar-track,
#cet-code-panel::-webkit-scrollbar-track,
#cet2-desc-panel::-webkit-scrollbar-track,
#cet2-code-panel::-webkit-scrollbar-track {
  background: transparent;
}
#cet-desc-panel::-webkit-scrollbar-thumb,
#cet-code-panel::-webkit-scrollbar-thumb,
#cet2-desc-panel::-webkit-scrollbar-thumb,
#cet2-code-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
#cet-desc-panel::-webkit-scrollbar-thumb:hover,
#cet-code-panel::-webkit-scrollbar-thumb:hover,
#cet2-desc-panel::-webkit-scrollbar-thumb:hover,
#cet2-code-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}
#cet-desc-panel,
#cet-code-panel,
#cet2-desc-panel,
#cet2-code-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

/* Palette Neat VS Code mockup (hero + IDE demo block) */
.vsc-body { height: 600px; }
@media (max-width: 767px) {
  .vsc-body    { flex-direction: column; height: auto; }
  .vsc-sidebar { display: none; }
  .vsc-code    { width: 100% !important; height: 280px; border-right: none; }
  .vsc-right   { height: 260px; }
}
.vsc-agent-status {
  font-size: 10px;
  color: #9089B5;
  font-family: ui-monospace, monospace;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.8;
}
.vsc-agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #A4CC2D;
  display: inline-block;
  flex-shrink: 0;
}
.vsc-codex-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  background: #161b22;
  flex-shrink: 0;
}
.vsc-codex-input {
  border: 1px solid rgba(144, 137, 181, 0.28);
  border-radius: 6px;
  background: #0d1117;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 52px;
}
.vsc-codex-placeholder {
  flex: 1;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  color: #3d4451;
  line-height: 1.5;
  pointer-events: none;
  user-select: none;
}
.vsc-codex-send {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: rgba(89, 152, 221, 0.12);
  border: 1px solid rgba(89, 152, 221, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5998DD;
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.5;
}
.vsc-codex-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 0 2px;
}
.vsc-codex-attach {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #4b5563;
  flex-shrink: 0;
  line-height: 1;
}
.vsc-codex-mode {
  font-size: 10px;
  color: #6e7681;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vsc-codex-mode-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #A4CC2D;
  display: inline-block;
  flex-shrink: 0;
}
.vsc-codex-label { font-size: 10px; color: #6e7681; }
.vsc-codex-hint {
  font-size: 10px;
  color: #9089B5;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.8;
}
.vsc-statusbar {
  height: 22px;
  background: #5998DD;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  overflow: hidden;
}
.vsc-statusbar-logo { height: 13px; width: auto; display: block; flex-shrink: 0; }
.vsc-statusbar-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.vsc-statusbar-counters {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .vsc-statusbar-text,
  .vsc-statusbar-counters { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .vsc-body    { height: 500px; }
  .vsc-sidebar { display: none; }
  .vsc-code    { width: 55% !important; }
  .vsc-right   { width: 45%; }
}

/* Bento play icon (shared — homepage bento + SWv2 Palette Neat eyebrow) */
.sima-bento-play-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.sima-bento-play-icon__svg {
  display: block;
}

/* SWv2 Palette Neat — section shell */
.swv2-pn-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(11, 18, 32, 0.03) 0%,
    rgba(11, 18, 32, 0.012) 35%,
    transparent 100%
  );
}

/* SWv2 Palette Neat — video demo cards */
.swv2-pn-demo-media {
  background: #fff;
}
.swv2-pn-demo-mount {
  overflow: hidden;
}
.swv2-pn-step-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #A4CC2D;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
}
.swv2-pn-demo-iframe {
  border: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 103%;
  height: 103%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.swv2-pn-demo-poster {
  transition: opacity 0.35s ease;
}
.swv2-pn-demo-poster--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Revamp video modal (hardware + SWv2 YouTube) */
.hw-card {
  background: #fff;
  border: 1.5px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 1px 4px rgba(11, 18, 32, 0.06), 0 4px 16px rgba(11, 18, 32, 0.04);
}
.hw-video-modal {
  display: none;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.revamp-youtube-modal__iframe {
  border: 0;
  display: block;
}
.swv2-pn-video-trigger:focus-visible {
  outline: 2px solid #5998DD;
  outline-offset: 4px;
  border-radius: 12px;
}
.swv2-pn-demo-media--poster .swv2-pn-demo-poster {
  transition: transform 0.25s ease;
}
.swv2-pn-video-trigger:hover .swv2-pn-demo-media--poster .swv2-pn-demo-poster,
.swv2-pn-video-trigger:focus-visible .swv2-pn-demo-media--poster .swv2-pn-demo-poster {
  transform: scale(1.02);
}
.swv2-pn-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 18, 32, 0.08);
  transition: background 0.25s ease;
}
.swv2-pn-video-trigger:hover .swv2-pn-play-overlay,
.swv2-pn-video-trigger:focus-visible .swv2-pn-play-overlay {
  background: rgba(11, 18, 32, 0.14);
}
.swv2-pn-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  color: #5998DD;
  box-shadow: 0 4px 20px rgba(11, 18, 32, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.swv2-pn-play-btn .sima-bento-play-icon__svg {
  width: 14px;
  height: 16px;
  margin-left: 2px;
}
.swv2-pn-video-trigger:hover .swv2-pn-play-btn,
.swv2-pn-video-trigger:focus-visible .swv2-pn-play-btn {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(11, 18, 32, 0.18);
}
