:root {
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.04);
  --text: #f3f7ff;
  --muted: rgba(223, 232, 249, 0.64);
  --line: rgba(145, 170, 255, 0.12);
  --accent: #eef4ff;
  --accent-2: #9eb7ff;
  --max-width: 1280px;
  --glass-stroke: rgba(192, 208, 255, 0.1);
  --glass-shadow: 0 28px 80px rgba(3, 8, 22, 0.44);
  --glass-linear:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(170, 192, 255, 0.06) 22%, rgba(103, 129, 255, 0.14) 58%, rgba(255, 255, 255, 0.02) 100%);
  --glass-panel:
    linear-gradient(180deg, rgba(12, 16, 28, 0.82) 0%, rgba(5, 8, 16, 0.72) 100%);
  --glass-soft:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(168, 186, 255, 0.06) 52%, rgba(255, 255, 255, 0.02) 100%);
  --glass-hover:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(184, 201, 255, 0.1) 52%, rgba(255, 255, 255, 0.04) 100%);
  --festival-accent: #6d8ff2;
  --festival-accent-2: #5280d3;
  --festival-stroke: rgba(157, 182, 255, 0.44);
  --festival-glow: rgba(130, 169, 255, 0.28);
  --page-wash:
    linear-gradient(180deg, #000000 0%, #000000 100%);
}

:root[data-theme="light"] {
  --bg: #f5f9ff;
  --panel: rgba(255, 255, 255, 0.72);
  --text: #10233b;
  --muted: rgba(16, 35, 59, 0.6);
  --line: rgba(79, 108, 170, 0.12);
  --accent: #2451d6;
  --accent-2: #2a5ce6;
  --glass-stroke: rgba(109, 136, 195, 0.12);
  --glass-shadow: 0 24px 60px rgba(121, 146, 196, 0.14);
  --glass-linear:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 250, 255, 0.72) 26%, rgba(208, 223, 255, 0.36) 62%, rgba(255, 255, 255, 0.28) 100%);
  --glass-panel:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(234, 242, 255, 0.68) 100%);
  --glass-soft:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(220, 231, 255, 0.42) 54%, rgba(255, 255, 255, 0.24) 100%);
  --glass-hover:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(227, 236, 255, 0.62) 52%, rgba(255, 255, 255, 0.32) 100%);
  --page-wash:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.92), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(162, 191, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8ff 52%, #e7f0ff 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    var(--page-wash),
    var(--bg);
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.site-shell {
  width: 100%;
  margin: 0;
  padding-inline: clamp(14px, 2.2vw, 28px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 14px;
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-stroke);
  background:
    var(--glass-soft),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  width: 100%;
  padding-bottom: 80px;
  background: #000;
}

.hero::after {
  display: none;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}

.hero-beam-left,
.hero-beam-right {
  position: absolute;
  pointer-events: none;
  width: 60vw;
  height: 80vh;
  max-width: 900px;
  max-height: 980px;
  min-width: 520px;
  min-height: 520px;
  opacity: 0;
  filter: blur(68px);
  transition: opacity 1.2s ease;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.hero-beam-left {
  left: -10%;
  top: -26%;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(160, 205, 255, 0.75) 0%, rgba(70, 135, 235, 0.4) 56%, rgba(70, 135, 235, 0) 85%);
  transform: rotate(20deg);
}

.hero-beam-right {
  right: -10%;
  top: -26%;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(160, 205, 255, 0.75) 0%, rgba(70, 135, 235, 0.4) 56%, rgba(70, 135, 235, 0) 85%);
  transform: rotate(-20deg);
}

.hero.hero-ready .hero-beam-left,
.hero.hero-ready .hero-beam-right {
  animation: hero-beam-fade 1.15s ease 1.05s forwards;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: calc(100vh - 120px);
  width: 100%;
}

.hero-copy-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding-top: 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(230, 238, 255, 0.9);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9fd0ff;
  box-shadow: 0 0 12px rgba(129, 183, 255, 0.85);
}

