:root {
  --navy: #081f38;
  --navy-2: #102d4a;
  --teal: #22b5ac;
  --blue: #5579c6;
  --teal-text: #087d78;
  --blue-text: #365a9f;
  --ice: #f4f7fa;
  --white: #fff;
  --slate: #526980;
  --muted: #7c8fa2;
  --line: #dbe4eb;
  --max: 1200px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--ice);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 68px;
  background: radial-gradient(circle at 77% 35%, rgba(85,121,198,.13), transparent 31%), var(--ice);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(8,31,56,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(8,31,56,.12) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to right, transparent, black 55%, black);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.hero-grid > *, .workspace-head > *, .generator-card { min-width: 0; }
.kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; color: var(--teal-text); font: 800 12px/1.2 Arial; letter-spacing: .18em; }
.kicker::before { content: ""; width: 42px; height: 3px; border-radius: 4px; background: currentColor; }
h1 { max-width: 760px; margin: 0; font-size: clamp(50px, 5.8vw, 80px); line-height: 1.08; letter-spacing: -.055em; }
h1 em { color: var(--teal-text); font-style: normal; }
.hero-lead { max-width: 650px; margin: 25px 0 0; color: var(--slate); font-size: 18px; line-height: 1.85; }
.hero-console { width: 100%; min-width: 0; padding: 28px; color: white; border: 1px solid rgba(255,255,255,.14); border-radius: 28px; background: var(--navy); box-shadow: 0 35px 80px rgba(8,31,56,.18); }
.console-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); color: #8fa5b6; font: 700 11px Arial; letter-spacing: .13em; }
.console-head span:last-child { color: var(--teal); }
.console-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 28px; }
.console-step { min-height: 128px; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.055); }
.console-step small { color: var(--teal); font: 800 10px Arial; letter-spacing: .12em; }
.console-step strong { display: block; margin-top: 35px; font-size: 17px; line-height: 1.4; }

