:root {
  color-scheme: dark;
  --bg: #06101d;
  --bg-deep: #030812;
  --panel: rgba(20, 30, 45, 0.72);
  --panel-strong: rgba(27, 39, 59, 0.88);
  --line: rgba(156, 219, 255, 0.17);
  --line-strong: rgba(118, 240, 255, 0.42);
  --text: #f6fbff;
  --muted: #a9b8cf;
  --muted-2: #74849b;
  --cyan: #74f7ff;
  --cyan-2: #32c6ff;
  --green: #50e6b1;
  --violet: #8d7bff;
  --pink: #ff4fb7;
  --orange: #ff9d4a;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --font-display: "Space Grotesk", "Manrope", "Montserrat", system-ui, sans-serif;
  --font-body: "Manrope", "Nunito Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(54, 221, 255, 0.19), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(141, 123, 255, 0.2), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-shell {
  min-height: 100vh;
}

.page-main {
  min-height: calc(100vh - 86px);
}

.compact-page .section {
  padding-top: 72px;
}

.page-section {
  width: min(1180px, calc(100% - 40px));
}

.page-title {
  max-width: 920px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.95;
}

.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-map {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.page-map a {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  color: var(--text);
  background: rgba(3, 9, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.page-map a::after {
  color: var(--cyan);
  content: "→";
}

.page-map a:hover {
  transform: translateY(-4px);
  background: rgba(116, 247, 255, 0.08);
  border-color: var(--line-strong);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(116, 247, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 247, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), transparent 86%);
}

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

button,
textarea,
select,
input {
  font: inherit;
}

button {
  color: inherit;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 360px;
  height: 360px;
  z-index: 2;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(116, 247, 255, 0.13), transparent 65%);
  translate: -50% -50%;
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 40;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 18px rgba(116, 247, 255, 0.7);
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 6vw, 88px);
  background: rgba(5, 10, 20, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #06101d;
  font: 900 24px/1 var(--font-display);
  background: linear-gradient(135deg, var(--cyan), #e0d0ff);
  border-radius: 18px;
  box-shadow: 0 0 34px rgba(116, 247, 255, 0.24);
}

.brand strong {
  display: block;
  font: 900 22px/1.1 var(--font-display);
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.top-nav a {
  padding: 10px 16px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.token-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 0 22px rgba(116, 247, 255, 0.08);
}

.token-pill span {
  color: var(--muted);
}

.token-pill strong {
  color: var(--cyan);
}

.section {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  min-height: calc(100vh - 86px);
  gap: 56px;
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.75;
  animation: drift 8s ease-in-out infinite alternate;
}

.orb-left {
  width: 380px;
  height: 380px;
  left: -180px;
  top: 12%;
  background: radial-gradient(circle, rgba(80, 230, 177, 0.2), transparent 70%);
}

.orb-right {
  right: -140px;
  bottom: 12%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(141, 123, 255, 0.22), transparent 72%);
  animation-delay: -3s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 20px;
  padding: 9px 14px;
  color: var(--cyan);
  background: rgba(116, 247, 255, 0.12);
  border: 1px solid rgba(116, 247, 255, 0.2);
  border-radius: 999px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.055em;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.96;
}

h3 {
  font-size: 24px;
  line-height: 1;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #8fffe2);
  box-shadow: 0 18px 40px rgba(116, 247, 255, 0.22);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.button.full {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.hero-metrics article,
.studio-panel,
.flow-step,
.generator-shell,
.template-card,
.assistant-card,
.balance-card,
.chart-card,
.history-card,
.cabinet-card {
  background: linear-gradient(160deg, rgba(31, 44, 65, 0.82), rgba(14, 20, 32, 0.74));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-metrics article {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-metrics strong {
  display: block;
  color: var(--cyan);
  font: 900 30px/1 var(--font-display);
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: 560px;
}

.studio-panel {
  position: absolute;
  inset: 76px 0 0 74px;
  z-index: 2;
  padding: 22px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.studio-panel::before {
  position: absolute;
  inset: -1px;
  z-index: 0;
  content: "";
  background: radial-gradient(circle at 72% 16%, rgba(116, 247, 255, 0.18), transparent 38%);
  pointer-events: none;
}

.panel-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 18px var(--green);
}

.prompt-card {
  position: relative;
  margin-top: 24px;
  padding: 22px;
  background: rgba(2, 8, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.prompt-card span,
.cost-card span,
.chart-head span,
.template-card span,
.cabinet-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prompt-card p {
  margin: 12px 0 0;
  color: var(--text);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.pipeline span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(116, 247, 255, 0.18), var(--cyan), rgba(141, 123, 255, 0.22));
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.result-grid div {
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(116, 247, 255, 0.18), transparent 45%),
    linear-gradient(160deg, rgba(141, 123, 255, 0.2), rgba(255, 79, 183, 0.09));
}

.floating-card {
  position: absolute;
  z-index: 1;
  width: 230px;
  padding: 18px;
  pointer-events: none;
  background: rgba(15, 24, 38, 0.82);
  border: 1px solid rgba(116, 247, 255, 0.2);
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.floating-card span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  margin-top: 8px;
}

.floating-card small {
  margin-top: 8px;
  color: var(--muted);
}

.card-picture {
  top: 28px;
  left: 12px;
}

.card-video {
  top: 130px;
  right: -6px;
}

.card-music {
  left: 0;
  bottom: 24px;
}

.page-hero .floating-card {
  display: none;
}

.section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-title p {
  margin: 16px 0 0;
  font-size: 18px;
}

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

.flow-step {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease;
}

.flow-step::after {
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 110px;
  content: "";
  background: radial-gradient(circle, rgba(116, 247, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.flow-step.active,
.flow-step:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
}

.flow-step.active::after,
.flow-step:hover::after {
  opacity: 1;
}

.flow-step span {
  color: var(--cyan);
  font-weight: 900;
}

.flow-step h3 {
  margin-top: 80px;
}

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

.mode-card {
  min-height: 210px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  background: rgba(24, 35, 51, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mode-card:hover,
.mode-card.is-active {
  transform: translateY(-7px);
  background: rgba(22, 46, 62, 0.86);
  border-color: var(--line-strong);
}

.mode-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 48px;
  border-radius: 18px;
}

.image-icon {
  background: linear-gradient(135deg, #7fffd4, #4d8cff);
}

.video-icon {
  background: linear-gradient(135deg, #817bff, #ff77da);
}

.music-icon {
  background: linear-gradient(135deg, #ffbd59, #7cffd2);
}

.voice-icon {
  background: linear-gradient(135deg, #ff5aa8, #80e5ff);
}

.mode-card strong,
.mode-card small {
  display: block;
}

.mode-card strong {
  font: 900 24px/1.1 var(--font-display);
}

.mode-card small {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.generator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.generator-main,
.cost-card {
  padding: 18px;
  background: rgba(4, 10, 20, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
}

.generator-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.generator-tabs button,
.quick-actions button,
.voice-preview-list button,
.balance-actions button {
  padding: 10px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.generator-tabs button.is-active {
  color: #03111e;
  background: var(--cyan);
}

.generator-panel {
  display: none;
}

.generator-panel.is-active {
  display: block;
  animation: panelIn 280ms ease both;
}

.generator-panel label,
.field-row label {
  display: block;
  color: var(--text);
  font-weight: 900;
}

textarea,
select {
  width: 100%;
  color: var(--text);
  background: rgba(3, 9, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  outline: none;
}

textarea {
  min-height: 180px;
  margin-top: 10px;
  padding: 18px;
  resize: vertical;
}

select {
  margin-top: 10px;
  padding: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.quick-actions,
.voice-preview-list,
.balance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.upload-box {
  display: grid;
  min-height: 96px;
  margin-top: 16px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(116, 247, 255, 0.35);
  border-radius: 18px;
  background: rgba(116, 247, 255, 0.06);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 84px;
  margin-top: 16px;
  padding: 0 16px;
  background: rgba(116, 247, 255, 0.06);
  border-radius: 18px;
}

.waveform i {
  width: 100%;
  height: 28%;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  border-radius: 999px;
  animation: pulseBar 1.2s ease-in-out infinite alternate;
}

.waveform i:nth-child(2) { animation-delay: 0.1s; }
.waveform i:nth-child(3) { animation-delay: 0.2s; }
.waveform i:nth-child(4) { animation-delay: 0.3s; }
.waveform i:nth-child(5) { animation-delay: 0.4s; }
.waveform i:nth-child(6) { animation-delay: 0.5s; }
.waveform i:nth-child(7) { animation-delay: 0.6s; }
.waveform i:nth-child(8) { animation-delay: 0.7s; }

.cost-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cost-card strong {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

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

.template-card {
  position: relative;
  min-height: 300px;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease;
}

.template-card::before {
  display: block;
  height: 116px;
  margin-bottom: 36px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.template-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
}

.template-card p {
  min-height: 52px;
}

.template-card strong {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
}

.gradient-a { background: linear-gradient(145deg, rgba(102, 82, 255, 0.58), rgba(19, 202, 255, 0.16)); }
.gradient-b { background: linear-gradient(145deg, rgba(55, 204, 225, 0.5), rgba(94, 255, 209, 0.12)); }
.gradient-c { background: linear-gradient(145deg, rgba(73, 132, 255, 0.58), rgba(174, 131, 255, 0.18)); }
.gradient-d { background: linear-gradient(145deg, rgba(255, 69, 151, 0.48), rgba(140, 85, 255, 0.14)); }
.gradient-e { background: linear-gradient(145deg, rgba(255, 157, 74, 0.5), rgba(255, 79, 183, 0.14)); }
.gradient-f { background: linear-gradient(145deg, rgba(62, 240, 176, 0.48), rgba(57, 146, 255, 0.13)); }

.assistant-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.chat-column,
.prompt-output {
  min-height: 360px;
  padding: 22px;
  background: rgba(3, 9, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.bubble {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
}

.bubble.user {
  margin-left: auto;
  color: #04111d;
  background: var(--cyan);
}

.bubble.bot {
  background: rgba(255, 255, 255, 0.08);
}

.prompt-output p {
  color: var(--text);
  font-size: 20px;
}

.finance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.balance-card,
.chart-card,
.history-card,
.cabinet-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.balance-card strong {
  display: block;
  margin-top: 16px;
  color: var(--cyan);
  font: 900 clamp(32px, 5vw, 56px)/1 var(--font-display);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 240px;
  margin-top: 22px;
}

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--cyan), rgba(141, 123, 255, 0.35));
  box-shadow: 0 0 24px rgba(116, 247, 255, 0.18);
}

.history-card {
  grid-column: 1 / -1;
}

.table-row {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 0.6fr;
  gap: 12px;
  padding: 16px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-row.head {
  color: var(--text);
  font-weight: 900;
}

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

.cabinet-card {
  min-height: 230px;
}

.cabinet-card h3 {
  margin-top: 70px;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 28;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  background: rgba(4, 10, 20, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.bottom-nav a {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: var(--muted);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--text);
  background: rgba(116, 247, 255, 0.13);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -22px, 0) scale(1.08); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseBar {
  from { height: 24%; }
  to { height: 88%; }
}

@media (max-width: 1040px) {
  .top-nav {
    display: none;
  }

  .hero,
  .generator-shell,
  .assistant-card,
  .finance-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 620px;
  }

  .studio-panel {
    left: 20px;
    right: 20px;
  }

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

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

@media (max-width: 720px) {
  .shell-header {
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .token-pill span {
    display: none;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-metrics,
  .mode-grid,
  .flow-board,
  .template-grid,
  .cabinet-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 540px;
  }

  .floating-card {
    display: none;
  }

  .studio-panel {
    inset: 130px 0 0 0;
  }

  .bottom-nav {
    display: grid;
  }

  .history-card {
    overflow-x: auto;
  }

  .table-row {
    min-width: 520px;
  }
}
