@import url("./youtube-studio.css?v=v14_mobile_app_shell");

:root {
  --accent: #00f2ff;
  --accent-soft: rgba(0, 242, 255, 0.12);
  --gold-strong: #dffcff;
  --card-line: rgba(255, 255, 255, 0.08);
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 242, 255, 0.08), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(255, 77, 95, 0.08), transparent 24%),
    radial-gradient(circle at 48% 100%, rgba(255, 255, 255, 0.03), transparent 40%),
    #05070a;
}

.launcher-shell {
  width: min(var(--shell-max-width), calc(100% - (var(--shell-gutter) * 2)));
  min-height: 100vh;
  margin: 0 auto 42px;
  padding-top: 110px;
  display: grid;
  gap: 28px;
}

.launcher-grid {
  display: grid;
  gap: 24px;
}

.hero-card,
.strip-card,
.app-card {
  border-radius: 26px;
  border: 1px solid var(--card-line);
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.92), rgba(8, 12, 18, 0.96));
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.52);
}

.hero-card {
  padding: 34px 36px;
  display: grid;
  gap: 24px;
}

.hero-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-copy p:last-child {
  margin: 18px 0 0;
  max-width: 820px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.7;
}

.launcher-note {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 255, 0.24);
  background: var(--accent-soft);
  color: #dffcff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.app-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.module-hero,
.executive-card,
.launcher-strip,
.app-card {
  animation: fadeUp 0.78s cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

.module-hero { animation-delay: 0.06s; }
.executive-card { animation-delay: 0.14s; }
.app-card-grid .app-card:nth-child(1) { animation-delay: 0.2s; }
.app-card-grid .app-card:nth-child(2) { animation-delay: 0.28s; }
.app-card-grid .app-card:nth-child(3) { animation-delay: 0.36s; }
.app-card-grid .app-card:nth-child(4) { animation-delay: 0.44s; }
.launcher-strip { animation-delay: 0.52s; }

.executive-card {
  border-radius: 26px;
  border: 1px solid var(--card-line);
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.92), rgba(8, 12, 18, 0.96));
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.52);
  padding: 30px;
  display: grid;
  gap: 20px;
}

.executive-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.executive-copy {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.executive-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.executive-copy p:last-child {
  margin: 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.executive-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: 260px;
}

.executive-btn {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(0, 210, 255, 0.28);
  background: linear-gradient(135deg, #00d9ff 0%, #26b2ff 100%);
  color: #03121c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 210, 255, 0.22);
  transition: transform 0.28s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.28s ease, filter 0.28s ease;
}

.executive-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(0, 210, 255, 0.28);
  filter: brightness(1.03);
}

.executive-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
  filter: grayscale(0.12);
  transform: none;
}

.executive-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.executive-kpi {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px 18px 20px;
  display: grid;
  gap: 10px;
}

.executive-kpi .eyebrow {
  margin: 0;
}

.executive-kpi strong {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.executive-kpi span {
  color: var(--muted-strong);
  line-height: 1.6;
}

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

.executive-source-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.executive-source-card.missing {
  border-style: dashed;
  opacity: 0.78;
}

.executive-source-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.executive-source-top strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.executive-source-badge {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted-strong);
  background: rgba(255,255,255,0.04);
}

.executive-source-badge.ready {
  color: #071823;
  border-color: rgba(64, 220, 255, 0.38);
  background: linear-gradient(135deg, #dff7ff 0%, #b9eeff 48%, #8be6ff 100%);
}

.executive-source-value {
  font-size: clamp(30px, 2.4vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.executive-source-meta,
.executive-source-note {
  color: var(--muted-strong);
  line-height: 1.65;
}

.executive-footnote {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.7;
}

.app-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 55%);
  opacity: 0.8;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.72);
}

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

.app-card.gold {
  border-color: rgba(226, 179, 109, 0.24);
}

.app-card.cyan {
  border-color: rgba(0, 210, 255, 0.24);
}

.app-card.red {
  border-color: rgba(255, 77, 95, 0.24);
}

.app-card.rose {
  border-color: rgba(255, 151, 181, 0.24);
}

.app-card.gold:hover {
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.72), 0 0 34px rgba(226, 179, 109, 0.12);
}

.app-card.cyan:hover {
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.72), 0 0 34px rgba(0, 210, 255, 0.12);
}

