:root {
  --navy: #071833;
  --navy-mid: #0d2a5c;
  --blue: #1a3f8f;
  --blue-bright: #3b78e7;
  --crimson: #b91c1c;
  --gold: #d4a24a;
  --gold-soft: #f0d39a;
  --ink: #121a2b;
  --muted: #5c6b84;
  --paper: #f3f6fb;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(7, 24, 51, 0.1);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-accent: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1040px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 480px at 100% 8%, rgba(212, 162, 74, 0.14), transparent 55%),
    radial-gradient(700px 420px at 0% 35%, rgba(26, 63, 143, 0.1), transparent 50%),
    linear-gradient(180deg, #e2eaf6 0%, #e8eef8 40%, #eef3fa 100%);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise,
.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.noise {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-glow {
  background:
    radial-gradient(40% 30% at 80% 0%, rgba(212, 162, 74, 0.08), transparent),
    radial-gradient(30% 25% at 10% 60%, rgba(59, 120, 231, 0.05), transparent);
}

.site-nav,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 6vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-solid {
  padding: 0.85rem 6vw;
  background: rgba(6, 16, 34, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(240, 211, 154, 0.18);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.14em;
  font-size: 0.98rem;
  transition: transform 0.35s var(--ease);
}

.brand-mark:hover {
  transform: translateY(-1px);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 16px rgba(212, 162, 74, 0.7);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.site-nav nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  position: relative;
}

.site-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold-soft);
  transition: width 0.35s var(--ease);
}

.site-nav nav a:hover {
  color: #fff;
}

.site-nav nav a:hover::after {
  width: 100%;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end start;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #061022;
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.15s linear;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6, 16, 34, 0.96) 12%, rgba(10, 32, 72, 0.78) 48%, rgba(140, 42, 28, 0.35) 100%),
    radial-gradient(80% 70% at 70% 80%, rgba(212, 162, 74, 0.28), transparent 55%),
    linear-gradient(180deg, #050d1c 0%, #0a2048 58%, #1a2748 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(240, 211, 154, 0.65);
  animation: floatUp linear infinite;
  opacity: 0;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: spin 48s linear infinite;
}

.orbit-a {
  width: 70vmax;
  height: 70vmax;
  right: -22vmax;
  bottom: -34vmax;
  border-color: rgba(240, 211, 154, 0.14);
}

.orbit-b {
  width: 48vmax;
  height: 48vmax;
  right: -8vmax;
  bottom: -20vmax;
  animation-duration: 32s;
  animation-direction: reverse;
  border-color: rgba(255, 255, 255, 0.07);
}

.track-curve {
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 55%;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 42%, rgba(185, 28, 28, 0.18) 43%, rgba(185, 28, 28, 0.08) 58%, transparent 70%);
  transform: perspective(800px) rotateX(55deg);
  opacity: 0.85;
}

.sun-arc {
  position: absolute;
  width: 72vmax;
  height: 72vmax;
  right: -20vmax;
  bottom: -38vmax;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 224, 160, 0.55), rgba(212, 162, 74, 0.18) 34%, transparent 62%);
  animation: glow 9s ease-in-out infinite alternate;
  filter: blur(2px);
}

.wave-motif {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  width: 100%;
  height: min(34vh, 280px);
  opacity: 0.55;
}

.wave-path {
  stroke-width: 1.4;
  stroke-linecap: round;
  fill: none;
}

.wave-1 {
  stroke: rgba(240, 211, 154, 0.55);
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawWave 4.8s var(--ease) 0.2s forwards, pulseWave 7s ease-in-out 5s infinite;
}

.wave-2 {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawWave 5.2s var(--ease) 0.5s forwards, pulseWave 8s ease-in-out 5.4s infinite;
}

.wave-3 {
  stroke: rgba(59, 120, 231, 0.28);
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawWave 5.6s var(--ease) 0.8s forwards, pulseWave 9s ease-in-out 5.8s infinite;
}

.lane {
  position: absolute;
  left: -10%;
  height: 1px;
  width: 120%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: dash 7s ease-in-out infinite;
}

.lane-1 { top: 36%; opacity: 0.3; }
.lane-2 { top: 46%; opacity: 0.5; animation-delay: 1.1s; }
.lane-3 { top: 56%; opacity: 0.22; animation-delay: 2.2s; }

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 18vh 6vw 14vh;
  max-width: 780px;
}

.brand-hero {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.14em;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.45);
  animation: rise 1s var(--ease) both;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.45rem);
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  animation: rise 1s var(--ease) 0.12s both;
}

.lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  animation: rise 1s var(--ease) 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  animation: rise 1s var(--ease) 0.32s both;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  z-index: 3;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  text-decoration: none;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  animation: scrollDot 1.8s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.96rem;
  letter-spacing: 0.1em;
  padding: 0.95rem 1.7rem;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #e6b65a, var(--gold) 45%, #b8862f);
  color: #1a1204;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(212, 162, 74, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(212, 162, 74, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.section {
  padding: 4.5rem 6vw;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.4rem;
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.02rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.rules {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(212, 162, 74, 0.16), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(26, 63, 143, 0.12), transparent 50%),
    linear-gradient(180deg, #e4ebf6 0%, #dce6f4 48%, #e8eef8 100%);
}

.rule-list {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.35rem;
  display: grid;
  gap: 0;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(7, 24, 51, 0.08);
  box-shadow: 0 10px 30px rgba(7, 24, 51, 0.04);
}

.rule-list li {
  display: grid;
  grid-template-columns: 7.8rem 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.15rem 0.15rem;
  border-bottom: 1px solid rgba(7, 24, 51, 0.1);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), background 0.25s ease, padding-left 0.25s var(--ease);
}

.rules.in .rule-list li {
  opacity: 1;
  transform: none;
}

.rules.in .rule-list li:nth-child(1) { transition-delay: 0.05s; }
.rules.in .rule-list li:nth-child(2) { transition-delay: 0.12s; }
.rules.in .rule-list li:nth-child(3) { transition-delay: 0.19s; }
.rules.in .rule-list li:nth-child(4) { transition-delay: 0.26s; }
.rules.in .rule-list li:nth-child(5) { transition-delay: 0.33s; }
.rules.in .rule-list li:nth-child(6) { transition-delay: 0.4s; }
.rules.in .rule-list li:nth-child(7) { transition-delay: 0.47s; }
.rules.in .rule-list li:nth-child(8) { transition-delay: 0.54s; }
.rules.in .rule-list li:nth-child(9) { transition-delay: 0.61s; }
.rules.in .rule-list li:nth-child(10) { transition-delay: 0.68s; }

.rule-list li:hover {
  background: rgba(255, 255, 255, 0.35);
  padding-left: 0.45rem;
}

.rule-list li:last-child {
  border-bottom: none;
}

.rule-list strong {
  font-family: var(--font-display);
  color: var(--blue);
  letter-spacing: 0.06em;
  font-size: 1.02rem;
}

.rule-list span {
  color: #334155;
  line-height: 1.65;
}

.rule-list em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

.file-attach {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border: 1px dashed rgba(26, 63, 143, 0.28);
  background: rgba(255, 255, 255, 0.55);
}

.file-attach-label {
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  position: relative;
}

.file-attach-label input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-attach-title {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 1.02rem;
}

.file-attach-hint {
  color: #64748b;
  font-size: 0.88rem;
}

.file-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(26, 63, 143, 0.35);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  pointer-events: none;
}

.file-attach-name {
  color: #475569;
  font-size: 0.9rem;
  word-break: break-all;
}

.file-attach.is-ready {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(240, 253, 250, 0.65);
}

.upload {
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(26, 63, 143, 0.1), transparent 55%),
    radial-gradient(700px 320px at 100% 100%, rgba(212, 162, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #d9e3f2 0%, #e8eef8 40%, #eef3fa 100%);
  padding-top: 4.5rem;
}

.form-panel {
  max-width: 820px;
  padding: 1.8rem 1.7rem 1.6rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(7, 24, 51, 0.08);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}

.upload.in .form-panel {
  animation: panelRise 0.8s var(--ease) both;
}

.form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: panelSheen 6s ease-in-out 1.2s infinite;
  pointer-events: none;
}

.form-panel:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 28px 70px rgba(7, 24, 51, 0.12);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem 1.15rem;
  margin-bottom: 1.3rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.sms-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.btn-sms {
  white-space: nowrap;
  padding: 0.78rem 1rem;
  background: linear-gradient(160deg, var(--navy-mid), var(--navy));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
}

.btn-sms:hover {
  background: linear-gradient(160deg, var(--blue), var(--navy-mid));
}

.btn-sms:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-grid span {
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(7, 24, 51, 0.14);
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(59, 120, 231, 0.65);
  box-shadow: 0 0 0 4px rgba(59, 120, 231, 0.12);
  background: #fff;
}

.dropzone {
  position: relative;
  border: 1.5px dashed rgba(7, 24, 51, 0.22);
  background:
    linear-gradient(135deg, rgba(26, 63, 143, 0.04), rgba(212, 162, 74, 0.07));
  min-height: 180px;
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}

.dropzone.dragover {
  border-color: var(--gold);
  background: rgba(212, 162, 74, 0.1);
  transform: scale(1.01);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-ui {
  text-align: center;
  padding: 1.6rem;
  pointer-events: none;
}

.dz-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  margin-bottom: 0.85rem;
}

.dz-icon span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--blue));
  animation: eq 1.2s ease-in-out infinite;
}

