:root {
  --bg: #07070a;
  --surface-1: #0d0d13;
  --surface-2: #13131a;
  --surface-3: #1a1a24;
  --surface-4: #22222e;
  --border: #28283a;
  --border-light: #32324a;
  --text-1: #f2f2f7;
  --text-2: #8a8a9e;
  --text-3: #4a4a5e;
  --cyan: #05e0ff;
  --cyan-dim: #03a8be;
  --violet: #9b5dff;
  --violet-dim: #6c3fbf;
  --lime: #baff47;
  --gold: #c8a255;
  --gold-bright: #ddb96a;
  --danger: #ff4560;
  --success: #00d68f;
  --shell-width: 390px;
  --shell-height: min(844px, calc(100vh - 32px));
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.42);
  --shadow-violet: 0 0 20px rgba(155, 93, 255, 0.22), 0 0 60px rgba(155, 93, 255, 0.08);
  --shadow-cyan: 0 0 20px rgba(5, 224, 255, 0.22), 0 0 60px rgba(5, 224, 255, 0.08);
  --shadow-gold: 0 0 20px rgba(200, 162, 85, 0.28), 0 0 60px rgba(200, 162, 85, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text-1);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #11091a 0%, var(--bg) 58%);
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  background: radial-gradient(circle at 24% 18%, rgba(155, 93, 255, 0.08) 0, transparent 42%);
}

.ambient-b {
  background: radial-gradient(circle at 74% 78%, rgba(5, 224, 255, 0.06) 0, transparent 40%);
}

.shell-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.device-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-width);
  height: var(--shell-height);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 42px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(155, 93, 255, 0.08),
    0 0 120px rgba(5, 224, 255, 0.04);
}

.device-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
}

.status-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 14px 26px 0;
  font-size: 12px;
  font-weight: 600;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.screen-scroll {
  position: absolute;
  inset: 52px 0 70px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-section {
  padding: 0 16px 24px;
}

.top-margin-8 { margin-top: 8px; }
.top-margin-12 { margin-top: 12px; }
.top-margin-16 { margin-top: 16px; }
.top-margin-18 { margin-top: 18px; }
.top-margin-20 { margin-top: 20px; }
.no-margin { margin: 0; }
.gap-12 { gap: 12px; }

.flash-stack {
  display: grid;
  gap: 8px;
  padding: 0 16px 12px;
}

.flash {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 12px;
}

.flash-success { border-color: rgba(0, 214, 143, 0.35); color: var(--success); }
.flash-danger { border-color: rgba(255, 69, 96, 0.35); color: var(--danger); }
.flash-warning { border-color: rgba(200, 162, 85, 0.35); color: var(--gold-bright); }
.flash-info { border-color: rgba(5, 224, 255, 0.3); color: var(--cyan); }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.page-subtitle {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
}

.home-header {
  padding-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.icon-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  box-shadow: var(--shadow-soft);
}

.icon-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.brand-mark {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 224, 255, 0.08);
  border: 1px solid rgba(5, 224, 255, 0.18);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy h1,
.auth-card h1 {
  margin: 10px 0 10px;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p,
.auth-card p,
.body-copy,
.empty-state p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.body-copy.compact { font-size: 13px; }
.body-strong { font-size: 13px; font-weight: 700; }
.body-muted { font-size: 11px; color: var(--text-3); }

.onboarding-screen,
.auth-screen {
  padding: 0 20px 24px;
}

.hero-stack {
  position: relative;
  height: 268px;
  margin-top: 18px;
}

.preview-card {
  position: absolute;
  inset: auto;
  width: 185px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  background: var(--surface-2);
}

.preview-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

.preview-card-overlay,
.hero-overlay,
.community-banner-overlay,
.winner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 7, 10, 0.95) 0%, rgba(7, 7, 10, 0.2) 60%, transparent 100%);
}