.app-card.red:hover {
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.72), 0 0 34px rgba(255, 77, 95, 0.12);
}

.app-card.rose:hover {
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.72), 0 0 34px rgba(255, 151, 181, 0.12);
}

.app-card-wide {
  grid-column: 1 / -1;
  min-height: 220px;
}

.app-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.app-copy {
  display: grid;
  gap: 10px;
}

.app-copy h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.app-copy p:last-child {
  margin: 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.app-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-cta::after {
  content: "→";
}

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

.strip-card {
  padding: 28px;
  display: grid;
  gap: 10px;
}

.strip-card strong {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.strip-card span {
  color: var(--muted-strong);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .executive-head,
  .app-card-grid,
  .launcher-strip {
    grid-template-columns: 1fr;
  }

  .app-card-wide {
    grid-column: auto;
  }

  .executive-head {
    display: grid;
  }

  .executive-actions {
    justify-items: start;
    min-width: 0;
  }

  .executive-metric-grid,
  .executive-source-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .launcher-shell {
    width: calc(100% - 24px);
    margin: 0 auto 28px;
    padding-top: 96px;
    padding-bottom: calc(112px + var(--safe-bottom));
    gap: 18px;
  }

  .module-hero,
  .executive-card,
  .strip-card,
  .app-card {
    padding: 22px;
  }

  .app-copy h3 {
    font-size: 26px;
  }

  .app-card-grid {
    grid-template-columns: 1fr;
  }

  .launcher-strip {
    grid-template-columns: 1fr;
  }

  .executive-metric-grid,
  .executive-source-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Disable hover lift on mobile */
  .app-card:hover {
    transform: none;
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.52);
  }

  .app-card.gold:hover,
  .app-card.cyan:hover,
  .app-card.red:hover,
  .app-card.rose:hover {
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.52);
  }

  .app-card {
    min-height: 0;
  }

  .app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 16px;
  }

  .hero-copy p:last-child {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .launcher-shell {
    width: calc(100% - 16px);
    margin-bottom: 22px;
    padding-top: 88px;
    padding-bottom: calc(108px + var(--safe-bottom));
    gap: 16px;
  }

  .module-hero,
  .executive-card,
  .strip-card,
  .app-card {
    padding: 16px;
    border-radius: 18px;
  }

  .module-hero-copy h2,
  .executive-copy h3 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .app-copy h3 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .module-hero-actions,
  .executive-actions {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .executive-btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-pills .pill,
  .launcher-note {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .app-card {
    min-height: 0;
  }

  .executive-metric-grid,
  .executive-source-grid {
    grid-template-columns: 1fr;
  }

  .executive-kpi {
    padding: 14px;
  }

  .executive-kpi strong {
    font-size: clamp(20px, 6vw, 28px);
  }

  .executive-source-value {
    font-size: clamp(24px, 7vw, 34px);
  }

  .executive-source-card {
    padding: 16px;
    border-radius: 18px;
  }

  .app-copy p:last-child {
    font-size: 14px;
  }

  .strip-card strong {
    font-size: 20px;
  }
}

html[data-theme="light"] .executive-card,
html[data-theme="light"] .hero-card,
html[data-theme="light"] .strip-card,
html[data-theme="light"] .app-card,
html[data-theme="light"] .executive-kpi,
html[data-theme="light"] .executive-source-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 252, 0.98));
  border-color: rgba(203, 213, 225, 0.86);
  box-shadow: 0 24px 56px rgba(148, 163, 184, 0.12);
}

html[data-theme="light"] .hero-pills .pill,
html[data-theme="light"] .launcher-note {
  color: #0b2238;
  border-color: rgba(14, 165, 233, 0.22);
  background: rgba(231, 248, 255, 0.96);
}

html[data-theme="light"] .executive-btn {
  color: #062234;
  box-shadow: 0 16px 30px rgba(56, 189, 248, 0.2);
}

html[data-theme="light"] .executive-source-badge {
  color: #55657d;
  border-color: rgba(203, 213, 225, 0.82);
  background: rgba(248, 250, 252, 0.94);
}

html[data-theme="light"] .executive-source-badge.ready {
  color: #0b2238;
  border-color: rgba(14, 165, 233, 0.22);
  background: linear-gradient(135deg, #e7f8ff 0%, #c8efff 46%, #a8e8ff 100%);
}
