:root {
  --thermal-blue: #48b7ff;
  --thermal-orange: #ff7139;
  --thermal-surface: rgba(8, 14, 20, 0.88);
}

.thermal-page {
  min-width: 320px;
}

.thermal-page button,
.thermal-page a {
  -webkit-tap-highlight-color: transparent;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
}

.brand-link .logo {
  letter-spacing: 1.2px;
  overflow-wrap: normal;
  word-break: normal;
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: var(--text-main);
  opacity: 0.18;
}

.brand-version {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  opacity: 0.48;
}

.thermal-controls {
  align-items: center;
}

.thermal-page .lang-item {
  text-decoration: none;
}

.thermal-page .lang-item[aria-current="page"] {
  background: rgba(191, 255, 0, 0.16);
}

.home-link {
  color: var(--text-main);
  text-decoration: none;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  opacity: 0.52;
  transition: opacity 0.2s ease;
}

.home-link:hover,
.home-link:focus-visible {
  opacity: 1;
}

.language-btn {
  min-width: 42px;
  border: 1px solid rgba(127, 127, 127, 0.24);
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  padding: 7px 9px;
  cursor: pointer;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-btn:hover,
.language-btn:focus-visible {
  border-color: var(--accent);
}

.thermal-page-content {
  padding-top: 72px;
}

.thermal-hero {
  min-height: min(900px, 96vh);
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
  padding: clamp(110px, 16vh, 180px) 0 100px;
}

.thermal-hero .hero-content {
  flex-basis: auto;
}

.thermal-hero h1 {
  max-width: 800px;
  font-size: clamp(3.05rem, 7.35vw, 5.25rem);
  overflow-wrap: normal;
  word-break: normal;
}

.thermal-hero p {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

.thermal-hero h1 .gradient-text,
.thermal-hero h1 .hero-line-accent {
  overflow-wrap: normal;
  word-break: normal;
}

.thermal-hero .gradient-text {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text-main);
  -webkit-text-fill-color: currentColor;
  filter: none;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
}

.hero-badge {
  border: 1px solid rgba(127, 127, 127, 0.22);
  border-radius: 999px;
  background: var(--glass-bg);
  padding: 6px 10px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.beta-badge {
  border-color: rgba(191, 255, 0, 0.56);
  color: var(--text-main);
  background: rgba(191, 255, 0, 0.14);
}

.product-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}

.product-action {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  width: min(100%, 220px);
  min-height: 64px;
  padding: 10px 30px 12px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--accent-contrast);
  background: var(--accent);
  box-shadow: 4px 4px 0 var(--hard-shadow);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.product-action.secondary {
  color: var(--text-main);
  background: var(--glass-bg);
  border-color: rgba(127, 127, 127, 0.25);
}

.product-action:hover,
.product-action:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.product-action.primary:hover,
.product-action.primary:focus-visible {
  color: var(--accent);
  background: #111;
}

[data-theme="dark"] .product-action.primary:hover,
[data-theme="dark"] .product-action.primary:focus-visible {
  background: transparent;
  border-color: var(--accent);
}

.product-action.secondary:hover,
.product-action.secondary:focus-visible {
  border-color: var(--accent);
  background: var(--hover-bg);
}

.product-action.is-pending {
  cursor: not-allowed;
}

.action-glyph {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.88rem;
  font-weight: 700;
}

.action-label {
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.action-count {
  position: absolute;
  right: 10px;
  bottom: 7px;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.54rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  opacity: 0.38;
}

.github-action-count {
  display: flex;
  align-items: center;
  gap: 7px;
}

.github-repo-metric {
  white-space: nowrap;
}

.release-proof {
  margin: 14px 0 0 !important;
  color: var(--text-muted) !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.58rem !important;
  line-height: 1.5 !important;
  opacity: 0.72;
}

.release-hash {
  white-space: nowrap;
}

.thermal-visual {
  display: flex;
  justify-content: center;
}

.thermal-core {
  position: relative;
  width: min(100%, 380px);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(127, 127, 127, 0.34);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(9, 14, 20, 0.97), rgba(19, 28, 38, 0.92));
  box-shadow: 12px 12px 0 rgba(23, 23, 23, 0.12), 0 0 60px rgba(72, 183, 255, 0.08);
  color: #f5f7fa;
}

.thermal-core::before,
.thermal-core::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.24;
}