.hero-word {
  margin-top: 24px;
  position: relative;
  display: inline-block;
  max-width: 100%;
  font-size: clamp(5.2rem, 14vw, 11rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.06em;
  user-select: none;
  white-space: nowrap;
  transform: none;
}

.hero-word-front {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, #d7deec 56%, #9099ac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 860px;
  color: rgba(201, 209, 226, 0.78);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero-main-button {
  background: linear-gradient(135deg, #2f79ff 0%, #42d6ff 100%);
  color: #fff;
  border: 0;
}

.hero-dashboard {
  display: none;
}

.dash-sidebar,
.dash-config {
  padding: 26px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  align-content: start;
  gap: 12px;
}

.dash-config {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.dash-sidebar strong,
.dash-config h4 {
  margin: 0 0 6px;
  color: rgba(241, 245, 255, 0.94);
  font-size: 0.92rem;
}

.dash-sidebar span,
.dash-config-item span {
  color: rgba(200, 210, 229, 0.68);
  font-size: 0.82rem;
}

.dash-center {
  padding: 24px;
  display: grid;
  grid-template-rows: 1fr 0.92fr;
  gap: 18px;
}

.dash-chart,
.dash-logs {
  border-radius: 16px;
  border: 1px solid rgba(159, 188, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.dash-chart {
  padding: 20px;
  display: flex;
  align-items: flex-end;
}

.dash-bars {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: end;
}

.dash-bars span {
  height: var(--h);
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, rgba(84, 154, 255, 0.95), rgba(73, 221, 255, 0.66));
}

.dash-logs {
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}

.dash-logs p {
  margin: 0;
  color: rgba(204, 215, 236, 0.84);
  font-size: 0.9rem;
}

.dash-config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-config-item strong {
  color: rgba(234, 241, 255, 0.9);
  font-size: 0.82rem;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.hero.hero-ready .hero-reveal {
  animation: hero-reveal-up 0.72s ease forwards;
  animation-delay: var(--reveal-delay, 0s);
}

.hero-legacy {
  width: min(1150px, calc(100vw - 48px));
  min-height: 750px;
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(158, 190, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(14, 22, 40, 0.76), rgba(8, 13, 24, 0.82)),
    rgba(7, 11, 20, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.prompt-builder-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(158, 190, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.prompt-builder-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: center;
}

.prompt-festival-input {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(158, 190, 255, 0.2);
  background: rgba(10, 14, 24, 0.66);
  padding: 0 12px;
}

.visual-prompt-output {
  margin-top: 12px;
  width: 100%;
  min-height: 180px;
  border-radius: 14px;
  border: 1px solid rgba(158, 190, 255, 0.2);
  background: rgba(8, 12, 22, 0.8);
  color: rgba(231, 240, 255, 0.88);
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

.image-return-card {
  margin-top: 14px;
}

.image-return-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#visual-image-input {
  display: none;
}

.image-return-note {
  color: rgba(181, 196, 226, 0.8);
  font-size: 0.84rem;
}

.image-dropzone {
  margin-top: 12px;
  min-height: 84px;
  border-radius: 14px;
  border: 1px dashed rgba(160, 186, 240, 0.35);
  background: rgba(8, 12, 22, 0.66);
  color: rgba(210, 222, 245, 0.82);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
}

.image-dropzone.dragover {
  border-color: rgba(231, 240, 255, 0.75);
  background: rgba(27, 40, 66, 0.8);
}

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

.image-gallery-item {
  border-radius: 14px;
  border: 1px solid rgba(158, 190, 255, 0.25);
  background: rgba(8, 12, 22, 0.7);
  overflow: hidden;
}

.image-gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.image-gallery-meta {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.image-gallery-meta strong {
  font-size: 0.9rem;
}

.image-gallery-meta span {
  color: rgba(188, 202, 228, 0.8);
  font-size: 0.78rem;
}

.image-gallery-meta button {
  justify-self: start;
}

@keyframes hero-reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-beam-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

:root[data-theme="light"] .hero-background {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.96), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(123, 166, 255, 0.16), transparent 24%),
    radial-gradient(circle at 74% 44%, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, #eef5ff 56%, #e3edff 100%);
}

:root[data-theme="light"] .hero-core {
  background:
    radial-gradient(circle at 40% 46%, rgba(255, 255, 255, 0.98) 0%, rgba(227, 236, 255, 0.92) 12%, rgba(146, 181, 255, 0.46) 26%, rgba(137, 170, 255, 0.08) 48%, rgba(137, 170, 255, 0) 64%),
    radial-gradient(circle at 56% 45%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 34%);
  mix-blend-mode: normal;
  filter: blur(10px);
}

:root[data-theme="light"] .hero-beam {
  mix-blend-mode: normal;
  filter: blur(30px);
}

:root[data-theme="light"] .hero-light-main,
:root[data-theme="light"] .hero-light-rim,
:root[data-theme="light"] .hero-smoke {
  mix-blend-mode: normal;
}

:root[data-theme="light"] .hero-light-main {
  background:
    radial-gradient(circle at calc(var(--mx, 74%) + 8%) calc(var(--my, 38%) - 6%), rgba(255, 255, 255, 0.96), transparent 0 11%),
    radial-gradient(circle at var(--mx, 74%) var(--my, 42%), rgba(114, 150, 255, 0.42), transparent 0 28%),
    radial-gradient(circle at calc(var(--mx, 74%) - 10%) calc(var(--my, 42%) + 12%), rgba(255, 255, 255, 0.48), transparent 0 24%);
}

:root[data-theme="light"] .hero-light-rim {
  background:
    radial-gradient(ellipse at calc(var(--mx, 74%) + 16%) calc(var(--my, 42%) + 2%), rgba(255, 255, 255, 0.4), transparent 0 18%),
    conic-gradient(from 200deg at 88% 58%, rgba(255, 255, 255, 0), rgba(128, 154, 255, 0.28), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

:root[data-theme="light"] .hero-smoke-a {
  background:
    radial-gradient(circle at calc(var(--mx, 74%) - 22%) calc(var(--my, 42%) + 8%), rgba(122, 150, 255, 0.26), transparent 0 18%),
    radial-gradient(circle at calc(var(--mx, 74%) - 10%) calc(var(--my, 42%) + 4%), rgba(255, 255, 255, 0.52), transparent 0 14%);
}

:root[data-theme="light"] .hero-smoke-b {
  background:
    radial-gradient(circle at calc(var(--mx, 74%) - 10%) calc(var(--my, 42%) + 20%), rgba(115, 137, 221, 0.22), transparent 0 22%),
    radial-gradient(circle at calc(var(--mx, 74%) + 18%) calc(var(--my, 42%) + 4%), rgba(255, 255, 255, 0.32), transparent 0 16%);
}

:root[data-theme="light"] .hero-smoke-c {
  background:
    radial-gradient(circle at calc(var(--mx, 74%) - 34%) calc(var(--my, 42%) + 24%), rgba(139, 163, 227, 0.18), transparent 0 24%),
    radial-gradient(circle at calc(var(--mx, 74%) + 20%) calc(var(--my, 42%) + 18%), rgba(155, 174, 255, 0.18), transparent 0 20%);
}

:root[data-theme="light"] .hero-noise {
  opacity: 0.02;
}

.subnav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  padding: 18px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  justify-content: center;
}

.subnav a {
  padding: 10px 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.subnav a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: calc(100vh - 120px);
  width: 100%;
}

.hero-copy-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding-top: 52px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-word {
  margin-top: 34px;
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding-right: 0.16em;
  font-size: clamp(4.8rem, 14vw, 11.2rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  user-select: none;
  white-space: nowrap;
  transform: none;
}

.hero-word span {
  display: block;
}

.hero-word-back {
  position: absolute;
  inset: 0;
  color: rgba(132, 158, 255, 0.38);
  filter: blur(26px);
  transform: translate3d(calc(var(--dx, 0px) * -0.08), calc(var(--dy, 0px) * -0.06), 0) scale(1.02);
}

.hero-word-front {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(228, 236, 255, 0.96) 32%, rgba(172, 189, 255, 0.82) 72%, rgba(132, 156, 242, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 36px rgba(255, 255, 255, 0.12),
    0 0 96px rgba(108, 138, 255, 0.28);
}

:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .subnav,
:root[data-theme="light"] .nav a {
  color: rgba(16, 32, 52, 0.58);
}

:root[data-theme="light"] .brand {
  color: rgba(16, 32, 52, 0.92);
}

:root[data-theme="light"] .subnav a:hover,
:root[data-theme="light"] .nav a:hover {
  color: rgba(16, 32, 52, 0.9);
}

:root[data-theme="light"] .hero-word-back {
  color: rgba(115, 136, 227, 0.24);
}

:root[data-theme="light"] .hero-word-front {
  background:
    linear-gradient(180deg, rgba(18, 33, 58, 0.96) 0%, rgba(43, 80, 162, 0.94) 50%, rgba(119, 149, 231, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.42),
    0 0 44px rgba(115, 141, 234, 0.14);
}

.hero-copy {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(245, 247, 251, 0.72);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(760px, 96%);
  min-height: 114px;
  margin: 18px auto 0;
  padding: 0 18px 0 28px;
  border-radius: 28px;
  border: 1px solid var(--glass-stroke);
  background:
    var(--glass-linear),
    linear-gradient(180deg, rgba(12, 14, 24, 0.82) 0%, rgba(8, 9, 15, 0.72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  transform: translate3d(calc(var(--dx, 0px) * 0.04), calc(var(--dy, 0px) * 0.02), 0);
}

.hero-prompt-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 1.18rem;
}

.hero-prompt-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.hero-prompt-arrow {
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(145, 167, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-prompt-arrow:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(145, 167, 255, 0.18)),
    rgba(255, 255, 255, 0.1);
}

.hero-prompt:focus-within {
  border-color: rgba(196, 208, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--glass-shadow),
    0 0 0 1px rgba(147, 172, 255, 0.2);
}

.hero-announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(930px, 100%);
  margin-top: 24px;
  justify-content: center;
}

.hero-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.hero-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background:
    var(--glass-soft),
    rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 208, 255, 0.22);
  background:
    var(--glass-hover),
    rgba(255, 255, 255, 0.05);
}

.hero-announcement-copy {
  max-width: 560px;
  text-align: center;
}

.hero-announcement-copy p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.65;
}

#festival-result-english {
  color: rgba(173, 190, 224, 0.9);
  font-size: 0.9rem;
}

.hero-announcement-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--glass-stroke);
  background:
    var(--glass-soft),
    rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.festival-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  width: min(980px, 100%);
  margin-top: 22px;
  margin-inline: auto;
}

.festival-panel > .festival-card:first-child {
  grid-column: 1 / -1;
}

.festival-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.festival-main-col {
  min-width: 0;
  text-align: left;
}

.festival-main-col-copy {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.festival-card-wide {
  grid-column: 1 / -1;
}

.festival-card {
  padding: 20px;
  border-radius: 24px;
  background:
    var(--glass-linear),
    var(--glass-panel);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  box-shadow: var(--glass-shadow);
}

.festival-card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.festival-card-label,
.festival-copy-label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.festival-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.festival-tag {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(148, 170, 255, 0.06));
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.festival-palette-block {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.festival-copy-block {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.festival-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.festival-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: var(--swatch);
  cursor: pointer;
}

.festival-palette-button {
  justify-self: start;
}

.festival-action-button {
  color: #0d1526;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(223, 233, 251, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 28px rgba(99, 131, 211, 0.24);
}

.festival-copy-list {
  display: grid;
  gap: 14px;
}

.festival-copy-item {
  padding: 14px 0 0;
}

.festival-copy-item p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  text-align: left;
}

.external-entry-state {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.external-entry-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.external-entry-item {
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(130, 148, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
  border: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.external-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.external-entry-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.external-entry-source {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.external-entry-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.external-entry-desc {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.hero-floating {
  position: absolute;
  right: 0;
  top: 128px;
}

.hero-canvas-hint {
  position: static;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(130, 148, 255, 0.05));
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] .hero-prompt-input,
:root[data-theme="light"] .hero-announcement-copy p,
:root[data-theme="light"] .festival-copy-item p,
:root[data-theme="light"] .external-entry-title,
:root[data-theme="light"] .work-title,
:root[data-theme="light"] .system-card h3,
:root[data-theme="light"] .contact-card h2 {
  color: rgba(16, 32, 52, 0.92);
}

:root[data-theme="light"] .hero-prompt-input::placeholder,
:root[data-theme="light"] .festival-card-label,
:root[data-theme="light"] .festival-copy-label,
:root[data-theme="light"] .external-entry-source,
:root[data-theme="light"] .external-entry-state,
:root[data-theme="light"] .hero-canvas-hint {
  color: rgba(16, 32, 52, 0.52);
}

:root[data-theme="light"] .festival-tag,
:root[data-theme="light"] .work-tag {
  color: rgba(16, 32, 52, 0.72);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(215, 228, 255, 0.4));
}

:root[data-theme="light"] .external-entry-item {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(208, 223, 255, 0.34)),
    rgba(255, 255, 255, 0.22);
}

:root[data-theme="light"] .external-entry-desc,
:root[data-theme="light"] .section-head p,
:root[data-theme="light"] .work-meta,
:root[data-theme="light"] .system-card p,
:root[data-theme="light"] .contact-card p:last-of-type {
  color: rgba(16, 32, 52, 0.68);
}

:root[data-theme="light"] .work-frame {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(226, 235, 252, 0.84));
}

:root[data-theme="light"] .button.primary {
  background: linear-gradient(180deg, rgba(41, 90, 225, 0.98), rgba(81, 125, 247, 0.9));
  color: #f7faff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 34px rgba(77, 114, 227, 0.2);
}

:root[data-theme="light"] .hero-prompt-arrow {
  color: rgba(19, 34, 55, 0.92);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--glass-stroke);
  border-radius: 999px;
  background:
    var(--glass-soft),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.topbar-cta:hover,
.hero-announcement-button:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 208, 255, 0.22);
  background:
    var(--glass-hover),
    rgba(255, 255, 255, 0.05);
}

.button.primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(217, 228, 255, 0.92));
  color: #050505;
  border-color: transparent;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 32px rgba(171, 190, 255, 0.18);
}

.button.secondary {
  background:
    var(--glass-soft),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.system-card,
.work-card,
.contact-card {
  background:
    var(--glass-linear),
    var(--glass-panel);
  border: 1px solid var(--glass-stroke);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.section {
  padding: 48px 0 90px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#work.section {
  margin-top: 0;
  padding-top: 58px;
}

.section-alt {
  border-top: 0;
  border-bottom: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head p,
.work-meta,
.contact-card p:last-of-type {
  color: var(--muted);
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin-inline: auto;
}

.work-card {
  overflow: hidden;
}

.work-frame {
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.85), rgba(8, 12, 22, 0.75));
  border-bottom: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.work-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.work-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #04070f;
}

.work-card-ready .work-preview {
  opacity: 1;
}

.work-frame-fallback {
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.85), rgba(8, 12, 22, 0.75));
}

.work-fallback {
  width: 100%;
  padding: 18px;
  text-align: center;
  color: rgba(245, 247, 251, 0.78);
  font-size: 0.9rem;
}

.work-body {
  padding: 22px;
  text-align: center;
}

.work-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.work-title {
  margin: 0;
  font-size: 1.2rem;
}

.work-tag {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(130, 148, 255, 0.04));
  font-size: 0.75rem;
  white-space: nowrap;
}

.work-meta {
  margin: 14px 0 18px;
  font-size: 0.95rem;
}

.work-link {
  color: var(--festival-accent-2);
  font-size: 0.95rem;
  font-weight: 600;
}

.method-flow {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.method-step {
  padding: 4px 2px;
  text-align: center;
}

.method-step-no {
  display: inline-block;
  color: rgba(215, 228, 255, 0.88);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.method-step h3 {
  margin: 12px 0 8px;
  font-size: 1.06rem;
}

.method-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.method-arrow {
  color: var(--festival-accent-2);
  opacity: 0.85;
  font-size: 1.4rem;
}

.contact-plain {
  padding: 12px 0 0;
  width: min(1120px, 100%);
  margin-inline: auto;
  text-align: center;
}

.contact-plain h2 {
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.5;
  font-weight: 600;
}

@media (max-width: 960px) {
  .work-grid,
  .method-flow {
    grid-template-columns: 1fr;
  }

  .subnav {
    gap: 18px;
    overflow: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-announcement {
    flex-direction: column;
    align-items: center;
  }

  .festival-panel {
    grid-template-columns: 1fr;
  }

  .festival-palette-button {
    justify-self: center;
  }

  .festival-main-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .festival-main-col-copy {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
  }

  .hero-floating {
    display: none;
  }

  .method-arrow {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar {
    flex-wrap: wrap;
    padding: 14px 0 12px;
  }

  .nav-primary {
    display: none;
  }

  .hero-copy-block {
    padding-top: 54px;
  }

  #work.section {
    margin-top: -8px;
    padding-top: 44px;
  }

  .hero-word {
    margin-top: 16px;
    font-size: clamp(4.2rem, 21vw, 6.2rem);
  }

  .hero-legacy {
    width: min(1150px, calc(100vw - 24px));
    min-height: auto;
    padding: 14px;
  }

  .prompt-builder-row {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    width: min(1150px, calc(100vw - 24px));
    height: auto;
    min-height: 520px;
    grid-template-columns: 1fr;
  }

  .dash-sidebar,
  .dash-config {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .dash-config {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 0;
  }

  .hero-prompt {
    min-height: 88px;
    padding: 0 14px 0 18px;
    border-radius: 22px;
  }

  .hero-prompt-input {
    font-size: 1rem;
  }

  .hero-canvas-hint {
    top: auto;
    bottom: 18px;
  }

  .section {
    padding: 36px 0 72px;
  }

  .work-body,
  .method-step,
  .contact-plain {
    padding: 18px;
  }
}