.dz-icon span:nth-child(1) { height: 12px; animation-delay: 0s; }
.dz-icon span:nth-child(2) { height: 22px; animation-delay: 0.1s; }
.dz-icon span:nth-child(3) { height: 30px; animation-delay: 0.2s; }
.dz-icon span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.dz-icon span:nth-child(5) { height: 26px; animation-delay: 0.4s; }

.dz-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.dz-hint,
.dz-file {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dz-file {
  color: var(--blue);
  font-weight: 600;
  margin-top: 0.75rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-msg {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-msg.ok { color: #0f766e; }
.form-msg.err { color: var(--crimson); }

.showcase {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(212, 162, 74, 0.1), transparent 50%),
    linear-gradient(180deg, #e8eef8, #dfe8f4);
}

.showcase-list {
  display: grid;
  gap: 0;
}

.showcase-item {
  display: grid;
  gap: 0.55rem;
  padding: 1.45rem 0.2rem;
  border-top: 1px solid var(--line);
  transition: background 0.25s ease, padding-left 0.25s var(--ease);
}

.showcase-item:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-left: 0.55rem;
}

.showcase-item:last-child {
  border-bottom: 1px solid var(--line);
}

.showcase-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.showcase-item audio {
  width: 100%;
  max-width: 540px;
  margin-top: 0.4rem;
  filter: saturate(0.9);
}

.empty {
  color: var(--muted);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 3.2rem 6vw 3.4rem;
  background:
    radial-gradient(60% 80% at 80% 120%, rgba(212, 162, 74, 0.18), transparent),
    linear-gradient(160deg, #050d1c, #0b1f4d 70%);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer .muted {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  margin-top: 0.7rem;
}

.modal-root[hidden] {
  display: none !important;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 28, 0.62);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 2.2rem 1.8rem 1.8rem;
  background:
    linear-gradient(165deg, #0b1f4d 0%, #132a5c 55%, #1a2748 100%);
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modalIn 0.55s var(--ease) both;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: rgba(240, 211, 154, 0.18);
  border-color: rgba(240, 211, 154, 0.65);
  color: var(--gold-soft);
}

.modal-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 211, 154, 0.35), transparent 65%);
}

.modal-kicker {
  margin: 0 0 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  position: relative;
}

.modal-panel h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  position: relative;
}

.modal-lead {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.modal-metric {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.4rem;
  margin-bottom: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.modal-metric > div {
  text-align: center;
}

.modal-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold-soft);
  line-height: 1.1;
  animation: metricPop 0.55s var(--ease) both;
}

.modal-metric > div:nth-child(1) strong { animation-delay: 0.12s; }
.modal-metric > div:nth-child(3) strong { animation-delay: 0.22s; }
.modal-metric > div:nth-child(5) strong { animation-delay: 0.32s; }

.modal-metric span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.metric-divider {
  width: 1px;
  height: 2.2rem;
  background: rgba(255, 255, 255, 0.15);
}

.modal-note {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  min-height: 1.3em;
  position: relative;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  position: relative;
}

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  from { transform: scale(1); opacity: 0.82; }
  to { transform: scale(1.07); opacity: 1; }
}

@keyframes dash {
  0%, 100% { transform: translateX(-4%) scaleX(0.85); opacity: 0.18; }
  50% { transform: translateX(2%) scaleX(1); opacity: 0.65; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drawWave {
  to { stroke-dashoffset: 0; }
}

@keyframes pulseWave {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(212, 162, 74, 0.55); }
  50% { transform: scale(1.25); box-shadow: 0 0 22px rgba(240, 211, 154, 0.95); }
}

@keyframes sheen {
  0%, 70% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes panelSheen {
  0%, 60% { left: -40%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

@keyframes panelRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes floatUp {
  0% { transform: translateY(20px); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

@keyframes metricPop {
  from { opacity: 0; transform: translateY(8px) scale(0.85); }
  to { opacity: 1; transform: none; }
}

@keyframes showcaseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.showcase.in .showcase-item {
  animation: showcaseIn 0.55s var(--ease) both;
}

.showcase.in .showcase-item:nth-child(1) { animation-delay: 0.05s; }
.showcase.in .showcase-item:nth-child(2) { animation-delay: 0.12s; }
.showcase.in .showcase-item:nth-child(3) { animation-delay: 0.19s; }
.showcase.in .showcase-item:nth-child(4) { animation-delay: 0.26s; }
.showcase.in .showcase-item:nth-child(5) { animation-delay: 0.33s; }

@media (max-width: 720px) {
  .site-nav nav { gap: 0.8rem; }
  .site-nav nav a:nth-child(3) { display: none; }
  .hero-copy { padding: 22vh 6vw 12vh; }
  .rule-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 1.25rem 1rem; }
  .rule-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .scroll-hint { display: none; }
  .modal-metric strong { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