.thermal-core::before {
  top: -60px;
  right: -55px;
  background: var(--thermal-blue);
}

.thermal-core::after {
  bottom: 80px;
  left: -80px;
  background: var(--thermal-orange);
}

.core-topline,
.core-readout {
  position: relative;
  z-index: 2;
}

.core-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.core-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}

.core-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.core-icon-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 315px;
  place-items: center;
  padding: 30px 30px 12px;
}

.core-icon-wrap::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.018), 0 0 0 64px rgba(255, 255, 255, 0.012);
}

.core-icon-picture {
  position: relative;
  display: block;
  width: min(82%, 250px);
}

.core-icon {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24%;
  filter: drop-shadow(0 24px 25px rgba(0, 0, 0, 0.34));
}

.core-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(2, 7, 12, 0.42);
  backdrop-filter: blur(10px);
}

.core-metric {
  min-width: 0;
  padding: 12px 8px;
  text-align: center;
}

.core-metric + .core-metric {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.core-metric span,
.core-metric strong {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
}

.core-metric span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.core-metric strong {
  color: #fff;
  font-size: 0.72rem;
}

.product-section {
  margin: 0 auto 118px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-kicker,
.feature-kicker,
.placeholder-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 17px;
  font-size: clamp(2.3rem, 5vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.showcase-shell {
  overflow: hidden;
  padding: 0;
  border-radius: 20px;
  isolation: isolate;
}

.showcase-viewport {
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
  outline: none;
  touch-action: pan-y;
}

[data-theme="dark"] .showcase-viewport {
  background: #1b1b1b;
}

.showcase-viewport:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.showcase-track {
  display: block;
  direction: ltr;
}

.showcase-slide {
  position: relative;
  display: none;
  width: 100%;
  min-width: 0;
  background: linear-gradient(135deg, rgba(72, 183, 255, 0.035), rgba(255, 113, 57, 0.035));
}

.showcase-slide[aria-hidden="false"] {
  display: block;
}

.showcase-slide > picture {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f7f7f7;
  line-height: 0;
}

[data-theme="dark"] .showcase-slide > picture {
  background: #1b1b1b;
}

.showcase-slide > picture > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(1.018);
  transform-origin: center;
  user-select: none;
}

.screenshot-placeholder {
  position: relative;
  display: flex;
  min-height: clamp(380px, 55vw, 610px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 50px 24px 96px;
  background:
    radial-gradient(circle at 25% 80%, rgba(255, 113, 57, 0.1), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(72, 183, 255, 0.11), transparent 36%);
  text-align: center;
}

.screenshot-placeholder::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(127, 127, 127, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(127, 127, 127, 0.018), 0 0 0 84px rgba(127, 127, 127, 0.012);
}

.placeholder-index,
.screenshot-placeholder strong,
.screenshot-placeholder small,
.screenshot-placeholder .placeholder-kicker {
  position: relative;
  z-index: 1;
}

.placeholder-index {
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: clamp(3.7rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.9;
  opacity: 0.82;
}

.screenshot-placeholder strong {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.screenshot-placeholder small {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.slide-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 13px 18px;
  border-top: 1px solid rgba(127, 127, 127, 0.14);
  background: rgba(127, 127, 127, 0.025);
}

.slide-caption span {
  color: var(--text-muted);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide-caption strong {
  font-size: 0.9rem;
}

.showcase-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(127, 127, 127, 0.14);
}

.showcase-arrow {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(127, 127, 127, 0.22);
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
}

.showcase-arrow:hover,
.showcase-arrow:focus-visible {
  border-color: var(--accent);
  background: var(--hover-bg);
}

.screenshot-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.screenshot-dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.screenshot-dot[aria-current="true"] {
  width: 42px;
  background: var(--accent);
}

.thermal-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.thermal-feature {
  min-height: 290px;
  position: relative;
  overflow: hidden;
}

.thermal-feature::after {
  content: attr(data-index);
  position: absolute;
  right: 18px;
  bottom: -17px;
  color: var(--text-main);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.025;
  pointer-events: none;
}

.feature-glyph {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(127, 127, 127, 0.22);
  border-radius: 14px;
  background: rgba(127, 127, 127, 0.035);
  box-shadow: 4px 4px 0 rgba(23, 23, 23, 0.08);
  color: var(--accent);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.thermal-feature h3 {
  margin: 0 0 13px;
  font-size: 1.45rem;
}

.thermal-feature p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.thermal-faq {
  margin-bottom: 140px;
}

.thermal-faq .faq-header {
  margin-top: 0;
}

.thermal-faq .faq-card {
  padding: 0;
}

.thermal-faq .faq-head {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
}

.thermal-faq .faq-question {
  margin: 0;
}

.thermal-faq .faq-inner p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.thermal-footer .copyright {
  font-weight: 700;
}

.footer-minimal {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-minimal span + span::before {
  content: "·";
  margin-right: 12px;
  opacity: 0.45;
}

html[dir="rtl"] .thermal-hero .hero-content,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .thermal-feature,
html[dir="rtl"] .thermal-faq .faq-head,
html[dir="rtl"] .thermal-faq .faq-inner,
html[dir="rtl"] .slide-caption {
  text-align: right;
}

html[dir="rtl"] .slide-caption {
  direction: rtl;
}

html[dir="rtl"] .action-copy {
  align-items: flex-start;
}

html[dir="rtl"] .core-metric + .core-metric {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0;
}

html[dir="rtl"] .footer-minimal span + span::before {
  margin-right: 0;
  margin-left: 12px;
}

@media (max-width: 900px) {
  .thermal-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 130px;
  }

  .thermal-hero .hero-content {
    max-width: 760px;
  }

  .thermal-visual {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .thermal-page .header-layout .row-layout {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    padding: 8px 12px !important;
  }

  .thermal-page .brand-link {
    min-width: 0;
    flex: 1 1 auto;
  }

  .thermal-page .brand-link .logo {
    font-size: clamp(0.68rem, 3vw, 0.8rem);
    letter-spacing: 0.055em;
    white-space: nowrap;
  }

  .thermal-page .brand-divider,
  .thermal-page .brand-version,
  .thermal-page .home-link {
    display: none;
  }

  .thermal-page .thermal-controls {
    min-width: 0;
    flex: 0 0 auto;
    gap: 3px;
  }

  .thermal-page .lang-btn {
    gap: 5px;
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .thermal-page #theme-btn {
    padding: 7px;
  }

  .thermal-page-content {
    padding-top: 52px;
  }

  .thermal-hero {
    gap: 64px;
    padding: 100px 0 90px;
  }

  .thermal-hero h1 {
    font-size: clamp(2.65rem, 13.4vw, 4.5rem);
  }

  .thermal-hero p {
    font-size: 1.08rem;
  }

  .product-action {
    width: 100%;
  }

  .thermal-core {
    width: 100%;
  }

  .thermal-features {
    grid-template-columns: 1fr;
  }

  .thermal-feature {
    min-height: 0;
  }

  .section-heading {
    text-align: left;
  }

  .thermal-page .showcase-shell {
    width: 100% !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
  }

  .thermal-page .showcase-slide {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
  }

  .screenshot-placeholder {
    min-height: 430px;
  }

  .slide-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .thermal-footer .row-layout {
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .thermal-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.65rem);
  }

  .core-readout {
    margin-right: 10px;
    margin-left: 10px;
  }

  .core-metric {
    padding-right: 4px;
    padding-left: 4px;
  }

  .core-metric strong {
    font-size: 0.62rem;
  }

  .screenshot-placeholder {
    min-height: 380px;
  }

  .showcase-controls {
    grid-template-columns: 38px 1fr 38px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .screenshot-dot {
    width: 14px;
  }

  .screenshot-dot[aria-current="true"] {
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-action {
    transition-duration: 0.01ms;
  }
}
