:root {
  --studio-blue: #1677ff;
  --studio-blue-dark: #0b2b59;
  --studio-ink: #07090d;
  --studio-muted: #6b7280;
  --studio-soft: #f5f7fb;
  --studio-line: #d8dee8;
  --studio-card: #ffffff;
  --studio-radius: 22px;
  --studio-shadow: 0 22px 70px rgba(15, 23, 42, 0.10);
}

html {
  background: #ffffff;
}

body.studio-apps-page {
  color: var(--studio-ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 119, 255, 0.08), transparent 30rem),
    linear-gradient(180deg, #f7faff 0%, #ffffff 35%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.studio-apps-page::before {
  display: none;
}

.studio-apps-page a {
  color: inherit;
}

.studio-apps-page .announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  color: #6eb2ff;
  background: #0b2a52;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-align: center;
}

.studio-apps-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 14px 42px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.studio-apps-page .brand {
  gap: 11px;
  color: var(--studio-ink);
}

.studio-apps-page .brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: transparent;
  background:
    linear-gradient(90deg, transparent 0 28%, #080b12 28% 44%, transparent 44% 100%),
    linear-gradient(0deg, transparent 0 28%, #080b12 28% 44%, transparent 44% 100%),
    #ffffff;
  border: 0;
  box-shadow: none;
}

.studio-apps-page .brand-mark::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  margin-left: 18px;
  margin-top: 3px;
  background: #080b12;
}

.studio-apps-page .brand-text {
  color: var(--studio-ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.studio-apps-page .site-nav {
  justify-self: center;
  display: flex;
  gap: 31px;
  color: #030712;
  font-size: 14px;
  font-weight: 760;
}

.studio-apps-page .site-nav a {
  opacity: 1;
}

.studio-apps-page .header-actions {
  display: flex;
  gap: 18px;
  color: #111827;
}

.studio-apps-page .header-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #111827;
}

.studio-apps-page .section-shell {
  width: min(100% - 84px, 1280px);
}

.studio-apps-page .studio-hero {
  padding: 24px 0 0;
  text-align: center;
}

.studio-apps-page .hero-kickers {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(74px, 12vw, 140px);
  color: #536173;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.studio-apps-page .studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: #0a0d12;
  font-weight: 840;
}

.studio-apps-page .studio-badge .new-label {
  color: var(--studio-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-apps-page .app-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #05070b;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.studio-apps-page .app-icon::before,
.studio-apps-page .app-icon::after {
  position: absolute;
  content: '';
  background: #fff;
  border-radius: 2px;
}

.studio-apps-page .app-icon::before {
  left: 12px;
  bottom: 12px;
  width: 10px;
  height: 10px;
}

.studio-apps-page .app-icon::after {
  right: 12px;
  top: 12px;
  width: 12px;
  height: 12px;
}

.studio-apps-page h1 {
  max-width: 780px;
  margin: 0 auto;
  color: #05070b;
  font-size: clamp(50px, 6.2vw, 82px);
  line-height: 1.01;
  letter-spacing: -0.075em;
  font-weight: 650;
}

.studio-apps-page h1 span {
  color: #8c939e;
}

.studio-apps-page h1 em,
.studio-apps-page h2 em {
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.studio-apps-page .hero-title::after,
.studio-apps-page .section-heading::before {
  display: none;
}

.studio-apps-page .hero-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: center;
  width: min(100%, 530px);
  margin: 34px auto 72px;
  text-align: left;
}

.studio-apps-page .hero-summary strong {
  display: block;
  margin-bottom: 6px;
  color: #05070b;
  font-size: 15px;
  letter-spacing: -0.025em;
}

.studio-apps-page .hero-summary span {
  color: #545d6b;
  font-size: 14px;
  line-height: 1.58;
}

.studio-apps-page .button {
  border-radius: 9px;
  padding: 15px 29px;
  font-size: 14px;
  font-weight: 820;
  box-shadow: none;
}

.studio-apps-page .button.primary {
  color: #fff;
  border: 0;
  background: var(--studio-blue);
}

.studio-apps-page .button.secondary {
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
}

.studio-apps-page .app-carousel-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 38px;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
}

.studio-apps-page .app-carousel-wrap::-webkit-scrollbar {
  height: 10px;
}

.studio-apps-page .app-carousel-wrap::-webkit-scrollbar-track {
  background: #eef2f7;
  border-radius: 999px;
}

.studio-apps-page .app-carousel-wrap::-webkit-scrollbar-thumb {
  background: #c9d3e2;
  border-radius: 999px;
}

.studio-apps-page .app-carousel-wrap::-webkit-scrollbar-thumb:hover {
  background: #aab7ca;
}

.studio-apps-page .app-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 320px);
  gap: 12px;
  width: max-content;
  min-width: 100%;
  padding: 0 max(24px, calc((100vw - 1240px) / 2)) 0 max(24px, calc((100vw - 1240px) / 2));
}

.studio-apps-page .app-card {
  position: relative;
  display: flex;
  min-height: 400px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px 32px;
  border-radius: 10px;
  color: #fff;
  background: #111827;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.16);
  scroll-snap-align: start;
}

.studio-apps-page .app-card::before {
  position: absolute;
  inset: 0;
  content: '';
  background: var(--card-art, linear-gradient(135deg, #1d4ed8, #111827));
  transform: scale(1.02);
}

.studio-apps-page .app-card::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  content: '';
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.70));
}

.studio-apps-page .app-card > * {
  position: relative;
  z-index: 1;
}

.studio-apps-page .app-card .card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  transform: translate(-50%, -50%);
  background: #05070b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.studio-apps-page .card-icon svg {
  width: 30px;
  height: 30px;
}

