:root {
  --bg: #171c35;
  --bg-deep: #11152a;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --muted: #b7bfd7;
  --muted-strong: #d8def0;
  --cyan: #22d3ee;
  --blue: #4a9fff;
  --orange: #ff7a5c;
  --pink: #ec4899;
  --violet: #a78bfa;
  --green: #22c55e;
  --header-height: 64px;
  --notice-height: 32px;
  --content-max: 1200px;
  color-scheme: dark;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(74, 159, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 22%, rgba(236, 72, 153, 0.12), transparent 26rem),
    linear-gradient(180deg, #1a1f3c 0%, #151a32 52%, #11152a 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.site-notice {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: var(--notice-height);
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 48px;
  background: #fde6d7;
  color: #4b2c22;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.notice-close {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b5047;
  cursor: pointer;
  font-size: 22px;
  line-height: 20px;
}

.site-header {
  position: sticky;
  top: var(--notice-height);
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: var(--header-height);
  align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 24, 48, 0.88);
  backdrop-filter: blur(18px);
}

.notice-hidden .site-header,
.site-notice[hidden] + .site-header {
  top: 0;
}

.is-scrolled .site-header {
  background: rgba(18, 22, 44, 0.95);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.brand-mark {
  width: 12px;
  height: 28px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.55);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 42px);
  color: var(--muted-strong);
  font-size: 15px;
}

.main-nav a,
.footer-links a,
.mobile-nav a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.footer-links a:hover,
.mobile-nav a:hover {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-cta {
  display: inline-flex;
  min-width: 112px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.26);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 24;
  padding: 12px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 22, 44, 0.96);
  backdrop-filter: blur(18px);
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--muted-strong);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  align-items: center;
  padding: clamp(74px, 12vh, 130px) clamp(20px, 4vw, 48px) 36px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 31, 60, 0.64), rgba(26, 31, 60, 0.9)),
    linear-gradient(90deg, rgba(14, 18, 38, 0.28), rgba(14, 18, 38, 0.08)),
    url("../assets/hero-bg.jpg") center / cover no-repeat;
  opacity: 0.96;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(23, 28, 53, 0.98), transparent);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: clamp(52px, 8vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.text-gradient {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  width: min(760px, 100%);
  margin: 26px auto 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  min-width: 182px;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 38px rgba(34, 211, 238, 0.26);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.proof-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(var(--content-max), 100%);
  margin: 72px auto 0;
}

.proof-card {
  min-height: 104px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
  backdrop-filter: blur(14px);
}

.proof-card h3 {
  margin: 0;
  font-size: 18px;
}

.proof-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(76px, 10vw, 118px) clamp(20px, 4vw, 48px);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 64px;
  text-align: center;
}

.section-heading h2,
.section h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.section-about p,
.section-contact p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