.preview-card-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.preview-card-title,
.clip-row-title,
.duel-title,
.podium-title,
.mini-rank-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.preview-card-score,
.hero-score,
.clip-row-score,
.podium-score,
.mini-rank-score {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.preview-card-score { font-size: 22px; color: var(--cyan); }
.preview-1 { left: 0; top: 22px; transform: rotate(-8deg); z-index: 1; }
.preview-2 { right: 0; top: 44px; transform: rotate(7deg); z-index: 2; }
.preview-3 { left: 50%; top: 86px; transform: translateX(-50%) rotate(-2deg); z-index: 0; }

.hero-copy { margin-top: 12px; }

.stats-grid {
  display: grid;
  gap: 10px;
}

.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-grid .stat-box,
.compact-grid .mini-rank-card { min-height: 0; }

.stat-box {
  min-height: 78px;
  border-radius: 16px;
  padding: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.stat-value {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tone-accent .stat-value { color: var(--cyan); }
.tone-success .stat-value { color: var(--success); }
.tone-warning .stat-value { color: var(--gold-bright); }
.tone-danger .stat-value { color: var(--danger); }

.stack {
  display: grid;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { transform: translateY(-1px); }
.button-block { width: 100%; }
.button-small { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 12px; }
.button-gradient {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: var(--text-1);
  box-shadow: var(--shadow-violet);
}
.button-muted {
  background: var(--surface-1);
  color: var(--text-1);
  border-color: var(--border);
}
.button-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  border-color: rgba(255, 255, 255, 0.06);
}
.button-danger {
  background: rgba(255, 69, 96, 0.09);
  color: var(--danger);
  border-color: rgba(255, 69, 96, 0.2);
}

.pill-row {
  display: flex;
  gap: 8px;
}

.pill-row.wrap { flex-wrap: wrap; }
.pill-row.scroll-x { overflow-x: auto; scrollbar-width: none; }
.pill-row.scroll-x::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-active,
.pill-active.tone-muted {
  background: rgba(5, 224, 255, 0.12);
  border-color: rgba(5, 224, 255, 0.28);
  color: var(--cyan);
}

.tone-accent { background: rgba(5, 224, 255, 0.08); border-color: rgba(5, 224, 255, 0.18); color: var(--cyan); }
.tone-warning { background: rgba(200, 162, 85, 0.12); border-color: rgba(200, 162, 85, 0.3); color: var(--gold-bright); }
.tone-danger { background: rgba(255, 69, 96, 0.12); border-color: rgba(255, 69, 96, 0.28); color: var(--danger); }
.tone-success { background: rgba(0, 214, 143, 0.1); border-color: rgba(0, 214, 143, 0.22); color: var(--success); }
.tone-muted { background: var(--surface-3); border-color: var(--border); color: var(--text-2); }

.hero-card,
.detail-hero,
.winner-card,
.podium-card,
.profile-card,
.panel,
.auth-card,
.clip-row,
.mini-rank-card,
.member-card,
.activity-row,
.moderation-card,
.setting-row,
.duel-card {
  border-radius: 22px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.detail-hero,
.winner-card {
  position: relative;
  overflow: hidden;
}

.hero-media {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.tall-media { height: 260px; }
.compact-hero .hero-media { height: 150px; }

.hero-topline {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.hero-score {
  min-width: 74px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 7, 10, 0.72);
  border: 1px solid rgba(5, 224, 255, 0.28);
  text-align: center;
  font-size: 26px;
  color: var(--cyan);
  backdrop-filter: blur(12px);
}

.hero-score.gold,
.gold {
  color: var(--gold-bright);
  border-color: rgba(200, 162, 85, 0.3);
}

.hero-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.hero-title {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-title.small { font-size: 18px; }
.hero-subtitle,
.clip-row-subtitle,
.duel-meta,
.podium-meta,
.mini-rank-meta {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 11px;
}

.hero-inline-stats {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;
  font-size: 11px;
  color: var(--text-2);
}

.action-row {
  display: grid;
  gap: 10px;
}

.action-row.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-row.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 14px;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 700;
}

.section-head a,
.section-head span {
  color: var(--text-2);
  font-size: 11px;
}

.mini-rank-card {
  min-height: 112px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-rank-number {
  color: var(--cyan);
  font-weight: 700;
  font-size: 11px;
}

.mini-rank-score {
  margin-top: auto;
  font-size: 20px;
  color: var(--text-1);
}

.clip-row {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-chip {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--surface-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}

.clip-row-thumb,
.moderation-thumb {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}

.clip-row-body,
.moderation-body,
.activity-body {
  min-width: 0;
  flex: 1;
}

.clip-row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-row-meta {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-3);
}

.clip-row-score {
  margin-left: auto;
  font-size: 22px;
  color: var(--text-1);
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 22px;
}

.gold-ring {
  border-color: rgba(200, 162, 85, 0.45);
  box-shadow: var(--shadow-gold);
}

.creator-row,
.creator-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.creator-inline { justify-content: flex-start; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.avatar-large { width: 54px; height: 54px; }
.avatar-xl { width: 72px; height: 72px; }

.panel {
  padding: 14px;
}

.accent-panel { border-color: rgba(5, 224, 255, 0.2); background: rgba(5, 224, 255, 0.05); }
.winner-panel { border-color: rgba(200, 162, 85, 0.22); background: rgba(200, 162, 85, 0.06); }

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text-2);
}

.bar-cloud {
  display: flex;
  align-items: end;
  gap: 4px;
  min-height: 50px;
  margin-top: 10px;
}

.bar-stick {
  flex: 1;
  border-radius: 999px;
  background: var(--surface-4);
}

.bar-stick.active {
  background: linear-gradient(180deg, var(--cyan), var(--violet-dim));
}

.reaction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reaction-button {
  min-height: 72px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reaction-button.active {
  border-color: rgba(5, 224, 255, 0.35);
  color: var(--cyan);
  background: rgba(5, 224, 255, 0.08);
}

.reaction-emoji {
  font-size: 20px;
}

.meter-track,
.taste-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-4);
  overflow: hidden;
}

.meter-fill,
.taste-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating-card {
  min-height: 92px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.rating-card.active,
.rating-card:hover {
  color: var(--text-1);
  background: linear-gradient(180deg, rgba(155, 93, 255, 0.22), rgba(5, 224, 255, 0.18));
  border-color: rgba(5, 224, 255, 0.28);
}

.rating-number {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.rating-label {
  font-size: 10px;
  text-align: center;
}

.duel-axis {
  width: 52px;
  height: 52px;
  margin-inline: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 93, 255, 0.14);
  border: 1px solid rgba(155, 93, 255, 0.26);
  color: var(--violet);
  font-weight: 800;
  box-shadow: var(--shadow-violet);
}

.duel-stack {
  display: grid;
  gap: 12px;
}

.duel-shell {
  position: relative;
}

.duel-form-card { margin: 0; }

.duel-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.duel-thumb {
  width: 100%;
  height: 164px;
  object-fit: cover;
}

.duel-card-body {
  padding: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.podium-card {
  padding: 10px;
  text-align: center;
}

.podium-first {
  transform: translateY(-10px);
  border-color: rgba(200, 162, 85, 0.34);
  box-shadow: var(--shadow-gold);
}

.podium-rank {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
}

.podium-thumb {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  margin: 10px 0;
}

.podium-score {
  font-size: 24px;
  color: var(--text-1);
}

.podium-votes { font-size: 10px; color: var(--text-3); }

.community-hero {
  position: relative;
}

.community-banner {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.community-identity {
  display: flex;
  gap: 14px;
  align-items: center;
}

.community-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-violet);
  flex: 0 0 auto;
}

.community-title { font-size: 20px; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-card {
  padding: 14px 10px;
  text-align: center;
}

.member-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(200, 162, 85, 0.12);
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(186, 255, 71, 0.35);
}

.activity-row,
.setting-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-weight: 700;
  flex: 0 0 auto;
}

.activity-icon.danger { color: var(--danger); }

.profile-card {
  overflow: hidden;
  padding-bottom: 14px;
}

.profile-banner {
  height: 96px;
}

.profile-main {
  display: flex;
  gap: 14px;
  padding: 0 14px;
  margin-top: -28px;
  margin-bottom: 10px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.profile-identity {
  min-width: 0;
  padding: 10px 12px 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.92), rgba(11, 11, 18, 0.72));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.profile-identity .hero-title,
.profile-identity .body-muted {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.profile-bio {
  padding: 0 14px;
}

.taste-stack {
  display: grid;
  gap: 10px;
}

.taste-row {
  display: grid;
  grid-template-columns: 34px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.taste-label,
.taste-value {
  font-size: 11px;
  color: var(--text-2);
}

.auth-card {
  padding: 18px;
}

.auth-footer {
  font-size: 12px;
  color: var(--text-2);
}

.auth-footer a { color: var(--cyan); }

.auth-legal-note {
  line-height: 1.5;
}

.winner-page {
  position: relative;
}

.winner-card {
  border-color: rgba(200, 162, 85, 0.4);
  box-shadow: var(--shadow-gold);
}

.winner-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 162, 85, 0.92), rgba(221, 185, 106, 0.92));
  color: #2b1700;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moderation-card {
  padding: 12px;
}

.moderation-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.report-row {
  align-items: flex-start;
}

.setting-row {
  justify-content: space-between;
}

.toggle {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-4);
  border: 1px solid var(--border-light);
  position: relative;
  flex: 0 0 auto;
}

.toggle-button {
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-2);
}

.toggle.enabled {
  background: rgba(5, 224, 255, 0.18);
  border-color: rgba(5, 224, 255, 0.35);
}

.toggle.enabled::after {
  left: 21px;
  background: var(--cyan);
}

.form-stack {
  display: grid;
  gap: 12px;
}

.form-panel {
  display: grid;
  gap: 10px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-label {
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.field {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-1);
  outline: none;
  caret-color: var(--text-1);
  color-scheme: dark;
}

.field:focus {
  border-color: rgba(5, 224, 255, 0.32);
  box-shadow: 0 0 0 3px rgba(5, 224, 255, 0.08);
}

.field:-webkit-autofill,
.field:-webkit-autofill:hover,
.field:-webkit-autofill:focus,
.field:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-1);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
  border: 1px solid var(--border);
  caret-color: var(--text-1);
  transition: background-color 9999s ease-in-out 0s;
}

.textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.file-field {
  padding: 10px 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
}

.turnstile-stack {
  display: grid;
  gap: 10px;
}

.turnstile-stack .cf-turnstile {
  width: 100%;
}

.auth-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-access-card {
  display: grid;
  gap: 14px;
}

.admin-access-submit {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.empty-state {
  padding: 28px 16px;
  border-radius: 20px;
  background: var(--surface-1);
  border: 1px dashed var(--border-light);
  text-align: center;
}

.empty-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.empty-title {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 74px;
  padding: 10px 10px 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(7, 7, 10, 0) 0%, rgba(7, 7, 10, 0.9) 20%, var(--surface-1) 100%);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 10px;
  opacity: 0.72;
}

.nav-item.active {
  color: var(--cyan);
  opacity: 1;
}

.nav-icon {
  font-size: 18px;
  line-height: 1;
}

.nav-item-center {
  align-self: start;
}

.nav-item-center .nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
}

.nav-item-center.active .nav-icon {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}

@media (max-width: 430px) {
  .shell-wrap {
    padding: 0;
  }

  .device-shell {
    max-width: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .screen-scroll {
    inset: 52px 0 76px;
  }
}

/* --- Clip Battle rebrand, responsive shell, and art direction --- */
:root {
  --bg: #06060a;
  --surface-1: rgba(15, 15, 22, 0.92);
  --surface-2: rgba(20, 20, 30, 0.94);
  --surface-3: rgba(30, 30, 44, 0.92);
  --surface-4: rgba(39, 39, 58, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --text-1: #f7f7fb;
  --text-2: #b7b7c9;
  --text-3: #7f7f95;
  --cyan: #69e5ff;
  --violet: #9b6cff;
  --gold: #d7ac61;
  --gold-bright: #f0c97f;
  --shell-height: calc(100dvh - 24px);
  --shadow-soft: 0 28px 60px rgba(0, 0, 0, 0.45);
}

html,
body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page-title,
.hero-title,
.empty-title,
.hero-copy h1,
.auth-card h1,
.stat-value,
.hero-score,
.clip-row-score,
.preview-card-score,
.podium-score,
.mini-rank-score {
  font-family: "Avenir Next", "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

.app-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(155, 108, 255, 0.22), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(105, 229, 255, 0.16), transparent 24%),
    radial-gradient(circle at 52% 100%, rgba(240, 201, 127, 0.12), transparent 24%),
    #06060a;
}

.shell-wrap {
  align-items: stretch;
  gap: 20px;
  padding: 12px;
}

.shell-rail {
  display: none;
  width: 320px;
  flex: 0 0 320px;
  border-radius: 30px;
  padding: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 15, 22, 0.92), rgba(10, 10, 16, 0.88));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    width 0.24s ease,
    flex-basis 0.24s ease,
    padding 0.24s ease,
    margin 0.24s ease;
}

