:root {
  --font-sans: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --bg: #eef3fb;
  --bg-soft: #f7f9ff;
  --bg-soft-strong: #dfe9ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(247, 250, 255, 0.88);
  --line: rgba(255, 255, 255, 0.76);
  --line-soft: rgba(225, 234, 248, 0.9);
  --text: #171c2a;
  --text-soft: #243042;
  --muted: #5f6373;
  --muted-soft: #8d92a0;
  --accent: #07c160;
  --accent-dark: #05a851;
  --accent-soft: rgba(7, 193, 96, 0.12);
  --accent-soft-strong: rgba(7, 193, 96, 0.2);
  --warning-soft: rgba(245, 167, 54, 0.18);
  --warning-text: #bb7726;
  --shadow-lg: 0 28px 72px rgba(129, 145, 173, 0.2);
  --shadow-md: 0 20px 48px rgba(135, 148, 172, 0.16);
  --shadow-sm: 0 14px 32px rgba(140, 149, 169, 0.14);
  --radius-2xl: 40px;
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 22px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 88% 0, rgba(179, 211, 255, 0.58) 0, rgba(179, 211, 255, 0) 26%),
    radial-gradient(circle at 0 72%, rgba(204, 236, 255, 0.4) 0, rgba(204, 236, 255, 0) 28%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3fb 48%, #eef6f3 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  padding: 24px;
}

.site-header,
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.6) 100%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(165%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding: 18px 22px;
  border-radius: 28px;
  color: var(--muted);
  font-size: 14px;
}

.site-main {
  max-width: 1280px;
  margin: 24px auto 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-family: var(--font-display);
}

.brand-mark__icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(7, 193, 96, 0.24);
  flex-shrink: 0;
}

.brand-mark__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark__copy {
  display: grid;
  gap: 3px;
}

.brand-mark__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-mark__subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header__side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav__link,
.brand-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
}

.site-nav__link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.76);
  transform: translateY(-1px);
}

.brand-note {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.home-page .site-header {
  position: sticky;
  top: 16px;
  z-index: 40;
}

.primary-link,
.secondary-link,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-link,
.download-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, #37d88d 0%, #07c160 56%, #05a851 100%);
  box-shadow: 0 18px 38px rgba(7, 193, 96, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
}

.primary-link:hover,
.secondary-link:hover,
.download-link:hover {
  transform: translateY(-1px);
}

.download-link.disabled,
.toolbar-btn.is-disabled,
.toolbar-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.download-link.disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.46);
}

.download-link-button,
.toolbar-btn {
  border: none;
  cursor: pointer;
  font: inherit;
}

.surface-card,
.attachment-toolbar,
.attachment-card,
.attachment-hero,
.error-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.6) 100%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(24px) saturate(160%);
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 34px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.94) 0, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 84% 12%, rgba(167, 205, 255, 0.5) 0, rgba(167, 205, 255, 0) 28%),
    linear-gradient(135deg, rgba(246, 249, 255, 0.94) 0%, rgba(233, 241, 251, 0.82) 54%, rgba(237, 246, 243, 0.76) 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(28px) saturate(170%);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.home-hero::before {
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.46);
}

.home-hero::after {
  left: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  background: rgba(173, 198, 255, 0.16);
}

.home-hero__copy,
.home-device {
  position: relative;
  z-index: 1;
}

.home-eyebrow,
.showcase-panel__kicker,
.section-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero__copy h1,
.home-section__heading h2,
.section-heading h1,
.section-heading h2,
.error-panel h1,
.home-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-hero__copy h1 {
  margin-top: 16px;
  font-size: clamp(42px, 5.4vw, 72px);
}

.home-hero__copy p,
.home-section__heading p,
.flow-card p,
.insight-panel p,
.preview-hero-card p,
.export-preview p,
.safety-card p,
.error-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.home-hero__copy p {
  margin-top: 20px;
  max-width: 720px;
  font-size: 17px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-pill-row,
.preview-pill-row,
.roster-board__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-pill-row {
  margin-top: 24px;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-device {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-device__frame {
  width: min(100%, 420px);
  padding: 18px;
  border-radius: 38px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 56%, #22304a 100%);
  box-shadow: 0 34px 82px rgba(15, 23, 42, 0.32);
  transform: rotate(4deg);
  animation: float-device 6s ease-in-out infinite;
}

.home-device__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.home-device__status-dot {
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.home-device__screen {
  display: grid;
  gap: 14px;
  min-height: 540px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 86% 0, rgba(179, 211, 255, 0.52) 0, rgba(179, 211, 255, 0) 24%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3fb 48%, #eef6f3 100%);
}

.home-device__banner,
.home-device__item,
.preview-hero-card,
.preview-metric,
.record-preview-item,
.roster-board,
.export-preview,
.metric-panel__item {
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-device__banner {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.68) 100%);
}

.home-device__banner-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-device__banner strong {
  font-size: 22px;
  line-height: 1.2;
}

.home-device__tabs,
.showcase-tabs {
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

.home-device__tab,
.showcase-tabs__item {
  position: relative;
  padding-bottom: 14px;
  color: var(--muted-soft);
  font-weight: 800;
  line-height: 1.2;
}

.home-device__tab {
  font-size: 16px;
}

.showcase-tabs__item {
  font-size: 24px;
}

.home-device__tab.is-active,
.showcase-tabs__item.is-active {
  color: var(--accent);
}

.home-device__tab.is-active::after,
.showcase-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  max-width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.home-device__item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.home-device__item--secondary {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.9) 0%, rgba(236, 242, 251, 0.72) 100%);
}

.home-device__item-top,
.showcase-list__head,
.showcase-panel__header,
.record-preview-item,
.roster-board__head,
.export-preview,
.attachment-card-head,
.attachment-card-meta,
.group-header,
.attachment-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.home-device__item-top strong,
.showcase-list__head strong {
  font-size: 18px;
  line-height: 1.35;
}

.home-device__item-meta,
.showcase-list__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.home-device__item-foot,
.showcase-list__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-inline-chip,
.preview-pill,
.roster-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.home-inline-chip,
.preview-pill {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-soft);
}

.home-inline-chip--muted {
  color: var(--muted);
}

.home-device__dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.56) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-device__dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 800;
}

