* {
  box-sizing: border-box;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(166, 255, 63, .16), transparent 28%),
    radial-gradient(circle at 80% 5%, rgba(90, 200, 255, .14), transparent 30%),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  letter-spacing: 0;
}

html,
body {
  min-height: 100%;
}

button {
  font: inherit;
}

.demo-shell {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(320px, 430px) minmax(280px, 460px);
  justify-content: center;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 56px);
}

.demo-shell.app-presentation {
  grid-template-columns: minmax(320px, 430px);
  min-height: 100svh;
  padding: clamp(12px, 2vw, 24px);
}

.phone-frame {
  background: #0b0d0c;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 42px;
  box-shadow: var(--shadow-phone);
  margin: 0 auto;
  padding: 12px;
  width: min(390px, 100%);
}

.phone-screen {
  background: var(--color-surface);
  border-radius: 32px;
  height: 812px;
  overflow: hidden;
  position: relative;
}

.screen {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateY(18px) scale(.985);
  transition: opacity var(--motion-normal) var(--ease-out), transform var(--motion-normal) var(--ease-out);
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.status-bar {
  align-items: center;
  display: flex;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  justify-content: space-between;
  padding: 16px 22px 8px;
  position: relative;
  z-index: 3;
}

.status-icons {
  color: var(--color-muted);
  letter-spacing: 1px;
}

.eyebrow {
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.primary-button,
.danger-button,
.chip,
.icon-button,
.org-switcher,
.nav-item {
  border: 0;
  cursor: pointer;
}

.primary-button {
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  border-radius: var(--radius-pill);
  color: #102016;
  display: inline-flex;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
}

.primary-button:hover,
.danger-button:hover,
.chip:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.danger-button {
  background: var(--color-danger);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  padding: 11px 16px;
}

.compact-button {
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.icon-button {
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  position: relative;
  width: 40px;
}

.icon-button svg,
.nav-item svg,
.close-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.nav-item svg {
  fill: currentColor;
  height: 22px;
  stroke: none;
  width: 22px;
}

.close-button {
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
  width: 38px;
}

.close-button:hover {
  border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
  transform: rotate(8deg) scale(1.02);
}

.has-dot::after {
  background: var(--color-primary);
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  content: "";
  height: 10px;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 10px;
}

.badge {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 10px;
  font-weight: var(--weight-bold);
  padding: 5px 8px;
  white-space: nowrap;
}

.badge.danger {
  background: rgba(255, 77, 53, .16);
  color: var(--color-danger);
}

.badge.success {
  background: rgba(74, 222, 128, .16);
  color: var(--color-success);
}

.demo-notes {
  max-width: 430px;
}

.demo-notes h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  margin: 0 0 18px;
}

.demo-notes p,
.demo-notes li {
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.demo-notes ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
}

@media (max-width: 860px) {
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .demo-notes {
    order: -1;
    text-align: center;
  }
}

@media (max-width: 760px), (pointer: coarse) and (max-width: 900px) {
  body {
    background: var(--color-surface);
    overflow: hidden;
  }

  .demo-shell,
  .demo-shell.app-presentation {
    display: block;
    min-height: 100svh;
    padding: 0;
  }

  .phone-frame {
    background: var(--color-surface);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100svh;
    margin: 0;
    padding: 0;
    width: 100vw;
  }

  .phone-screen {
    border-radius: 0;
    height: 100svh;
    min-height: 100svh;
    width: 100vw;
  }
}

@media (display-mode: standalone) {
  body {
    background: var(--color-surface);
  }
}