.rail-brand,
.toolbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rail-brand-mark,
.toolbar-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(155, 108, 255, 0.26), rgba(105, 229, 255, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-1);
}

.rail-brand-copy,
.toolbar-brand span {
  display: flex;
  flex-direction: column;
}

.rail-brand strong,
.toolbar-brand strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.rail-brand small,
.toolbar-brand small {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-copy,
.rail-glass p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
  font-size: 14px;
}

.rail-copy {
  margin-top: 18px;
}

.rail-art {
  width: 100%;
  height: auto;
  margin-top: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.rail-glass {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.rail-nav {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.rail-nav .nav-item {
  flex-direction: row;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  opacity: 1;
}

.rail-nav .nav-item:hover,
.rail-nav .nav-item.active {
  border-color: rgba(105, 229, 255, 0.18);
  background: rgba(105, 229, 255, 0.06);
}

.device-shell {
  width: 100%;
  max-width: 100%;
  height: var(--shell-height);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 10, 16, 0.96), rgba(8, 8, 12, 0.98));
  transition: max-width 0.24s ease;
}

.app-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 24;
  height: 78px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, rgba(6, 6, 10, 0.88), rgba(6, 6, 10, 0.55), rgba(6, 6, 10, 0));
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.locale-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.locale-chip {
  min-width: 42px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.locale-chip.is-active {
  background: rgba(105, 229, 255, 0.16);
  color: var(--text-1);
}

.screen-scroll {
  inset: 78px 0 86px;
}

.page-section {
  padding: 0 18px 28px;
  max-width: 980px;
  margin: 0 auto;
}

.page-subtitle {
  color: var(--text-2);
  font-size: 12px;
}

.brand-mark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
}

.showcase-banner,
.spotlight-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.showcase-banner,
.spotlight-art-card,
.community-banner-shell,
.winner-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 14, 22, 0.94), rgba(10, 10, 16, 0.98));
  box-shadow: var(--shadow-soft);
}

.showcase-banner {
  padding: 18px;
  align-items: center;
}

.showcase-banner img,
.spotlight-art,
.winner-showcase-art {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.showcase-copy h2,
.spotlight-grid h1 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.showcase-copy p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}

.onboarding-surface {
  padding: 0 18px 30px;
}

.spotlight-art-card {
  min-height: 320px;
  padding: 18px;
}

.hero-stack-polished {
  height: 100%;
  margin-top: 0;
}

.hero-stack-polished .preview-card {
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 16, 0.6);
}

.auth-credentials {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--text-2);
}

.community-banner-shell {
  min-height: 186px;
}

.community-banner-art {
  width: 100%;
  height: 186px;
  object-fit: cover;
}