.home-device__dock-item.is-active {
  background: rgba(255, 255, 255, 0.64);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.home-device__dock-item--accent {
  background: linear-gradient(180deg, #37d88d 0%, #07c160 100%);
  color: #fff;
}

.home-anchor-nav {
  position: sticky;
  top: 106px;
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 26px;
}

.home-anchor-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-anchor-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.64);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.home-anchor-nav__link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.home-anchor-nav__note {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.home-section {
  margin-top: 34px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(24px) saturate(165%);
}

.home-section[id] {
  scroll-margin-top: 172px;
}

.home-section--accent {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.74) 0, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 88% 10%, rgba(172, 209, 255, 0.22) 0, rgba(172, 209, 255, 0) 24%),
    linear-gradient(135deg, rgba(246, 249, 255, 0.92) 0%, rgba(233, 241, 251, 0.78) 56%, rgba(236, 248, 240, 0.72) 100%);
}

.home-section__heading {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.home-section__heading h2 {
  font-size: clamp(30px, 3.6vw, 50px);
}

.home-section__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.home-section__rail {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
}

.home-section__rail-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-rail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.72;
}

.home-rail-list li::marker {
  color: var(--accent);
}

.home-flow-grid,
.home-safety-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-flow-grid::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(7, 193, 96, 0.18) 0%, rgba(7, 193, 96, 0.5) 50%, rgba(7, 193, 96, 0.18) 100%);
}

.home-safety-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-card,
.showcase-panel,
.insight-panel,
.role-panel,
.metric-panel,
.preview-panel,
.safety-card,
.home-cta {
  border-radius: 28px;
}

.flow-card,
.showcase-panel,
.insight-panel,
.role-panel,
.metric-panel,
.preview-panel,
.safety-card {
  padding: 24px;
}

.flow-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.flow-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, #37d88d 0%, #07c160 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.flow-card h3,
.showcase-panel__header h3,
.insight-panel h3,
.preview-panel h3,
.safety-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.flow-card__list,
.role-panel__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.68;
}

.home-showcase-grid,
.home-data-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.home-showcase-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
}

.home-data-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-panel {
  display: grid;
  gap: 18px;
}

.showcase-panel__header {
  align-items: center;
}

.showcase-panel__header > div {
  display: grid;
  gap: 10px;
}

.showcase-tabs {
  margin-top: 2px;
}

.showcase-list,
.home-side-stack,
.record-preview-list {
  display: grid;
  gap: 14px;
}

.home-side-stack {
  align-content: start;
}

.showcase-list__item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.92) 0%, rgba(236, 242, 251, 0.74) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.showcase-list__item--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 249, 255, 0.72) 100%);
}

.insight-panel,
.role-panel,
.metric-panel {
  display: grid;
  gap: 14px;
}

.role-panel__switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-panel__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.role-panel__chip.is-active {
  background: linear-gradient(180deg, #37d88d 0%, #07c160 100%);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.metric-panel__grid,
.preview-metric-grid {
  display: grid;
  gap: 14px;
}

.metric-panel__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-metric-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-panel__item,
.preview-metric {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.92) 0%, rgba(236, 242, 251, 0.72) 100%);
}

.metric-panel__item span,
.preview-metric span {
  color: #556074;
  font-size: 13px;
  font-weight: 800;
}

.metric-panel__item strong,
.preview-metric strong {
  color: #101826;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.preview-panel {
  display: grid;
  gap: 18px;
}

.preview-panel--result {
  background:
    radial-gradient(circle at top right, rgba(167, 205, 255, 0.2) 0, rgba(167, 205, 255, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.62) 100%);
}

.preview-hero-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 250, 255, 0.74) 100%);
}

.preview-hero-card strong {
  font-size: 24px;
  line-height: 1.2;
}

.preview-pill-row {
  margin-top: 2px;
}

