:root {
  color-scheme: dark;
  --bg: #111317;
  --panel: #1b1e24;
  --panel-2: #242831;
  --panel-3: #2d323d;
  --text: #f5f7fb;
  --muted: #b8bec9;
  --soft: #858d9b;
  --line: #363b46;
  --accent: #49bff3;
  --accent-2: #70d77a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body.is-lightbox-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 44, 68, .52), rgba(17, 19, 23, .2) 34%, rgba(17, 19, 23, 1) 72%),
    #111317;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(17, 19, 23, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transform: translateY(0);
  transition: transform .28s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.top-nav a {
  border-radius: 8px;
  padding: 8px 12px;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 650;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #071219;
}

.button-secondary {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .11);
  color: var(--text);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  /* Wide enough for the headline to set in four lines rather than six. */
  grid-template-columns: minmax(0, .84fr) minmax(520px, 1.16fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  min-height: min(820px, calc(100vh - 60px));
  padding: 46px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 700px;
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  /* Evens out the line lengths instead of leaving one orphan word per line. */
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-text,
.section-heading p,
.showcase-heading p,
.workflow p,
.feature-card p {
  color: var(--muted);
  line-height: 1.58;
}

.hero-text {
  max-width: 620px;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-composition {
  position: relative;
  min-height: clamp(520px, 48vw, 660px);
  margin: 0;
  isolation: isolate;
}

/* Soft glow behind the screenshots. */
.hero-composition::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Stops fade to their own hue at zero alpha. `transparent` is black, and
     fading through it leaves a grey rectangle the size of the element. */
  background:
    radial-gradient(58% 46% at 66% 26%, rgba(73, 191, 243, .2), rgba(73, 191, 243, 0) 72%),
    radial-gradient(42% 36% at 24% 78%, rgba(112, 215, 122, .1), rgba(112, 215, 122, 0) 74%);
}

.hero-layer {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  transition: transform .28s ease, scale .28s ease, border-color .28s ease, box-shadow .28s ease;
}

/* App behind, four widget flyouts fanned along the bottom. The stagger and the
   tilt are what keep them legible; flush and straight they read as one band. */
.hero-layer-main {
  top: 0;
  right: 0;
  width: 90%;
  z-index: 1;
}

.hero-layer-news {
  left: 0;
  bottom: 15%;
  width: 26%;
  z-index: 5;
  transform: rotate(-2deg);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-layer-media {
  left: 25%;
  bottom: 6%;
  width: 26%;
  z-index: 4;
  transform: rotate(-.6deg);
  animation: heroFloatAlt 8s ease-in-out infinite;
}

.hero-layer-weather {
  left: 50%;
  bottom: 13%;
  width: 26%;
  z-index: 3;
  transform: rotate(.8deg);
  animation: heroFloat 9s ease-in-out infinite;
}

.hero-layer-metrics {
  right: 0;
  bottom: 7%;
  width: 27%;
  z-index: 2;
  transform: rotate(2deg);
  animation: heroFloatAlt 10s ease-in-out infinite;
}

/* Hover nudges the stack apart. Each rule repeats its own tilt, or the card
   would snap straight as soon as the pointer arrived. */
.hero-composition:hover .hero-layer-main {
  transform: translateY(-6px);
}

.hero-composition:hover .hero-layer-news {
  transform: translateY(-10px) rotate(-3deg);
}

.hero-composition:hover .hero-layer-media {
  transform: translateY(-6px) rotate(-1.2deg);
}

.hero-composition:hover .hero-layer-weather {
  transform: translateY(-8px) rotate(1.4deg);
}

.hero-composition:hover .hero-layer-metrics {
  transform: translateY(-4px) rotate(3deg);
}

@keyframes heroFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes heroFloatAlt {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 8px;
  }
}

.section {
  padding: 76px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  /* Two across on a desktop, one when it narrows. With four screenshot-led
     cards, a wider card shows the widget; four in a row would squeeze each to
     under 290px and the screenshots would be unreadable. */
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 20px;
}

.feature-card > img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 18px;
  transition: border-color .22s ease, opacity .22s ease;
}

.is-zoomable {
  cursor: pointer;
}

.is-zoomable:hover,
.is-zoomable:focus-visible {
  border-color: rgba(73, 191, 243, .62);
  outline: none;
}

/* Only the hero cards zoom, and the one under the pointer comes to the front.
   The zoom uses `scale` so it does not overwrite the tilt in `transform`. */
.hero-layer.is-zoomable:hover,
.hero-layer.is-zoomable:focus-visible {
  z-index: 6;
  scale: 1.12;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .55);
}

