:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f6f4ef;
  color: #1f2937;
}

.app-background {
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at top, rgba(255, 247, 234, 0.9), rgba(246, 244, 239, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.device-shell {
  width: 430px;
  height: 932px;
  max-width: 100%;
  border-radius: 45px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.15);
  border: 1px solid rgba(238, 230, 215, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.device-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 34px;
  background: rgba(22, 22, 22, 0.88);
  border-radius: 18px;
}

.status-bar {
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.04em;
}

.status-bar .right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 26px 80px;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.95) 0%, rgba(255, 255, 255, 0.98) 20%, rgba(255, 255, 255, 1) 100%);
}

.device-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.device-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tab-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 74px;
  background: rgba(250, 247, 240, 0.92);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.12);
  border: 1px solid rgba(255, 234, 207, 0.72);
  backdrop-filter: blur(12px);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}

.tab-item i {
  font-size: 18px;
}

.tab-item-active {
  color: #f97316;
}

.rounded-card {
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(251, 211, 141, 0.35);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
}

.subtle-text {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(253, 230, 138, 0.4);
  box-shadow: 0 10px 30px rgba(120, 113, 89, 0.15);
}

.tag-pill {
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background-color: rgba(254, 243, 199, 0.8);
  color: #b45309;
}

.badge-soft {
  background-color: rgba(248, 250, 252, 0.85);
  color: #4b5563;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-placeholder {
  border-radius: 18px;
  border: 1px dashed rgba(209, 213, 219, 0.7);
  background: rgba(248, 250, 252, 0.7);
  padding: 24px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* index page preview grid */
.preview-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  }
}

.preview-frame {
  background: #f1eee8;
  padding: 24px;
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(209, 178, 123, 0.35);
}

.preview-frame iframe {
  width: 100%;
  height: 932px;
  border: none;
  border-radius: 34px;
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.16);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