.workspace { padding: 72px 0 110px; }
.workspace-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: end; margin-bottom: 38px; }
.section-no { color: var(--blue-text); font: 800 12px Arial; letter-spacing: .18em; }
h2 { margin: 15px 0 0; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.16; letter-spacing: -.045em; }
.workspace-head p { margin: 0; color: var(--slate); font-size: 17px; line-height: 1.8; }
.generator-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 24px 60px rgba(8,31,56,.08); }
.invite-gate { margin-bottom: 28px; padding: 22px; border: 1px solid #b9d7d5; border-radius: 16px; background: #f0fbfa; }
.invite-gate strong { font-size: 18px; }
.invite-gate p { margin: 8px 0 0; color: var(--slate); line-height: 1.6; }
.invite-gate.verified { border-color: #b7d4ca; background: #f1faf6; }
.invite-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 15px; }
.invite-row input, .admin-field input { min-width: 0; height: 52px; padding: 0 15px; border: 1px solid #b9cbd7; border-radius: 10px; background: white; text-transform: uppercase; }
.invite-button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 10px; color: white; background: var(--teal-text); font-weight: 800; }
.industry-label { display: block; margin-bottom: 15px; color: var(--slate); font-size: 14px; font-weight: 800; }
.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.industry-button {
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid #cad7e1;
  border-radius: 12px;
  color: var(--navy);
  background: #f8fafc;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: .2s ease;
}
.industry-button:hover, .industry-button.active { color: white; border-color: var(--navy); background: var(--navy); transform: translateY(-2px); }
.custom-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 12px; }
.custom-row input { min-width: 0; height: 58px; padding: 0 17px; border: 1px solid #cad7e1; border-radius: 12px; background: #f8fafc; }
.custom-row input:focus { outline: 0; border-color: var(--teal-text); box-shadow: 0 0 0 3px rgba(34,181,172,.13); background: white; }
.generate-button {
  min-width: 190px;
  min-height: 58px;
  border: 1px solid var(--navy);
  border-radius: 12px;
  color: white;
  background: var(--navy);
  font-weight: 900;
  transition: .2s ease;
}
.generate-button:hover { transform: translateY(-2px); }
.generate-button:disabled { cursor: wait; opacity: .7; transform: none; }
.helper { min-height: 24px; margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.helper.error { color: #a62e26; font-weight: 700; }
.helper.slow { color: var(--blue-text); font-weight: 700; }

.loading { display: none; align-items: center; gap: 15px; margin-top: 26px; padding: 19px; border-radius: 14px; color: #d8e4eb; background: var(--navy); }
.loading.show { display: flex; }
.loader { width: 28px; height: 28px; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }

.results { display: none; margin-top: 32px; }
.results.show { display: block; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.results-head h3 { margin: 0; font-size: 28px; }
.results-head span { color: var(--teal-text); font-weight: 800; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.result-card { position: relative; min-height: 220px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #f8fafc; }
.result-card.wide { grid-column: 1 / -1; min-height: 190px; color: white; border-color: var(--navy); background: var(--navy); }
.result-type { color: var(--blue-text); font: 800 11px Arial; letter-spacing: .15em; }
.result-card.wide .result-type { color: var(--teal); }
.result-card h4 { margin: 18px 0 10px; font-size: 21px; }
.result-card p { margin: 0 0 24px; color: var(--slate); font-size: 17px; line-height: 1.75; white-space: pre-wrap; }
.result-card.wide p { color: #c2d0da; }
.copy-button { min-height: 42px; margin-top: auto; border: 1px solid #c6d4df; border-radius: 9px; color: var(--navy); background: white; font-weight: 800; }
.copy-button.copied { color: white; border-color: var(--teal-text); background: var(--teal-text); }
.result-card.wide .copy-button { color: var(--navy); border-color: var(--teal); background: var(--teal); }
.offline-link { display: inline-flex; margin-top: 24px; color: var(--teal-text); font-weight: 800; }

.showcase-section { padding: 100px 0 115px; color: white; background: var(--navy); }
.showcase-section .section-no { color: var(--teal); }
.showcase-section .workspace-head p { color: #b8c8d4; }
.showcase-head { grid-template-columns: .72fr 1.28fr; gap: 58px; align-items: stretch; margin-bottom: 44px; }
.showcase-heading {
  position: relative;
  display: flex;
  min-height: 100%;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 38px 38px 40px;
  border-left: 3px solid var(--teal);
  border-radius: 0 20px 20px 0;
  background: linear-gradient(110deg, rgba(34,181,172,.1), rgba(34,181,172,0) 68%);
}
.showcase-heading::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 28px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(34,181,172,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(34,181,172,.035), 0 0 0 44px rgba(34,181,172,.02);
}
.showcase-heading h2 { position: relative; margin-top: 22px; font-size: clamp(42px, 4vw, 56px); line-height: 1.1; letter-spacing: -.04em; }
.showcase-heading h2 strong { color: white; font-weight: 800; }
.showcase-heading::after {
  content: "";
  width: 88px;
  height: 3px;
  margin-top: 30px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal) 0 55%, rgba(34,181,172,.22) 55%);
}
.showcase-video { overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: #020b14; box-shadow: 0 20px 55px rgba(0,0,0,.22); }
.showcase-video video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; background: #020b14; }
.showcase-card { padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.045); }
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.showcase-tab { min-height: 46px; padding: 0 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #d8e4eb; background: transparent; font-weight: 800; transition: .2s ease; }
.showcase-tab:hover, .showcase-tab.active { color: var(--navy); border-color: var(--teal); background: var(--teal); }
.showcase-hint { margin: 20px 0 0; color: #9fb3c2; font-size: 14px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.showcase-grid:empty { margin-top: 0; }
.showcase-image { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; color: white; background: #06182b; text-align: left; }
.showcase-image img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; transition: transform .35s ease; }
.showcase-image:hover img { transform: scale(1.025); }
.showcase-image span { display: block; padding: 14px 16px; color: #c7d5df; font-size: 13px; font-weight: 800; }
.showcase-lightbox { width: min(1100px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; color: white; background: #051525; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.showcase-lightbox::backdrop { background: rgba(2,10,19,.88); backdrop-filter: blur(8px); }
.showcase-lightbox img { width: 100%; max-height: calc(100vh - 110px); display: block; object-fit: contain; background: #020b14; }
.showcase-lightbox p { margin: 0; padding: 14px 22px; color: #b8c8d4; }
.lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: white; background: rgba(5,21,37,.82); font-size: 28px; line-height: 1; }

footer { padding: 25px 0; color: #91a5b6; background: #051525; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero-grid, .workspace-head { grid-template-columns: 1fr; gap: 42px; }
  .showcase-head { gap: 28px; }
  .showcase-heading { min-height: 250px; }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shell { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding: 58px 0 52px; }
  h1 { font-size: 47px; }
  .hero-lead { font-size: 16px; }
  .hero-console { padding: 20px; }
  .console-body { grid-template-columns: 1fr; }
  .console-step { min-height: 92px; }
  .console-step strong { margin-top: 20px; }
  .workspace { padding: 62px 0 80px; }
  .generator-card { padding: 22px; }
  .invite-row { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .industry-button { min-height: 58px; font-size: 14px; }
  .custom-row { grid-template-columns: 1fr; }
  .generate-button { width: 100%; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card.wide { grid-column: auto; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .showcase-section { padding: 72px 0 80px; }
  .showcase-heading { min-height: 0; padding: 28px 24px 28px 26px; }
  .showcase-heading::before { top: 20px; right: 18px; width: 48px; height: 48px; }
  .showcase-heading h2 { margin-top: 16px; font-size: 42px; }
  .showcase-heading::after { margin-top: 22px; }
  .showcase-card { padding: 20px; }
  .showcase-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-tab { padding: 0 10px; border-radius: 11px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