.record-preview-item {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.record-preview-item strong {
  font-size: 16px;
  line-height: 1.3;
}

.record-preview-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.record-preview-item--ghost {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.92) 0%, rgba(236, 242, 251, 0.72) 100%);
}

.roster-board {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.92) 0%, rgba(236, 242, 251, 0.72) 100%);
}

.roster-board__head strong {
  font-size: 18px;
}

.roster-board__head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.roster-chip {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-soft);
}

.export-preview {
  align-items: center;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
}

.export-preview strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.export-preview p {
  margin-top: 6px;
  font-size: 14px;
}

.safety-card {
  display: grid;
  gap: 12px;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(246, 249, 255, 0.94) 0%, rgba(233, 241, 251, 0.78) 54%, rgba(236, 248, 240, 0.74) 100%);
}

.home-cta__copy {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.home-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-tag--active {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.56);
  color: var(--accent);
}

.status-tag--pending {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.status-tag--ended {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.54);
  color: #8b95a7;
}

.section-heading {
  display: grid;
  gap: 14px;
}

.section-heading h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.section-heading h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.attachment-hero,
.error-panel {
  border-radius: 36px;
}

.attachment-hero {
  padding: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(242, 252, 246, 0.86) 0%, rgba(226, 246, 233, 0.7) 100%);
}

.attachment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.attachment-toolbar {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 26px;
}

.toolbar-summary {
  display: grid;
  gap: 6px;
}

.toolbar-summary strong,
.group-header h2,
.attachment-card h3 {
  margin: 0;
}

.toolbar-summary span,
.attachment-kind,
.attachment-size {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.attachment-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
}

.attachment-select-all {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.attachment-select.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.attachment-group {
  margin-top: 28px;
}

.group-header {
  margin-bottom: 16px;
}

.group-header span {
  color: var(--muted);
  font-size: 14px;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.attachment-card {
  padding: 18px;
  border-radius: 24px;
}

.attachment-card.is-disabled {
  opacity: 0.86;
}

.attachment-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.attachment-preview-image,
.attachment-media,
.attachment-placeholder {
  width: 100%;
  margin-top: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.attachment-preview-image {
  display: block;
  object-fit: contain;
  max-height: 280px;
}

.attachment-media {
  min-height: 54px;
}

.attachment-placeholder {
  min-height: 110px;
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.attachment-subtext,
.attachment-placeholder {
  margin-top: 12px;
}

.attachment-subtext {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.download-frame {
  width: 0;
  height: 0;
  border: 0;
}

.error-panel {
  max-width: 720px;
  margin: 80px auto 0;
  padding: 42px;
  text-align: center;
}

.error-code {
  color: var(--accent-dark);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}

.error-panel h1 {
  margin-top: 18px;
  font-size: clamp(34px, 4vw, 48px);
}

.error-panel p {
  margin-top: 16px;
}

.error-panel .primary-link {
  margin-top: 24px;
}

@keyframes float-device {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }

  50% {
    transform: rotate(4deg) translateY(-8px);
  }
}

@media (max-width: 1180px) {
  .home-hero,
  .home-showcase-grid,
  .home-data-grid,
  .home-section__top {
    grid-template-columns: 1fr;
  }

  .home-anchor-nav {
    top: 98px;
  }

  .home-device {
    justify-content: flex-start;
  }

  .home-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-safety-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .site-shell {
    padding: 16px;
  }

  .home-page .site-header,
  .home-anchor-nav {
    position: static;
  }

  .site-header,
  .site-footer,
  .attachment-toolbar,
  .group-header,
  .showcase-panel__header,
  .export-preview,
  .attachment-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__side {
    justify-items: start;
    width: 100%;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .home-anchor-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .home-anchor-nav__note {
    max-width: none;
    text-align: left;
  }

  .home-hero,
  .home-section,
  .attachment-hero,
  .error-panel {
    padding: 24px;
  }

  .home-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-metric-grid--three,
  .metric-panel__grid,
  .home-flow-grid {
    grid-template-columns: 1fr;
  }

  .home-flow-grid::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .brand-mark__title {
    font-size: 26px;
  }

  .home-hero__actions,
  .toolbar-actions {
    width: 100%;
  }

  .home-hero__actions .primary-link,
  .home-hero__actions .secondary-link,
  .home-cta .primary-link {
    width: 100%;
  }

  .home-anchor-nav__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-device__frame {
    width: 100%;
    transform: none;
    animation: none;
  }

  .home-device__screen {
    min-height: auto;
  }

  .home-device__tabs,
  .showcase-tabs {
    gap: 20px;
  }

  .showcase-tabs__item {
    font-size: 20px;
  }

  .home-section__heading h2,
  .home-cta h2 {
    line-height: 1.14;
  }

  .preview-metric-grid,
  .preview-metric-grid--three {
    grid-template-columns: 1fr;
  }

  .home-anchor-nav__links {
    grid-template-columns: 1fr;
  }

  .attachment-grid {
    grid-template-columns: 1fr;
  }
}