.service-card {
  min-height: 350px;
  padding: clamp(30px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.service-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 26px;
  color: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-icon svg {
  width: 31px;
  height: 31px;
}

a.service-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.accent-blue .service-icon {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.accent-blue li::marker {
  color: var(--cyan);
}

.accent-orange .service-icon {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.accent-orange li::marker {
  color: var(--orange);
}

.accent-pink .service-icon {
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.accent-pink li::marker {
  color: var(--pink);
}

.accent-green .service-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.accent-green li::marker {
  color: var(--green);
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.service-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.service-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
  line-height: 1.55;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 28px;
}

.service-action {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
}

.service-action svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.case-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.case-body {
  padding: 24px;
}

.case-body h3 {
  margin: 0 0 20px;
  font-size: 24px;
}

.case-copy {
  margin-top: 16px;
}

.case-copy span {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.case-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.case-stat {
  display: grid;
  gap: 4px;
}

.case-stat strong {
  color: #fff;
  font-size: 18px;
}

.case-stat span {
  color: var(--muted);
  font-size: 13px;
}

.section-about,
.section-contact {
  padding-top: 44px;
}

.about-panel,
.contact-layout {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.about-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 48px;
  padding: clamp(34px, 5vw, 56px);
}

.about-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-metrics div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.about-metrics strong {
  display: block;
  font-size: 32px;
}

.about-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
  padding: clamp(34px, 5vw, 56px);
}

.contact-card {
  display: grid;
  gap: 14px;
}

.contact-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.contact-line svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.contact-line small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.contact-line a,
.contact-line span {
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr;
  gap: 48px;
  padding: 58px clamp(20px, 4vw, 48px) 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 21, 42, 0.7), #0f1326);
}

.site-footer > * {
  width: min(100%, var(--content-max));
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-brand .brand-logo {
  height: 82px;
}

.site-footer h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.site-footer p,
.footer-contact p,
.footer-links a {
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-contact p {
  margin: 0 0 6px;
}

.copyright {
  grid-column: 1 / -1;
  width: 100%;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
}

.consult-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 122, 92, 0.15), transparent 30rem),
    radial-gradient(circle at 86% 16%, rgba(34, 211, 238, 0.14), transparent 28rem),
    linear-gradient(180deg, #1a1f3c 0%, #151a32 58%, #101426 100%);
}

.comic-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(167, 139, 250, 0.18), transparent 30rem),
    radial-gradient(circle at 84% 16%, rgba(236, 72, 153, 0.16), transparent 28rem),
    linear-gradient(180deg, #1a1f3c 0%, #151a32 58%, #101426 100%);
}

.consult-header {
  top: 0;
}

.consult-hero {
  width: min(var(--content-max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 12vw, 118px) 0 38px;
}

.consult-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
}

.consult-hero p:not(.eyebrow) {
  width: min(760px, 100%);
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: 19px;
  line-height: 1.75;
}

.consult-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  width: min(var(--content-max), calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 86px;
}

.consult-side,
.chat-card,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.consult-side {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 22px;
}

.progress-box {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.progress-box span {
  color: var(--muted-strong);
  font-weight: 800;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  transition: width 220ms ease;
}

.framework-list {
  display: grid;
  gap: 12px;
}

.framework-list div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.11);
}

.framework-list span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  font-weight: 900;
}

.framework-list p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.35;
}

.consult-main {
  display: grid;
  gap: 24px;
}

.chat-card {
  overflow: hidden;
}

.chat-log {
  display: grid;
  max-height: 620px;
  min-height: 430px;
  gap: 14px;
  overflow: auto;
  padding: 26px;
  scroll-behavior: smooth;
}

.chat-bubble {
  width: min(82%, 680px);
  white-space: pre-wrap;
  line-height: 1.72;
}

.chat-ai {
  justify-self: start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 8px 2px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--muted-strong);
}

.chat-user {
  justify-self: end;
  padding: 16px 18px;
  border-radius: 8px 8px 2px 8px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff;
  font-weight: 700;
}

.answer-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.answer-form label {
  color: #fff;
  font-weight: 800;
}

.answer-form textarea {
  width: 100%;
  min-height: 134px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  line-height: 1.6;
}

.answer-form textarea:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.form-actions,
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.form-actions .btn {
  min-width: 150px;
  height: 48px;
}

.plan-card {
  padding: 24px;
}

.plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.plan-toolbar h2 {
  margin: 0;
  font-size: 28px;
}

.plan-toolbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.plan-output {
  margin-top: 22px;
  white-space: pre-wrap;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.78;
}

.studio-page {
  min-height: 100vh;
  background: #f4f6fb;
  color: #172033;
}

.studio-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  height: 62px;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid #e7ebf3;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
}

.studio-brand .brand-mark {
  height: 24px;
}

.studio-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: auto;
  scrollbar-width: none;
}

.studio-tabs a {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 8px;
  color: #5c667a;
  font-size: 14px;
  font-weight: 700;
}