.winner-showcase {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.winner-showcase-art {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.hero-card,
.detail-hero,
.winner-card,
.panel,
.auth-card,
.clip-row,
.mini-rank-card,
.member-card,
.activity-row,
.moderation-card,
.setting-row,
.duel-card,
.podium-card,
.profile-card {
  backdrop-filter: blur(18px);
}

.hero-card,
.detail-hero,
.winner-card {
  border-radius: 28px;
}

.hero-media {
  height: clamp(240px, 34vw, 320px);
}

.tall-media {
  height: clamp(280px, 40vw, 380px);
}

.hero-topline {
  inset: 18px 18px auto 18px;
}

.hero-content {
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.hero-score {
  background: rgba(8, 8, 12, 0.68);
}

.stats-grid.four-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rating-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bottom-nav {
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(12, 12, 20, 0.92);
  backdrop-filter: blur(22px);
}

.home-indicator,
.device-island,
.status-bar {
  display: none;
}

@media (min-width: 860px) {
  .showcase-banner,
  .spotlight-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .showcase-banner {
    padding: 22px 24px;
  }

  .stats-grid.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .member-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .shell-rail {
    display: flex;
    flex-direction: column;
  }

  .device-shell {
    max-width: min(1040px, calc(100vw - 376px));
  }

  .rail-toggle-button {
    display: inline-flex;
  }

  .shell-wrap.rail-collapsed {
    gap: 0;
  }

  .shell-wrap.rail-collapsed .shell-rail {
    width: 0;
    flex-basis: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    border-color: transparent;
    transform: translateX(-12px);
  }

  .shell-wrap.rail-collapsed .device-shell {
    max-width: min(1320px, calc(100vw - 48px));
  }

  .page-duel .duel-shell {
    padding-top: 18px;
  }

  .page-duel .duel-axis {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    margin: 0;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    font-size: 24px;
    pointer-events: none;
  }

  .page-duel .duel-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
  }

  .page-duel .duel-form-card {
    display: flex;
  }

  .page-duel .duel-card {
    height: 100%;
  }

  .page-duel .duel-thumb {
    height: clamp(260px, 28vw, 360px);
  }

  .page-duel .duel-card-body {
    min-height: 92px;
  }

  .page-section {
    padding: 0 26px 36px;
  }

  .screen-scroll {
    inset: 82px 0 92px;
  }
}

@media (max-width: 640px) {
  .shell-wrap {
    padding: 0;
  }

  .device-shell {
    height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .app-toolbar {
    padding: 14px 14px;
  }

  .page-section,
  .onboarding-surface,
  .auth-screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy h1,
  .auth-card h1 {
    font-size: 30px;
  }

  .action-row.three-up,
  .form-grid.two-columns,
  .action-row.two-up,
  .stats-grid.three-up {
    grid-template-columns: 1fr;
  }

  .member-grid,
  .rating-grid,
  .podium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reaction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (orientation: landscape) and (max-height: 720px) {
  .shell-wrap {
    padding: 0;
  }

  .shell-rail {
    display: none;
  }

  .rail-toggle-button {
    display: none;
  }

  .device-shell {
    height: 100dvh;
    border-radius: 0;
  }

  .app-toolbar {
    height: 66px;
    padding: 12px 14px;
  }

  .screen-scroll {
    inset: 66px 0 76px;
  }

  .page-section {
    padding: 0 16px 22px;
  }

  .showcase-banner,
  .spotlight-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-media,
  .tall-media,
  .duel-thumb {
    height: 220px;
  }
}

.oauth-stack {
  display: grid;
  gap: 10px;
}

.auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  padding: 0 12px;
}

.icon-button-stack {
  position: relative;
}

.toolbar-badge,
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: var(--text-1);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.toolbar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
}

.nav-badge {
  margin-left: auto;
}

.nav-badge-large {
  min-width: 24px;
  height: 24px;
  font-size: 11px;
}

.field-textarea,
.field.textarea,
textarea.field {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.field-compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.provider-row,
.message-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.provider-row {
  justify-content: space-between;
}

.provider-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.message-card {
  text-align: left;
}

.message-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.message-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-card-snippet {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.message-thread-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-thread-list {
  display: grid;
  gap: 12px;
}

.message-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.message-bubble.is-own {
  margin-left: auto;
  border-radius: 18px 18px 6px 18px;
  background: rgba(5, 224, 255, 0.08);
  border-color: rgba(5, 224, 255, 0.22);
}

.message-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  font-size: 11px;
}

.message-bubble-body {
  margin-top: 6px;
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-report-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.composer-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.composer-search-row .field {
  flex: 1 1 auto;
}

.recipient-picker {
  display: grid;
  gap: 10px;
}

.recipient-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.recipient-option:hover {
  transform: translateY(-1px);
  border-color: rgba(105, 229, 255, 0.18);
}

.recipient-option.is-selected {
  border-color: rgba(105, 229, 255, 0.3);
  background: rgba(105, 229, 255, 0.08);
}

.recipient-option-input {
  margin: 0;
  accent-color: var(--cyan);
}

.recipient-option-body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.recipient-option-body strong,
.recipient-option-body .body-muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-option-meta {
  max-width: 100%;
}

.recipient-chooser-empty {
  min-height: 132px;
}

.creator-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.member-card-action {
  width: 100%;
}

@media (max-width: 640px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }

  .composer-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .message-card-topline,
  .message-thread-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .message-bubble {
    max-width: 100%;
  }

  .message-report-form {
    flex-direction: column;
  }
}

/* --- 2026 polish pass: cinematic intro, toolbar removal, welcome tour, brand system --- */

.app-toolbar {
  display: none !important;
}

.brand-mark-svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.auth-lockup {
  width: min(264px, 72vw);
  height: auto;
}

.rail-top-stack {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.rail-locale {
  align-self: flex-start;
}

.rail-profile-card,
.floating-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 18, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.rail-profile-card {
  margin-top: 18px;
  padding: 14px 16px;
}

.rail-glass-cta {
  margin-top: 18px;
}

.floating-brand {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 28;
  padding: 10px 14px;
  max-width: calc(100% - 204px);
}

.floating-brand img {
  width: 38px;
  height: 38px;
}

.floating-brand span {
  display: flex;
  flex-direction: column;
}

.floating-brand strong {
  font-size: 14px;
  letter-spacing: -0.03em;
}

.floating-brand small {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.utility-cluster {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 28;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rail-toggle-button {
  display: none;
}

.utility-form {
  margin: 0;
}

.utility-login {
  min-width: 84px;
}

.utility-logout {
  min-width: 96px;
}

.screen-scroll {
  inset: 0 0 92px;
}

.page-section,
.onboarding-surface,
.auth-screen {
  padding-top: 92px;
}

.flash-stack {
  padding: 88px 16px 12px;
}

.auth-screen {
  max-width: 620px;
  margin: 0 auto;
}

.onboarding-screen {
  max-width: 1180px;
  margin: 0 auto;
}

.page-section-hero {
  padding-top: 100px;
}

.spotlight-grid-epic {
  gap: 20px;
}

.hero-copy-epic {
  display: grid;
  align-content: center;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-bullets span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.spotlight-art-epic {
  min-height: 420px;
}

.feature-panel {
  min-height: 100%;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 15, 22, 0.92), rgba(10, 10, 16, 0.95));
  box-shadow: var(--shadow-soft);
}

.feature-panel h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.feature-panel p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.showcase-banner-editorial {
  min-height: 260px;
}

.hero-card-editorial {
  border-color: rgba(255, 255, 255, 0.1);
}

.rail-brand-copy strong,
.floating-brand strong,
.page-title,
.hero-title,
.showcase-copy h2,
.spotlight-grid h1,
.feature-panel h3,
.welcome-tour h2 {
  text-wrap: balance;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.intro-overlay[hidden] {
  display: none;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-overlay-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(155, 108, 255, 0.24), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(105, 229, 255, 0.18), transparent 26%),
    radial-gradient(circle at 50% 82%, rgba(240, 201, 127, 0.14), transparent 24%),
    rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(22px);
}

.intro-overlay-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  padding: 32px 28px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.9), rgba(8, 8, 12, 0.88));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.intro-logo {
  width: min(320px, 78vw);
  height: auto;
  margin: 0 auto 18px;
}

.intro-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
}

.intro-overlay h2 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.intro-overlay p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}

.intro-words {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.intro-words span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: introPulse 1.9s ease-in-out infinite;
}

.intro-words span:nth-child(2) { animation-delay: 0.2s; }
.intro-words span:nth-child(3) { animation-delay: 0.4s; }

.intro-skip {
  margin-top: 22px;
}

@keyframes introPulse {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.welcome-stage {
  max-width: 980px;
}

.welcome-banner {
  align-items: center;
}

.welcome-tour {
  max-width: 760px;
  margin-inline: auto;
}

.tour-progress {
  display: flex;
  gap: 10px;
}

.tour-dot {
  flex: 1 1 0;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.tour-dot.is-active {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.tour-step {
  display: none;
}

.tour-step.is-active {
  display: block;
}

.welcome-tour h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.welcome-tour p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

.tour-list {
  display: grid;
  gap: 10px;
}

.tour-list-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-1);
  font-size: 14px;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.showcase-banner .showcase-copy,
.spotlight-grid .hero-copy {
  position: relative;
  z-index: 1;
}

.shell-rail {
  gap: 0;
}

.rail-nav {
  margin-top: 18px;
}

.page-onboarding .floating-brand,
.page-login .floating-brand,
.page-register .floating-brand,
.page-welcome .floating-brand {
  display: none;
}

.page-onboarding .utility-cluster,
.page-login .utility-cluster,
.page-register .utility-cluster,
.page-welcome .utility-cluster {
  top: 18px;
}

.page-onboarding .screen-scroll,
.page-login .screen-scroll,
.page-register .screen-scroll,
.page-welcome .screen-scroll {
  inset: 0;
}

.page-onboarding .bottom-nav,
.page-login .bottom-nav,
.page-register .bottom-nav,
.page-welcome .bottom-nav {
  display: none;
}

@media (min-width: 1120px) {
  .shell-wrap {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    gap: 24px;
    padding: 20px 24px;
  }

  .shell-rail {
    width: 296px;
    flex-basis: 296px;
    padding: 26px 24px;
  }

  .device-shell {
    max-width: min(1160px, calc(100vw - 352px));
  }

  .screen-scroll {
    inset: 0 0 96px;
  }

  .page-section,
  .onboarding-surface,
  .auth-screen {
    padding-top: 104px;
  }

  .floating-brand,
  .utility-cluster {
    top: 18px;
  }

  .page-section {
    max-width: 1120px;
  }

  .showcase-banner-editorial,
  .spotlight-grid-epic {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 22px;
    align-items: center;
  }

  .spotlight-art-epic {
    min-height: 460px;
  }

  .flash-stack {
    padding-top: 94px;
  }
}

@media (max-width: 860px) {
  .showcase-banner-editorial,
  .spotlight-grid-epic {
    grid-template-columns: 1fr;
  }

  .intro-overlay-content {
    padding: 28px 18px;
  }
}

@media (max-width: 640px) {
  .floating-brand {
    padding: 8px 10px;
    gap: 8px;
    max-width: calc(100% - 136px);
  }

  .floating-brand strong {
    font-size: 12px;
  }

  .floating-brand small {
    font-size: 9px;
  }

  .utility-cluster {
    gap: 6px;
  }

  .utility-login {
    min-width: 72px;
  }

  .utility-form {
    display: none;
  }

  .utility-logout {
    min-width: 78px;
    padding: 0 12px;
  }

  .page-section,
  .onboarding-surface,
  .auth-screen {
    padding-top: 88px;
  }

  .flash-stack {
    padding-top: 82px;
  }

  .intro-overlay h2,
  .welcome-tour h2 {
    font-size: 32px;
  }

  .tour-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tour-actions form,
  .tour-actions button {
    width: 100%;
  }
}

@media (orientation: landscape) and (max-height: 720px) {
  .page-section,
  .onboarding-surface,
  .auth-screen {
    padding-top: 76px;
  }

  .utility-cluster,
  .floating-brand {
    top: 12px;
  }

  .spotlight-art-epic {
    min-height: 320px;
  }

  .flash-stack {
    padding-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.no-js .intro-overlay {
  display: none !important;
}

.legal-footer {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 24px;
  padding: 0 4px 18px;
}

.legal-meta {
  color: var(--text-3);
  font-size: 11px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.legal-links a {
  color: var(--text-2);
  font-size: 13px;
}

.legal-links a:hover {
  color: var(--text-1);
}

@media (min-width: 1120px) {
  .shell-site-footer {
    width: min(1400px, calc(100% - 48px));
    padding: 0 8px 20px;
  }
}

@media (max-width: 640px) {
  .shell-site-footer {
    width: calc(100% - 28px);
    margin: 10px auto 18px;
  }

  .legal-links {
    gap: 10px 14px;
  }

  .legal-links a {
    font-size: 12px;
  }
}

.page-onboarding .shell-wrap {
  display: block;
  width: 100%;
  max-width: none;
  min-height: auto;
  padding: 0;
}

.page-onboarding .shell-rail,
.page-onboarding .floating-brand,
.page-onboarding .utility-cluster {
  display: none;
}

.page-onboarding .device-shell {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.page-onboarding .screen-scroll {
  position: relative;
  inset: auto;
  overflow: visible;
}

.page-onboarding .flash-stack {
  padding: 0 0 12px;
}

.page-onboarding .shell-site-footer {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto 24px;
  padding: 0 18px 18px;
}

@media (max-width: 640px) {
  .page-onboarding .shell-site-footer {
    width: calc(100% - 24px);
    padding: 0 10px 18px;
  }
}

/* --- 2026 landing page rebuild: clean, simple, epic --- */

.button-large {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  font-size: 15px;
}

.landing-root {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 16, 0.48);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.landing-brand-copy {
  display: flex;
  flex-direction: column;
}

.landing-brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.03em;
}

.landing-brand-copy small {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-stage {
  position: relative;
}

.landing-stage::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto 10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 93, 255, 0.18), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.landing-stage::after {
  content: "";
  position: absolute;
  inset: auto 8% -40px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 224, 255, 0.12), transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}

.landing-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 24px;
  align-items: center;
}

.landing-copy,
.landing-visual,
.landing-step-card,
.landing-system-panel,
.landing-final-cta {
  position: relative;
  z-index: 1;
}

.landing-copy {
  padding: 22px 0;
}

.landing-mark {
  width: fit-content;
  min-height: 38px;
  padding-inline: 16px;
  margin-bottom: 16px;
  border-radius: 999px;
}

.landing-copy h1,
.landing-step-card h2,
.landing-system-copy h2,
.landing-final-cta h2 {
  margin: 0;
  font-family: "Syne", "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.landing-copy h1 {
  max-width: 11ch;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.94;
}

.landing-lead {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.72;
}

.landing-bullets span {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.landing-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-demo-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.78), rgba(10, 10, 16, 0.9));
  box-shadow: var(--shadow-soft);
}

.landing-demo-box p,
.landing-system-copy p,
.landing-final-cta p,
.landing-step-card p {
  margin: 8px 0 0;
  color: var(--text-2);
  line-height: 1.65;
}

.landing-stat-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-stat-row .stat-box {
  min-height: 116px;
  padding: 18px 16px;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 18, 0.62);
  backdrop-filter: blur(18px);
}

.landing-stat-row .stat-value {
  font-size: clamp(24px, 3vw, 32px);
}

.landing-visual {
  display: flex;
  justify-content: center;
}

.landing-visual-shell {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1 / 1;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 14, 22, 0.84), rgba(8, 8, 12, 0.95));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.landing-visual-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.84), transparent 82%);
  opacity: 0.56;
}