.studio-apps-page .app-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.studio-apps-page .app-card p {
  max-width: 230px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.studio-apps-page .card-restore {
  --card-art:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.62), transparent 10rem),
    repeating-radial-gradient(circle at 12% 28%, #bfa6ff 0 9px, #7455d9 10px 18px, #251c56 19px 28px);
}

.studio-apps-page .card-video {
  --card-art:
    radial-gradient(circle at 52% 34%, rgba(255,255,255,0.36), transparent 9rem),
    linear-gradient(160deg, #b7f36a 0%, #579825 28%, #1f5318 49%, #0c2f20 100%);
}

.studio-apps-page .card-denoise {
  --card-art:
    repeating-radial-gradient(circle at 50% 50%, #d8ecff 0 1px, #2e8cff 2px 4px, #063274 5px 7px),
    linear-gradient(135deg, #2ea6ff, #061b55);
}

.studio-apps-page .card-upscale {
  --card-art:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.40), transparent 9rem),
    linear-gradient(150deg, #c8e3ec 0%, #e85b55 45%, #70171f 100%);
}

.studio-apps-page .card-batch {
  --card-art:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,0.28), transparent 8rem),
    linear-gradient(150deg, #182b42 0%, #0d1320 42%, #09090b 100%);
}

.studio-apps-page .section-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.studio-apps-page .eyebrow {
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.studio-apps-page .section-heading h2,
.studio-apps-page .contact-copy h2 {
  color: #05070b;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.studio-apps-page .section-heading h2 span,
.studio-apps-page .contact-copy h2 span {
  color: #05070b;
}

.studio-apps-page .section-heading h2 .muted-line,
.studio-apps-page .contact-copy h2 .muted-line {
  color: #8c939e;
}

.studio-apps-page .section-heading p,
.studio-apps-page .tool-card p,
.studio-apps-page .model-card p,
.studio-apps-page .workflow-card p,
.studio-apps-page .contact p,
.studio-apps-page .pro-note {
  color: var(--studio-muted);
}

.studio-apps-page .tools-section,
.studio-apps-page .models-section,
.studio-apps-page .workflow-section,
.studio-apps-page .contact {
  margin-top: 78px;
}

.studio-apps-page .tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.studio-apps-page .tool-card,
.studio-apps-page .model-card,
.studio-apps-page .workflow-card,
.studio-apps-page .contact {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 20px;
  background: var(--studio-card);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.studio-apps-page .tool-card {
  min-height: 176px;
  padding: 24px;
}

.studio-apps-page .tool-card h3,
.studio-apps-page .model-card h3,
.studio-apps-page .workflow-card h3 {
  margin-top: 0;
  color: #06080d;
  letter-spacing: -0.04em;
}

.studio-apps-page .tool-tag {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f64d9;
  background: #e8f1ff;
  font-size: 12px;
  font-weight: 850;
}

.studio-apps-page .model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.studio-apps-page .model-card {
  padding: 22px;
}

.studio-apps-page .model-card span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--studio-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.studio-apps-page .workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: workflow;
}

.studio-apps-page .workflow-card {
  padding: 24px;
}

.studio-apps-page .workflow-card::before {
  counter-increment: workflow;
  content: '0' counter(workflow);
  display: block;
  margin-bottom: 36px;
  color: var(--studio-blue);
  font-size: 12px;
  font-weight: 900;
}

.studio-apps-page .contact-with-form {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: 44px;
  align-items: start;
  padding: 44px;
}

.studio-apps-page .contact-form {
  border-color: rgba(15, 23, 42, 0.10);
  background: #f8fafc;
  box-shadow: none;
}

.studio-apps-page .contact-form label {
  color: #111827;
}

.studio-apps-page .contact-form input,
.studio-apps-page .contact-form textarea,
.studio-apps-page .contact-form select {
  color: #111827;
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
}

.studio-apps-page .site-footer {
  margin-top: 80px;
  color: #6b7280;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  background: #fff;
}

@media (max-width: 980px) {
  .studio-apps-page .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .studio-apps-page .site-nav {
    justify-self: start;
    overflow-x: auto;
    max-width: 100%;
    gap: 18px;
    padding-bottom: 2px;
  }

  .studio-apps-page .header-actions {
    display: none;
  }

  .studio-apps-page .hero-kickers {
    margin-bottom: 76px;
  }

  .studio-apps-page .tool-grid,
  .studio-apps-page .model-grid,
  .studio-apps-page .workflow-grid,
  .studio-apps-page .contact-with-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .studio-apps-page .announcement-bar {
    font-size: 13px;
  }

  .studio-apps-page .site-header {
    padding: 12px 20px;
  }

  .studio-apps-page .section-shell {
    width: min(100% - 32px, 1280px);
  }

  .studio-apps-page .hero-kickers,
  .studio-apps-page .hero-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .studio-apps-page .hero-kickers {
    align-items: center;
    gap: 10px;
    margin-bottom: 56px;
  }

  .studio-apps-page .hero-summary {
    gap: 20px;
    margin-bottom: 44px;
  }

  .studio-apps-page .app-carousel {
    grid-auto-columns: minmax(250px, 82vw);
    padding-left: 16px;
    padding-right: 16px;
  }

  .studio-apps-page .app-card {
    min-height: 340px;
  }

  .studio-apps-page .tool-grid,
  .studio-apps-page .model-grid,
  .studio-apps-page .workflow-grid,
  .studio-apps-page .contact-with-form {
    grid-template-columns: 1fr;
  }

  .studio-apps-page .contact-with-form {
    padding: 24px;
  }
}