.studio-tabs a.active,
.studio-tabs a:hover {
  background: #eef5ff;
  color: #1677ff;
}

.studio-account,
.studio-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.credit-pill {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #e4e8f0;
  border-radius: 999px;
  background: #fff;
  color: #31405a;
  font-size: 13px;
  font-weight: 800;
}

.credit-pill svg {
  width: 16px;
  height: 16px;
  color: #ff8a00;
}

.studio-primary,
.studio-secondary,
.mini-btn,
.studio-select {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.studio-primary,
.studio-secondary,
.mini-btn {
  cursor: pointer;
}

.studio-select {
  height: 38px;
  min-width: 190px;
  padding: 0 34px 0 12px;
  border: 1px solid #d8deea;
  background: #fff;
  color: #31405a;
}

.studio-primary {
  height: 38px;
  padding: 0 16px;
  background: linear-gradient(90deg, #1677ff, #26c6da);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.18);
}

.studio-secondary {
  display: inline-flex;
  height: 38px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #d8deea;
  background: #fff;
  color: #31405a;
}

.studio-busy .studio-primary,
.studio-busy .studio-secondary,
.studio-busy .mini-btn {
  opacity: 0.72;
}

.credit-pill .lucide-loader-circle {
  animation: studio-spin 900ms linear infinite;
}

@keyframes studio-spin {
  to {
    transform: rotate(360deg);
  }
}

.studio-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: calc(100vh - 62px);
}

.studio-sidebar {
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow: auto;
  border-right: 1px solid #e7ebf3;
  background: #fff;
  padding: 18px;
}

.side-section {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.side-section p {
  margin: 0 0 6px;
  color: #9aa4b6;
  font-size: 12px;
  font-weight: 900;
}

.side-section a {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 8px;
  color: #516078;
  font-size: 14px;
  font-weight: 800;
}

.side-section a svg {
  width: 18px;
  height: 18px;
}

.side-section a.active,
.side-section a:hover {
  background: #edf5ff;
  color: #1677ff;
}

.side-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
}

.side-card span,
.side-card small {
  color: #cbd5e1;
  font-size: 12px;
}

.studio-main {
  padding: 22px;
}

.studio-hero-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 119, 255, 0.08), rgba(38, 198, 218, 0.06)),
    #fff;
}

.studio-breadcrumb {
  margin: 0 0 10px;
  color: #7b879c;
  font-size: 13px;
  font-weight: 800;
}

.studio-hero-panel h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0;
}

.studio-hero-panel p:not(.studio-breadcrumb) {
  width: min(760px, 100%);
  margin: 10px 0 0;
  color: #68758b;
  line-height: 1.65;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.studio-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 29, 48, 0.05);
}

.wide-panel,
.publish-panel {
  grid-column: 1 / -1;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-title span {
  display: block;
  margin-bottom: 4px;
  color: #1677ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-title h2 {
  margin: 0;
  color: #172033;
  font-size: 20px;
}

.mini-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d8deea;
  background: #fff;
  color: #516078;
  font-size: 13px;
}

.prompt-panel textarea {
  width: 100%;
  min-height: 186px;
  resize: vertical;
  border: 1px solid #d8deea;
  border-radius: 8px;
  outline: 0;
  padding: 14px;
  background: #fbfcff;
  color: #172033;
  font: inherit;
  line-height: 1.7;
}

.prompt-panel textarea:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip-row button {
  height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #516078;
  cursor: pointer;
  font-weight: 700;
}

.character-list,
.task-list,
.publish-list {
  display: grid;
  gap: 12px;
}

.character-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fbfcff;
}

.avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.character-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #172033;
}

.character-card small {
  padding: 2px 7px;
  border-radius: 999px;
  background: #edf5ff;
  color: #1677ff;
  font-size: 12px;
}

.character-card p {
  margin: 6px 0;
  color: #68758b;
  font-size: 13px;
  line-height: 1.5;
}