.workflow-section {
  padding-top: 64px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.workflow article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: var(--panel);
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(73, 191, 243, .15);
  color: var(--accent);
  font-weight: 800;
}

.showcase-section {
  padding-top: 70px;
}

.showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

#status {
  margin-bottom: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 340px);
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--soft);
}

.search span {
  font-size: .82rem;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.search input::placeholder {
  color: var(--soft);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}

.category-panel {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: var(--panel);
}

.category-panel h3 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .86rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.category-list {
  display: grid;
  gap: 6px;
}

.category-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.category-button:hover {
  background: var(--panel-2);
  color: var(--text);
}

.category-button.is-active {
  background: var(--panel-3);
  color: var(--text);
}

/* Short accent bar, the way Windows marks a selected item. A full-height edge
   fights the rounded corners and reads as a stray sliver. */
.category-button.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
}

.category-count {
  color: var(--soft);
  font-size: .9rem;
}

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

.widget-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: var(--panel);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.widget-card:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 191, 243, .5);
  background: var(--panel-2);
}

.widget-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.widget-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: #eef6ff;
  padding: 4px;
}

.widget-top h3 {
  margin-bottom: 4px;
}

.publisher,
.summary,
.description {
  color: var(--muted);
}

.publisher,
.description {
  margin-bottom: 0;
}

.summary {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.45;
}

.description {
  line-height: 1.52;
}

.widget-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: .82rem;
}

.store-link {
  min-width: max-content;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(73, 191, 243, .14);
  color: var(--accent);
  font-weight: 700;
}

.store-link:hover {
  background: var(--accent);
  color: #06151f;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s ease, transform .62s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 56px);
  animation: lightboxFade .16s ease both;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 7, 11, .82);
  cursor: zoom-out;
}

.image-lightbox-panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(1180px, 96vw);
  max-height: 90vh;
  margin: 0;
  animation: lightboxLift .2s ease both;
}

.image-lightbox-panel img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .55);
}

.image-lightbox-panel figcaption {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  text-align: center;
}

.image-lightbox-close {
  justify-self: end;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: var(--panel-3);
  outline: none;
}

@keyframes lightboxFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes lightboxLift {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.developer-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.developer-card,
.contact-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: var(--panel);
}

.developer-step,
.contact-card span {
  margin-bottom: 28px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.developer-card p,
.contact-card small {
  color: var(--muted);
  line-height: 1.55;
}

.developer-card p {
  margin-bottom: 24px;
}

.developer-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
}

.developer-card a:hover,
.contact-card:hover strong {
  color: var(--accent);
}

.developer-panel,
.privacy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 18px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: var(--panel);
}

.developer-panel > div:first-child,
.privacy-panel > div:first-child {
  max-width: 720px;
}

.developer-panel p,
.privacy-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.developer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contact-card {
  min-height: 210px;
  color: var(--text);
}

.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card strong {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.privacy-teaser {
  padding-top: 0;
}

.privacy-page {
  max-width: 920px;
  padding: 76px 0;
}

.privacy-page h1 {
  max-width: 820px;
}

.privacy-content {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.privacy-content article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: var(--panel);
}

.privacy-content h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.privacy-content p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand small {
    font-size: .72rem;
  }

  .top-nav {
    display: flex;
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: .92rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .hero-composition {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .hero-composition::before {
    display: none;
  }

  .hero-layer {
    position: static;
    width: 100%;
  }

  .hero-layer-media,
  .hero-layer-metrics {
    display: none;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .developer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .developer-panel,
  .privacy-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .developer-actions {
    justify-content: flex-start;
  }

  .showcase-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .category-panel {
    position: static;
  }

  .category-list {
    display: flex;
    flex-wrap: wrap;
  }

  .category-button {
    width: auto;
  }
}

@media (max-width: 720px) {
  main {
    width: min(100% - 32px, 1180px);
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .widget-grid {
    grid-template-columns: 1fr;
  }

  .widget-bottom,
  .developer-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