.landing-orbit {
  position: absolute;
  inset: 7% 7% auto auto;
  width: 86%;
  height: auto;
  opacity: 0.96;
}

.landing-brand-seal {
  position: absolute;
  left: 6.2%;
  top: 8.2%;
  width: min(54%, 280px);
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.landing-brand-seal p {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.landing-float-card {
  position: absolute;
  width: min(44%, 258px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 16, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42);
}

.landing-float-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.landing-float-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 16px;
}

.landing-float-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.landing-float-copy strong {
  font-size: 15px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.landing-float-copy span {
  color: var(--text-3);
  font-size: 12px;
}

.landing-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(105, 229, 255, 0.22);
  background: rgba(105, 229, 255, 0.08);
  color: var(--text-1);
  font-weight: 800;
}

.landing-float-card.is-card-1 {
  top: 28%;
  left: 4.6%;
  transform: rotate(-7deg);
  animation: landingFloatOne 10s ease-in-out infinite;
}

.landing-float-card.is-card-2 {
  top: 16%;
  right: 3.8%;
  transform: rotate(6deg);
  animation: landingFloatTwo 11s ease-in-out infinite;
}

.landing-float-card.is-card-3 {
  left: 19%;
  bottom: 6.5%;
  width: min(50%, 296px);
  transform: rotate(-2deg);
  animation: landingFloatThree 12s ease-in-out infinite;
}

.landing-radar-chip {
  position: absolute;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 22, 0.68);
  backdrop-filter: blur(16px);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-radar-a { left: 9%; bottom: 18%; }
.landing-radar-b { right: 9%; bottom: 24%; }
.landing-radar-c { left: 44%; top: 48%; }

.landing-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.landing-step-card {
  min-height: 100%;
  padding: 22px 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 14, 22, 0.92), rgba(10, 10, 16, 0.96));
  box-shadow: var(--shadow-soft);
}

