/* Studio homepage (gate + in-app Home) and shop unlock strip. */

.customer-gate.studio-home-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100dvh;
  overflow: auto;
  padding: 28px 20px 40px;
  background: var(--dd-bg-gradient, #060a18);
  backdrop-filter: none;
}

.studio-home-gate .customer-gate-card {
  display: none;
}

.studio-home-gate-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.studio-home-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.studio-home-blob--a {
  width: 42vw;
  height: 42vw;
  top: -12%;
  left: -8%;
  background: rgba(131, 100, 199, 0.35);
}

.studio-home-blob--b {
  width: 36vw;
  height: 36vw;
  top: 10%;
  right: -10%;
  background: rgba(14, 44, 120, 0.45);
}

.studio-home-blob--c {
  width: 48vw;
  height: 28vw;
  bottom: -8%;
  left: 20%;
  background: rgba(80, 50, 140, 0.22);
}

.studio-home-gate-inner {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.studio-home-gate-top {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(177, 163, 248, 0.12);
  background: rgba(10, 10, 18, 0.48);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.studio-home-gate-etsy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: color-mix(in srgb, var(--dd-chip-bg) 80%, transparent);
  color: var(--dd-text);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px) saturate(1.35);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.studio-home-gate-etsy:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 163, 248, 0.45);
  background: rgba(131, 100, 199, 0.18);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.studio-home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px) clamp(18px, 3vw, 28px);
  text-align: left;
  border-radius: 28px;
  border: 1px solid rgba(177, 163, 248, 0.14);
  background:
    radial-gradient(circle at 18% 20%, rgba(131, 100, 199, 0.28), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(14, 44, 120, 0.34), transparent 40%),
    rgba(10, 16, 40, 0.55);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: studio-home-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  isolation: isolate;
}

.studio-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(177, 163, 248, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 163, 248, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 75% 70% at 40% 40%, #000 10%, transparent 78%);
}

.studio-home-hero > * {
  position: relative;
  z-index: 1;
}

.studio-home-hero--app {
  padding: 8px 4px 4px;
}

.studio-home-kicker {
  margin: 0 0 10px;
  color: var(--brand-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.studio-home-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--dd-text);
}

.studio-home-lead {
  margin: 0 0 22px;
  max-width: 54ch;
  color: var(--dd-text-soft);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.studio-home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--dd-btn-primary-shadow);
}

.studio-home-cta .ph,
.studio-home-cta .ph-fill {
  font-size: 1.1rem;
}

.studio-home-cta--ghost {
  color: var(--dd-text);
  box-shadow: var(--dd-btn-secondary-shadow, none);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
}

.studio-home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.studio-home-pillar {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: 24px;
  border: 1px solid rgba(177, 163, 248, 0.14);
  background: rgba(10, 16, 40, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s var(--ease-out, ease), border-color 0.2s ease, background 0.2s ease;
  animation: studio-home-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.studio-home-pillar:hover {
  transform: translateY(-2px);
  border-color: rgba(177, 163, 248, 0.35);
  background: rgba(14, 20, 48, 0.82);
}

.studio-home-pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.studio-home-pillar > * {
  position: relative;
  z-index: 1;
}

.studio-home-pillar:nth-child(2) {
  animation-delay: 0.06s;
}

.studio-home-pillar:nth-child(3) {
  animation-delay: 0.12s;
}

.studio-home-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(131, 100, 199, 0.16);
  color: var(--brand-accent);
  font-size: 1.25rem;
}

.studio-home-pillar h2,
.studio-home-pillar h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.studio-home-pillar p {
  margin: 0;
  color: var(--dd-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.studio-home-steps {
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(177, 163, 248, 0.14);
  background: rgba(10, 16, 40, 0.72);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.studio-home-steps-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.studio-home-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.studio-home-steps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dd-text-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.studio-home-steps-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
}

.studio-home-gate-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding-top: 4px;
}

.studio-home-gate-foot a {
  color: var(--dd-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.studio-home-gate-foot a:hover {
  color: var(--brand-accent);
}

.studio-home-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 8px 4px 28px;
}

/* Shop (aligned with deeneydigital.com shop language) */
.studio-shop-hero {
  position: relative;
  margin: 0 0 14px;
  padding: 22px 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(177, 163, 248, 0.22);
  background:
    radial-gradient(circle at 18% 20%, rgba(131, 100, 199, 0.28), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(14, 44, 120, 0.35), transparent 40%),
    rgba(8, 14, 32, 0.88);
  overflow: hidden;
}

.studio-shop-kicker {
  margin: 0 0 8px;
  color: var(--brand-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-shop-hero h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.studio-shop-tagline {
  margin: 10px 0 0;
  max-width: 52ch;
  color: var(--dd-text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.studio-shop-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.studio-shop-pills span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(177, 163, 248, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dd-text-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.studio-shop-unlock {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(241, 100, 30, 0.35);
  background:
    linear-gradient(135deg, rgba(241, 100, 30, 0.14), rgba(131, 100, 199, 0.14)),
    rgba(8, 20, 42, 0.82);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.studio-shop-unlock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1641e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.studio-shop-unlock-copy {
  min-width: 0;
}

.studio-shop-unlock-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.studio-shop-unlock-copy p {
  margin: 0;
  color: var(--dd-muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.studio-shop-unlock-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-shop-unlock-input {
  flex: 1 1 180px;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--dd-border);
  background: var(--dd-input-bg);
  color: var(--dd-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.studio-shop-unlock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
}

.studio-shop-unlock-msg {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.2em;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dd-muted);
}

.studio-shop-unlock-msg.redeem-msg--ok,
.studio-shop-unlock-msg.is-ok {
  color: #7ee0a3;
}

.studio-shop-unlock-msg.redeem-msg--err,
.studio-shop-unlock-msg.is-err {
  color: #ff9a9a;
}

.studio-shop-unlock-msg.redeem-msg--hint,
.studio-shop-unlock-msg.is-hint {
  color: var(--brand-accent);
}

@keyframes studio-home-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .studio-home-pillars {
    grid-template-columns: 1fr;
  }

  .studio-home-gate-top {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }

  .studio-shop-unlock {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] .customer-gate.studio-home-gate {
  background: var(--dd-bg-gradient);
}

html[data-theme="light"] .studio-home-gate-top {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(14, 44, 120, 0.12);
}

html[data-theme="light"] .studio-home-hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(131, 100, 199, 0.16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(14, 44, 120, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .studio-home-pillar,
html[data-theme="light"] .studio-home-steps,
html[data-theme="light"] .studio-shop-hero {
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .studio-shop-unlock {
  background:
    linear-gradient(135deg, rgba(241, 100, 30, 0.1), rgba(131, 100, 199, 0.1)),
    rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .studio-home-hero,
  .studio-home-pillar {
    animation: none;
  }
}