.character-card span {
  color: #ef4e95;
  font-size: 12px;
  font-weight: 900;
}

.segmented {
  display: flex;
  padding: 3px;
  border-radius: 8px;
  background: #f1f5f9;
}

.segmented button {
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #68758b;
  cursor: pointer;
  font-weight: 800;
}

.segmented button.active {
  background: #fff;
  color: #1677ff;
  box-shadow: 0 4px 12px rgba(20, 29, 48, 0.08);
}

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

.shot-card {
  overflow: hidden;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fbfcff;
}

.shot-thumb {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(236, 72, 153, 0.35), transparent 34%),
    linear-gradient(135deg, #1e293b, #334155);
}

.shot-thumb span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.shot-body {
  padding: 12px;
}

.shot-body div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.shot-body strong {
  color: #172033;
}

.shot-body div span {
  color: #8b96aa;
  font-size: 12px;
}

.shot-body p {
  min-height: 60px;
  margin: 10px 0;
  color: #68758b;
  font-size: 13px;
  line-height: 1.55;
}

.shot-body small {
  display: block;
  color: #172033;
  font-weight: 800;
  line-height: 1.45;
}

.shot-body em {
  display: inline-flex;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1677ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.task-item {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fbfcff;
}

.task-item div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.task-item strong {
  color: #172033;
}

.task-item span {
  color: #7b879c;
  font-size: 12px;
  font-weight: 800;
}

.task-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef7;
}

.task-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1677ff, #26c6da);
}

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

.asset-tile {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fbfcff;
}

.asset-tile svg {
  width: 22px;
  height: 22px;
  color: #1677ff;
}

.asset-tile strong {
  color: #172033;
}

.asset-tile span {
  color: #7b879c;
  font-size: 12px;
  font-weight: 800;
}

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

.publish-list div {
  padding: 16px;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fbfcff;
}

.publish-list strong,
.publish-list span {
  display: block;
}

.publish-list strong {
  color: #172033;
}

.publish-list span {
  margin-top: 8px;
  color: #68758b;
  font-size: 13px;
}

.studio-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.22);
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .proof-grid,
  .service-grid,
  .case-grid,
  .about-panel,
  .contact-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .consult-shell {
    grid-template-columns: 1fr;
  }

  .consult-side {
    position: static;
  }

  .studio-topbar {
    grid-template-columns: 1fr auto;
  }

  .studio-tabs {
    grid-column: 1 / -1;
    order: 3;
  }

  .studio-topbar {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .studio-layout {
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .studio-main {
    padding: 18px;
  }

  .studio-grid,
  .shot-board,
  .publish-list {
    grid-template-columns: 1fr;
  }

  .studio-hero-panel {
    flex-direction: column;
  }

  .hero {
    padding-top: 76px;
  }

  .proof-grid {
    gap: 14px;
    margin-top: 54px;
  }

  .case-grid {
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .site-notice {
    padding: 7px 44px 7px 16px;
    text-align: left;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-logo {
    height: 46px;
  }

  .footer-brand .brand-logo {
    height: 66px;
  }

  .hero {
    min-height: auto;
    padding: 76px 18px 30px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .service-card,
  .case-body,
  .about-panel,
  .contact-layout {
    padding: 24px;
  }

  .about-metrics,
  .case-stats {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
    gap: 28px;
  }

  .consult-hero,
  .consult-shell {
    width: calc(100% - 36px);
  }

  .chat-log {
    min-height: 360px;
    padding: 18px;
  }

  .chat-bubble {
    width: 100%;
  }

  .form-actions {
    display: grid;
  }

  .plan-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-sidebar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .studio-account {
    display: none;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .studio-actions {
    display: grid;
    width: 100%;
    justify-content: stretch;
  }

  .studio-actions > * {
    justify-content: center;
    width: 100%;
  }
}