.landing-step-index {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.landing-step-card h2,
.landing-system-copy h2,
.landing-final-cta h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1;
}

.landing-system-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding: 22px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.9), rgba(9, 9, 14, 0.97));
  box-shadow: var(--shadow-soft);
}

.landing-system-copy {
  max-width: 48ch;
}

.landing-system-art-wrap {
  display: flex;
  justify-content: flex-end;
}

.landing-system-art {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: 28px;
}

.landing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(13, 13, 21, 0.88), rgba(8, 8, 13, 0.95));
  box-shadow: var(--shadow-soft);
}

.landing-final-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.intro-overlay-content-landing {
  width: min(760px, calc(100vw - 32px));
}

@keyframes landingFloatOne {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-10px); }
}

@keyframes landingFloatTwo {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-12px); }
}

@keyframes landingFloatThree {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-8px); }
}

@media (max-width: 1120px) {
  .landing-grid,
  .landing-system-panel {
    grid-template-columns: 1fr;
  }

  .landing-copy {
    padding-top: 8px;
  }

  .landing-copy h1 {
    max-width: 12ch;
  }

  .landing-system-art-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .landing-root {
    padding: 16px 14px 28px;
  }

  .landing-header {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-header-actions {
    justify-content: space-between;
  }

  .landing-demo-box {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .landing-final-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-step-grid,
  .landing-stat-row {
    grid-template-columns: 1fr;
  }

  .landing-visual-shell {
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  .landing-copy h1 {
    max-width: 11ch;
    font-size: clamp(42px, 13vw, 58px);
  }

  .landing-header-actions,
  .landing-cta-row,
  .landing-final-actions {
    width: 100%;
  }

  .landing-header-actions .button,
  .landing-cta-row .button,
  .landing-final-actions .button,
  .landing-demo-box form,
  .landing-demo-box form .button {
    width: 100%;
  }

  .landing-brand {
    width: 100%;
  }

  .landing-brand-seal {
    position: absolute;
    top: 6%;
    left: 6%;
    width: calc(100% - 12%);
  }

  .landing-float-card.is-card-1 {
    top: 33%;
    left: 6%;
    width: 54%;
  }

  .landing-float-card.is-card-2 {
    top: 18%;
    right: 5%;
    width: 48%;
  }

  .landing-float-card.is-card-3 {
    left: 14%;
    bottom: 8%;
    width: 60%;
  }

  .landing-radar-chip {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .landing-radar-a { left: 7%; bottom: 22%; }
  .landing-radar-b { right: 7%; bottom: 27%; }
  .landing-radar-c { left: 38%; top: 56%; }

  .landing-system-panel,
  .landing-final-cta,
  .landing-step-card {
    padding: 18px;
  }
}

@media (orientation: landscape) and (max-height: 740px) {
  .landing-root {
    padding-top: 12px;
  }

  .landing-grid {
    align-items: start;
  }

  .landing-visual-shell {
    max-width: 540px;
  }

  .landing-copy h1 {
    font-size: clamp(40px, 6vw, 62px);
  }
}
