/* SILACOD home V2: UI pass of 2026-11-06. Loaded last, home page only. */

/* Soft gradients already provide the atmosphere; a moving, viewport-sized blur overwhelms integrated GPUs. */
.hero .hero-film .aur { inset: 0; filter: none; animation: none; transform: none; }
nav.top.lg, nav.top.lg::before, nav.top.lg::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html:not([data-theme="light"]) nav.top.lg { background-color: rgba(12,14,44,.94) !important; }

/* The product cutouts sit above the hero atmosphere in their own grid cell. */
.curtain > .hero { overflow: clip; }
html.has-hero-video .hero-film .aur { display: block; }
html .hero .hero-film .aur {
  background: radial-gradient(ellipse at 50% 56%, rgba(88,92,190,.24), transparent 58%),
              radial-gradient(ellipse at 54% 20%, rgba(240,99,67,.12), transparent 48%);
}
html[data-theme].has-hero-video .hero-scrim {
  background: linear-gradient(var(--sd, 90deg), var(--navy99) 8%, transparent 74%),
              linear-gradient(0deg, var(--navy99), transparent 25%);
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: 120px 0 36px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 78px); line-height: 1.14; }
.hero-copy { max-width: 760px; }
.hero-shots {
  position: relative;
  isolation: isolate;
  justify-self: center;
  inline-size: min(100%, 620px, max(390px, calc(100svh - 265px)));
  aspect-ratio: 1;
  pointer-events: none;
}
.hero-shots::before, .hero-shots::after { content: ""; position: absolute; z-index: -1; }
.hero-shots::before {
  inset: -12%;
  background: radial-gradient(ellipse at 43% 48%, rgba(108,117,241,.34), transparent 54%),
              radial-gradient(ellipse at 67% 57%, rgba(240,99,67,.18), transparent 44%);
}
.hero-shots::after {
  inset: 12%;
  border: 1px solid rgba(159,166,255,.18);
  border-radius: 50%;
  transform: rotate(-22deg) scaleY(.8);
}
.hero-product {
  position: absolute;
  inset-inline-start: var(--x);
  inset-block-start: var(--y);
  inline-size: var(--size);
  aspect-ratio: 1;
  translate: -50% -50%;
  animation: hero-product-float var(--float-time, 6s) ease-in-out var(--float-delay, 0s) infinite paused;
}
html[dir="rtl"] .hero-product { translate: 50% -50%; }
.hero-shots.run .hero-product { animation-play-state: running; }
.hero-product[data-slot="top-start"] { --x: 13%; --y: 20%; --size: 23%; --float-time: 6.4s; --float-delay: -2s; }
.hero-product[data-slot="top-end"] { --x: 86%; --y: 15%; --size: 22%; --float-time: 7s; --float-delay: -3s; }
.hero-product[data-slot="edge"] { --x: 91%; --y: 49%; --size: 21%; --float-time: 6.8s; --float-delay: -4s; }
.hero-product[data-slot="bottom-start"] { --x: 12%; --y: 83%; --size: 23%; --float-time: 7.3s; --float-delay: -1s; }
.hero-product[data-slot="bottom-end"] { --x: 86%; --y: 84%; --size: 24%; --float-time: 6.6s; --float-delay: -2.5s; }
.hero-product > img, .hero-shop-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes hero-product-float {
  0%, 100% { transform: translateY(2%) rotate(-1.5deg); }
  50% { transform: translateY(-4%) rotate(1.5deg); }
}
.hero-shop {
  --x: 50%; --y: 50%; --size: 56%;
  z-index: 1;
  aspect-ratio: auto;
  animation: none;
  color: #fbfaff;
  background: linear-gradient(155deg, #20203e, #111229 72%);
  border: 1px solid rgba(191, 190, 249, .36);
  border-radius: clamp(16px, 2vw, 24px);
  box-shadow: 0 24px 64px rgba(2, 3, 16, .48), inset 0 1px rgba(255, 255, 255, .1);
}
.hero-shop-top, .hero-shop-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}
.hero-shop-top { padding: 9px clamp(9px, 1.2vw, 15px); }
.hero-shop-brand { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.hero-shop-brand svg { width: 16px; height: 16px; flex: none; color: #ff9b85; }
.hero-shop-demo {
  padding: 2px 7px;
  border: 1px solid rgba(183, 180, 243, .24);
  border-radius: 999px;
  color: #d5d3f5;
  font-size: 11px;
  line-height: 1.35;
}
.hero-shop-media {
  position: relative;
  isolation: isolate;
  margin-inline: 7px;
  aspect-ratio: 1.25;
  border-radius: clamp(10px, 1.5vw, 17px);
  background: radial-gradient(ellipse at 56% 56%, rgba(122, 118, 221, .26), transparent 67%),
    radial-gradient(ellipse at 28% 30%, rgba(245, 121, 97, .14), transparent 61%), #14152e;
  box-shadow: inset 0 0 0 1px rgba(171, 173, 246, .12);
}
.hero-shop-media > img { animation: hero-shop-float 7.6s ease-in-out infinite paused; }
.hero-shots.run .hero-shop-media > img { animation-play-state: running; }
@keyframes hero-shop-float { 50% { translate: 0 -3%; } }
.hero-shop-content { padding: 10px clamp(9px, 1.2vw, 15px) clamp(9px, 1.2vw, 15px); }
.hero-shop-category { display: block; color: #c0bde8; font-size: 12px; }
.hero-shop-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  min-block-size: 2.4em;
  margin: 1px 0 5px;
  font-size: clamp(14px, 1.5vw, 21px);
}
.hero-shop-line h2 { margin: 0; color: inherit; font-size: inherit; line-height: 1.2; letter-spacing: normal; }
.hero-shop-line bdi { margin-inline-start: auto; color: #ffc1ae; font-size: clamp(12px, 1.1vw, 15px); font-weight: 800; white-space: nowrap; }
.hero-shop-variants:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-block-end: 8px;
  color: #c0bde8;
  font-size: 12px;
  line-height: 1.3;
}
.hero-shop-variants ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-shop-variants li {
  padding: 2px 6px;
  border: 1px solid rgba(191, 190, 249, .26);
  border-radius: 6px;
  background: rgba(186, 179, 250, .08);
  color: #edeaff;
}
.hero-shop-description {
  display: -webkit-box;
  min-block-size: 4.35em;
  margin: 0;
  overflow: hidden;
  color: #d0cdeb;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
#pp[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  #pp { display: none; }
  :is(.hero-product, .hero-shop-media) > img { opacity: 1 !important; filter: none !important; transform: none !important; clip-path: none !important; }
}
@media (max-width: 960px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: clamp(20px, 4vw, 36px);
    padding-top: clamp(104px, 12vw, 120px);
  }
  .hero-copy { max-width: 680px; }
  .hero-shots { inline-size: min(100%, 440px); aspect-ratio: 1.1; }
  html[data-theme].has-hero-video .hero-scrim { background: linear-gradient(180deg, var(--navy99), transparent 58%, var(--navy99)); }
}
@media (max-width: 600px) {
  .hero-shots { aspect-ratio: 1; min-block-size: 355px; }
  .hero-shop { --size: 62%; }
  .hero-product[data-slot="top-start"] { --x: 9%; --y: 17%; --size: 20%; }
  .hero-product[data-slot="top-end"] { --x: 91%; --y: 15%; --size: 20%; }
  .hero-product[data-slot="edge"] { --x: 94%; --size: 18%; }
  .hero-product[data-slot="bottom-start"] { --x: 9%; --y: 85%; --size: 21%; }
  .hero-product[data-slot="bottom-end"] { --x: 91%; --y: 84%; --size: 21%; }
}

/* no text under 12px (the tiny store mock-ups stay as they are: they are pictures of a page) */
.persona small, .dev span, .ptag, .edit-tag, .edit-tag *, .sc-lv-seg button span, .sc-wb em, .ai-pill, .bridge .lbl,
.ob-tags span, .ob-search kbd, .ob-row .u, .d-side .cnt, .me small, .store-b small, .store-b em, .pw-tx b, .pw-tx em, .pw-up,
.app-h small, .k2 small, .spark small, .app-nav span, .m b small, .rowi .chip, .rowi .un { font-size: 12px; }

/* contrast: small white text on orange needs the deeper orange; large buttons keep the logo orange */
.kicker .n, .persona i, .bm.me, .edit-tag, .sc-tabs button[aria-selected="true"], .sc-lv-seg button[aria-checked="true"] { background: #cc4426; border-color: #cc4426; }
html:not([data-theme="light"]) .stp .num { color: #ff8a6b; }
html[data-theme="light"] :is(h2 em, .kicker span:not(.n), .sc-niche) { color: #cc4426; }

/* comfortable taps on phones */
@media (pointer: coarse), (max-width: 900px) {
  footer:not(.sf) a { display: inline-flex; align-items: center; min-height: 44px; }
  #scReload, #scOpen2 { width: 44px; height: 44px; }
}

/* the long label of the speed picker must fit at 12px */
.sc-lv-seg { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, .8fr); gap: 4px; }
.sc-lv-seg button span { letter-spacing: -.03em; }
.sc-lv-seg button { padding-inline: 0; }

/* light theme: the hero stays dark, so its second button must stay glass (it was white text on white) */
html[data-theme="light"].has-hero-video .hero .btn-glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
html[data-theme="light"].has-hero-video .hero .btn-glass:hover { background: rgba(255,255,255,.18); }
