:root {
  --primary: #68b88e;
  --primary-hover: #5aa87d;
  --primary-light: rgba(104, 184, 142, 0.1);
  --dark: #1a1a1a;
  --text: #333;
  --muted: #667085;
  --line: #e5e5e5;
  --panel: #fff;
  --shadow: 0 18px 46px rgba(21, 30, 25, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app {
  min-height: 100vh;
  background: #fff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  height: 60px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f0f0f0;
  backdrop-filter: blur(12px);
}

.brand,
.desktop-nav,
.header-actions,
.desktop-nav a,
.nav-dropdown > button,
.solid-button,
.text-button,
.hero-badge,
.composer-header,
.composer-upload,
.composer-footer,
.composer-tools,
.select-tool > button,
.generate-button,
.case-flow,
.mobile-nav,
.footer-links,
.footer-records {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.brand-icon svg {
  width: 28px;
  height: 28px;
  fill: #863bff;
  stroke: none;
}

.desktop-nav {
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.desktop-nav a,
.nav-dropdown > button {
  position: relative;
  height: 38px;
  padding: 0 11px;
  color: #333;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > button {
  color: #1a1a1a;
  background: #f4fbf7;
}

.desktop-nav em {
  margin-left: 3px;
  color: #2f7d52;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 10;
  display: grid;
  gap: 6px;
  width: 248px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e7ece9;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(21, 30, 25, 0.13);
  transform: translate(-50%, -4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.nav-menu.narrow {
  width: 218px;
}

.nav-dropdown:hover .nav-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-menu a {
  display: grid;
  height: auto;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
}

.nav-menu strong {
  color: #1a1a1a;
  font-size: 14px;
}

.nav-menu span {
  color: #777;
  font-size: 12px;
  line-height: 1.45;
}

.header-actions {
  gap: 10px;
  justify-content: flex-end;
}

.text-button,
.solid-button {
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.text-button {
  color: #333;
  background: #fff;
}

.solid-button {
  color: #10281c;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.solid-button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.page-home {
  padding-top: 60px;
  color: #13231b;
  background: #f5faf7;
}

.hero-section {
  position: relative;
  min-height: 720px;
  padding: 106px 24px 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(105, 185, 143, 0.98) 0%, rgba(78, 155, 109, 0.98) 100%);
}

.hero-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-surface-dots {
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 18%, transparent 46%);
}

.hero-surface-lines::before,
.hero-surface-lines::after {
  content: "";
  position: absolute;
  right: -9%;
  top: 20%;
  width: 48%;
  height: 38%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.hero-surface-lines::after {
  right: -6%;
  top: 24%;
  width: 42%;
  height: 30%;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(1060px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  width: min(860px, 100%);
}

.hero-badge {
  gap: 6px;
  width: fit-content;
  margin: 0 auto 24px;
  padding: 7px 17px;
  color: #4c3900;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  color: #fff;
  font-size: 54px;
  font-weight: 850;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero-copy p {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.home-composer {
  width: min(1020px, 100%);
  padding: 18px;
  text-align: left;
  background: rgba(248, 253, 250, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.13), 0 24px 70px rgba(33, 87, 55, 0.22);
  backdrop-filter: blur(16px);
}

.composer-header {
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 14px;
}

.composer-kicker {
  display: block;
  color: #2f7d52;
  font-size: 13px;
  font-weight: 900;
}

.composer-header strong {
  color: #13231b;
  font-size: 18px;
  font-weight: 900;
}

.composer-upload {
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  color: #17392b;
  background: #e9f8f0;
  border: 1px solid rgba(104, 184, 142, 0.24);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.home-composer textarea {
  display: block;
  width: 100%;
  min-height: 128px;
  padding: 18px 20px;
  resize: vertical;
  color: #13231b;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 18px;
  outline: none;
  font-size: 16px;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-composer textarea::placeholder {
  color: #8a9a91;
}

.reference-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.reference-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
}

.reference-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-thumb button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.composer-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.composer-tools {
  flex-wrap: wrap;
  gap: 8px;
}

.icon-tool,
.select-tool > button {
  height: 42px;
  color: #20382e;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(21, 30, 25, 0.05);
}

.icon-tool {
  display: inline-grid;
  place-items: center;
  width: 42px;
}

.select-tool {
  position: relative;
}

.select-tool > button {
  gap: 7px;
  padding: 0 12px;
}

.select-tool > button svg:last-child {
  width: 15px;
  height: 15px;
}

.select-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 138px;
  padding: 7px;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(21, 30, 25, 0.15);
}

.select-tool.open .select-menu {
  display: grid;
}

.select-menu button {
  height: 34px;
  padding: 0 10px;
  color: #20382e;
  text-align: left;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.select-menu button:hover,
.select-menu button.active {
  color: #0b7448;
  background: #eaf8f0;
}

.generate-button {
  flex: none;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  color: #0f2418;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(104, 184, 142, 0.32);
}

.generate-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.composer-error {
  margin-top: 12px;
  color: #c01048;
  font-size: 13px;
  font-weight: 800;
}

.composer-error[data-tone="success"] {
  color: #16774c;
}

.generation-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.generation-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  color: #17392b;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(21, 30, 25, 0.08);
}

.generation-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 11px;
  background: #edf7f1;
}

.generation-card span {
  padding: 0 2px 2px;
  font-size: 13px;
  font-weight: 850;
}

.canvas-route {
  padding-bottom: 0;
  overflow: hidden;
  background: #f4f8f5;
}

.canvas-page {
  height: 100vh;
  color: #12231a;
  background: #f4f8f5;
}

.canvas-topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  height: 58px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e1e9e4;
  backdrop-filter: blur(12px);
}

.canvas-brand,
.canvas-back-home,
.canvas-project-pill,
.canvas-bottom-dock,
.canvas-zoom-dock,
.canvas-composer,
.canvas-result-grid a {
  display: flex;
  align-items: center;
}

.canvas-brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 950;
}

.canvas-project-pill {
  justify-self: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  color: #17392b;
  background: #eff8f3;
  border: 1px solid #d8e8df;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

.canvas-back-home {
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  color: #17392b;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.canvas-shell {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  height: calc(100vh - 58px);
  overflow: hidden;
}

.canvas-sidebar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid #dfe8e2;
}

.canvas-helper {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: #f0faf5;
  border: 1px solid #d8e8df;
  border-radius: 16px;
}

.canvas-helper img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.canvas-helper strong,
.canvas-message span,
.canvas-node span,
.canvas-result-state {
  display: block;
  color: #163629;
  font-weight: 950;
}

.canvas-helper p,
.canvas-message p,
.canvas-node p {
  margin-top: 5px;
  color: #64756c;
  font-size: 13px;
  line-height: 1.65;
}

.canvas-chat {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.canvas-message {
  max-width: 92%;
  padding: 13px 14px;
  border-radius: 16px;
  font-size: 14px;
}

.canvas-message.user {
  align-self: flex-end;
  color: #10281c;
  background: #daf2e6;
}

.canvas-message.assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #dfe8e2;
}

.canvas-composer {
  gap: 10px;
  padding: 10px;
  background: #f7fbf8;
  border: 1px solid #dfe8e2;
  border-radius: 16px;
}

.canvas-composer textarea {
  min-width: 0;
  flex: 1;
  height: 42px;
  resize: none;
  color: #13231b;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
  line-height: 1.5;
}

.canvas-composer button {
  flex: none;
  height: 38px;
  padding: 0 13px;
  color: #0f2418;
  background: var(--primary);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.canvas-composer button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.canvas-board {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #eef5f0;
}

.canvas-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(77, 113, 93, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 113, 93, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.canvas-empty {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 1;
  width: min(360px, 70%);
  color: #76877e;
  text-align: center;
  transform: translate(-50%, -50%);
}

.canvas-empty strong {
  display: block;
  color: #53665c;
  font-size: 26px;
  font-weight: 950;
}

.canvas-empty p {
  margin-top: 8px;
  font-size: 14px;
}

.canvas-node,
.canvas-result-node {
  position: absolute;
  z-index: 2;
  width: 240px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce8e1;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(21, 30, 25, 0.12);
}

.prompt-node {
  top: 94px;
  left: 70px;
}

.canvas-reference-nodes .reference-node {
  top: 285px;
  left: 190px;
}

.reference-node img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 10px;
  object-fit: cover;
  border-radius: 10px;
}

.canvas-result-node {
  top: 170px;
  right: 86px;
  width: 310px;
  min-height: 186px;
}

.canvas-result-state {
  margin-top: 9px;
  color: #2f7d52;
  font-size: 14px;
}

.canvas-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.canvas-result-grid a {
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: #17392b;
  font-size: 12px;
  font-weight: 850;
}

.canvas-result-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #edf7f1;
}

.canvas-bottom-dock,
.canvas-zoom-dock {
  position: absolute;
  z-index: 5;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe8e2;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(21, 30, 25, 0.12);
  backdrop-filter: blur(12px);
}

.canvas-bottom-dock {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.canvas-bottom-dock button,
.canvas-zoom-dock button {
  height: 34px;
  padding: 0 12px;
  color: #20382e;
  background: #f4fbf7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
}

.canvas-zoom-dock {
  right: 18px;
  bottom: 18px;
}

.canvas-zoom-dock strong {
  min-width: 42px;
  color: #20382e;
  text-align: center;
  font-size: 13px;
}

.membership-route,
.admin-route {
  min-height: 100vh;
  background: #f5faf7;
}

.simple-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e1e9e4;
  backdrop-filter: blur(12px);
}

.membership-page {
  min-height: 100vh;
  color: #12231a;
}

.membership-hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 30px;
}

.membership-hero span,
.admin-header span {
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.membership-hero h1,
.admin-header h1 {
  margin-top: 8px;
  color: #111814;
  font-size: 38px;
  font-weight: 950;
  line-height: 1.2;
}

.membership-hero p {
  margin-top: 12px;
  color: #64756c;
  font-weight: 700;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.membership-card,
.empty-panel,
.admin-panel,
.admin-login-panel,
.admin-stats div {
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(104, 184, 142, 0.08);
}

.membership-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.membership-card > span {
  width: fit-content;
  padding: 4px 10px;
  color: #0b7448;
  background: #eaf8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.membership-card h2 {
  color: #111814;
  font-size: 24px;
  font-weight: 950;
}

.membership-card strong {
  color: #111814;
  font-size: 36px;
  line-height: 1;
}

.membership-card p,
.membership-card li {
  color: #64756c;
  font-size: 14px;
}

.membership-card ul {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding-left: 18px;
}

.membership-card button,
.admin-header button,
.admin-login-panel button,
.admin-table button {
  height: 38px;
  padding: 0 14px;
  color: #0f2418;
  background: var(--primary);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.membership-card button:disabled,
.admin-login-panel button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.empty-panel {
  grid-column: 1 / -1;
  padding: 24px;
  color: #64756c;
  font-weight: 800;
}

.admin-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  color: #12231a;
}

.admin-sidebar {
  padding: 22px;
  background: #fff;
  border-right: 1px solid #e1e9e4;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.admin-sidebar nav a {
  padding: 10px 12px;
  color: #20382e;
  background: #f4fbf7;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-login-panel {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 24px;
}

.admin-login-panel[hidden],
#adminContent[hidden] {
  display: none;
}

.admin-login-panel h2,
.admin-panel h2 {
  color: #111814;
  font-size: 22px;
  font-weight: 950;
}

.admin-login-panel input {
  height: 44px;
  padding: 0 14px;
  color: #13231b;
  background: #f7fbf8;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  outline: 0;
}

.admin-login-panel p {
  min-height: 18px;
  color: #c01048;
  font-size: 13px;
  font-weight: 800;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats div {
  padding: 18px;
}

.admin-stats span {
  color: #64756c;
  font-size: 13px;
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  color: #111814;
  font-size: 28px;
  font-weight: 950;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #edf2ef;
}

.admin-panel-head span {
  color: #64756c;
  font-size: 13px;
  font-weight: 800;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #edf2ef;
  white-space: nowrap;
}

.admin-table th {
  color: #64756c;
  background: #f8fbf9;
  font-size: 12px;
  font-weight: 950;
}

.admin-table td {
  color: #20382e;
  font-size: 14px;
  font-weight: 750;
}

.admin-table td:last-child {
  display: flex;
  gap: 8px;
}

.home-section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.case-waterfall-section,
.more-tools-section,
.home-final-section {
  padding: 92px 0;
}

.case-waterfall-section {
  background: #f5faf7;
}

.more-tools-section {
  background: #fff;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.center-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 10px;
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.section-heading h2 {
  color: #111814;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.2;
}

.section-heading p {
  margin-top: 12px;
  color: #64756c;
  font-size: 15px;
  line-height: 1.8;
}

.case-waterfall-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.case-card,
.tool-card {
  position: relative;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(104, 184, 142, 0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}

.case-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(104, 184, 142, 0.16);
}

.case-card-featured {
  grid-row: span 2;
}

.case-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf7f1;
}

.case-card-featured .case-image {
  aspect-ratio: 4 / 5;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pair-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.pair-image div {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.pair-image span,
.slider-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(17, 24, 20, 0.66);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pair-image div + div span,
.slider-label.right {
  right: 10px;
  left: auto;
}

.slider-image i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.case-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 10px;
  color: #102016;
  background: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.case-body {
  padding: 22px;
}

.case-body h3,
.tool-card h3 {
  color: #111814;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

.case-body p,
.tool-card p {
  margin-top: 9px;
  color: #64756c;
  font-size: 14px;
  line-height: 1.7;
}

.case-flow {
  gap: 8px;
  margin-top: 16px;
  color: #718278;
  font-size: 13px;
  font-weight: 800;
}

.case-flow strong {
  color: #2f7d52;
}

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

.tool-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 156px;
  padding: 18px;
}

.tool-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.tool-card > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #2f7d52;
  background: #f0fbf5;
  border-radius: 999px;
  font-weight: 900;
}

.canvas-flow-section {
  padding: 96px 0;
  color: #fff;
  background: #102018;
}

.canvas-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 44px;
}

.canvas-ui-preview {
  overflow: hidden;
  background: #f4fbf7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.canvas-shot-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 14px;
  color: #17392b;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e3eee8;
}

.canvas-shot-brand {
  font-size: 20px;
  font-weight: 950;
}

.canvas-shot-brand i {
  margin-left: 6px;
  padding: 2px 5px;
  color: #10a464;
  background: #ecfdf4;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
}

.canvas-shot-project {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.canvas-shot-top button {
  width: 34px;
  height: 34px;
  background: #e8f8ef;
  border-radius: 8px;
  font-size: 20px;
}

.canvas-shot-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 420px;
}

.canvas-shot-sidebar {
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid #e3eee8;
}

.canvas-shot-sidebar-title {
  color: #17392b;
  font-weight: 950;
}

.canvas-shot-helper {
  margin-top: 20px;
  padding: 14px;
  color: #17392b;
  background: #fff;
  border: 1px solid #e3eee8;
  border-radius: 16px;
  text-align: center;
}

.canvas-shot-helper img {
  width: 74px;
  height: 74px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.canvas-shot-helper p {
  margin-top: 6px;
  color: #718278;
  font-size: 12px;
  line-height: 1.55;
}

.canvas-shot-input {
  margin-top: 14px;
  padding: 12px;
  color: #72877e;
  background: #f8fcfa;
  border: 1px solid #e3eee8;
  border-radius: 12px;
  font-size: 12px;
}

.canvas-shot-board {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: radial-gradient(circle at 48% 42%, rgba(104, 184, 142, 0.24), transparent 28%), #eef7f2;
}

.canvas-shot-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(47, 125, 82, 0.45);
}

.canvas-shot-links path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-dasharray: 9 9;
}

.canvas-asset {
  position: absolute;
  z-index: 2;
  width: 138px;
  height: 104px;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(18, 66, 42, 0.18);
}

.asset-1 { top: 44px; left: 46px; }
.asset-2 { top: 104px; left: 300px; }
.asset-3 { right: 42px; top: 176px; }
.asset-4 { left: 76px; bottom: 46px; }
.asset-5 { right: 166px; bottom: 58px; }

.canvas-flow-copy .section-heading,
.canvas-flow-copy {
  color: #fff;
}

.canvas-flow-copy h2 {
  color: #fff;
}

.canvas-flow-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.canvas-step-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.canvas-step-list div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.canvas-step-list strong {
  color: #8bd2aa;
}

.canvas-step-list p {
  margin-top: 4px;
  font-size: 13px;
}

.primary-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  color: #102016;
  background: var(--primary);
  border-radius: 999px;
  font-weight: 950;
}

.home-final-section {
  background:
    linear-gradient(180deg, rgba(237, 248, 242, 0.95), rgba(255, 255, 255, 0.98)),
    url("./images/features-bg.png") center/cover no-repeat;
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 34px;
}

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

.final-action-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  color: #13231b;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(104, 184, 142, 0.1);
}

.final-action-card.dark {
  color: #fff;
  background: #111814;
}

.final-action-card strong {
  align-self: end;
  font-size: 18px;
  font-weight: 950;
}

.final-action-card span {
  color: #718278;
  font-size: 13px;
  font-weight: 800;
}

.final-action-card.dark span {
  color: rgba(255, 255, 255, 0.66);
}

.home-footer {
  background: #101814;
  color: rgba(255, 255, 255, 0.72);
}

.footer-content {
  display: grid;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-brand span {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.footer-brand p,
.footer-copyright,
.footer-records {
  margin-top: 4px;
  font-size: 13px;
}

.footer-links,
.footer-records {
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.mobile-nav {
  display: none;
}

.notice-modal,
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.62);
  backdrop-filter: blur(3px);
}

.notice-modal[hidden],
.login-modal[hidden] {
  display: none;
}

.notice-dialog,
.login-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #667085;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 22px;
}

.notice-dialog h2,
.login-dialog h2 {
  margin-bottom: 16px;
  color: #1a1a1a;
  font-size: 22px;
}

.notice-dialog article {
  padding: 16px;
  background: #f7fbf8;
  border: 1px solid #dfe9e4;
  border-radius: 14px;
}

.notice-dialog time {
  color: #8a9a91;
  font-size: 12px;
  font-weight: 800;
}

.notice-dialog h3 {
  margin: 8px 0;
  color: #163c29;
  font-size: 18px;
}

.notice-dialog p {
  color: #52635a;
  font-size: 14px;
  line-height: 1.8;
}

.login-dialog label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #23362b;
  font-size: 13px;
  font-weight: 900;
}

.login-dialog input {
  height: 44px;
  padding: 0 12px;
  color: #111814;
  background: #f8fcfa;
  border: 1px solid #dbe9e2;
  border-radius: 12px;
  outline: none;
}

.login-message {
  margin-bottom: 12px;
  color: #c01048;
  font-size: 13px;
  font-weight: 800;
}

.solid-button.full {
  width: 100%;
}

.login-dialog p {
  margin-top: 12px;
  color: #718278;
  font-size: 13px;
  text-align: center;
}

.login-dialog p button {
  color: #2f7d52;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .desktop-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .case-waterfall-grid,
  .tool-card-grid,
  .final-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card-featured {
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .membership-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e1e9e4;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .canvas-route {
    overflow: auto;
  }

  .canvas-page {
    height: auto;
    min-height: 100vh;
  }

  .canvas-topbar {
    grid-template-columns: auto auto;
  }

  .canvas-project-pill {
    display: none;
  }

  .canvas-shell {
    display: flex;
    height: auto;
    min-height: calc(100vh - 58px);
    flex-direction: column;
  }

  .canvas-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dfe8e2;
  }

  .canvas-board {
    min-height: 560px;
  }

  .prompt-node {
    top: 52px;
    left: 22px;
    width: min(230px, calc(100% - 44px));
  }

  .canvas-reference-nodes .reference-node {
    top: 220px;
    left: 48px;
  }

  .canvas-result-node {
    top: 330px;
    right: 22px;
    left: 22px;
    width: auto;
  }

  .canvas-bottom-dock {
    right: 18px;
    left: 18px;
    justify-content: center;
    transform: none;
  }

  .canvas-zoom-dock {
    display: none;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 74px 18px 54px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .composer-footer {
    display: grid;
  }

  .composer-tools {
    display: grid;
    grid-template-columns: 42px 1fr 1fr;
  }

  .model-select-tool {
    grid-column: span 2;
  }

  .generate-button {
    justify-content: center;
    width: 100%;
  }

  .case-waterfall-grid,
  .tool-card-grid,
  .canvas-flow-layout,
  .final-layout,
  .final-actions {
    grid-template-columns: 1fr;
  }

  .tool-card {
    grid-template-columns: 104px minmax(0, 1fr) auto;
  }

  .tool-card img {
    width: 104px;
    height: 104px;
  }

  .canvas-shot-body {
    grid-template-columns: 1fr;
  }

  .canvas-shot-sidebar {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 66px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #f0f0f0;
    backdrop-filter: blur(12px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    color: #666;
    font-size: 13px;
    font-weight: 800;
  }

  body {
    padding-bottom: 66px;
  }
}

@media (max-width: 560px) {
  .simple-topbar,
  .admin-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .membership-hero,
  .membership-grid {
    width: calc(100% - 32px);
  }

  .membership-hero h1,
  .admin-header h1 {
    font-size: 30px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .canvas-topbar {
    height: 56px;
    padding: 0 14px;
  }

  .canvas-brand {
    font-size: 16px;
  }

  .canvas-back-home {
    padding: 0 10px;
  }

  .canvas-helper {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .canvas-helper img {
    width: 48px;
    height: 48px;
  }

  .canvas-composer {
    display: grid;
  }

  .canvas-composer textarea,
  .canvas-composer button {
    width: 100%;
  }

  .canvas-bottom-dock {
    overflow-x: auto;
    justify-content: flex-start;
  }

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

  .page-home {
    padding-top: 56px;
  }

  .brand {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-badge {
    margin-bottom: 18px;
  }

  .home-composer {
    padding: 14px;
    border-radius: 18px;
  }

  .composer-header {
    align-items: flex-start;
  }

  .composer-upload span {
    display: none;
  }

  .home-composer textarea {
    min-height: 132px;
    font-size: 15px;
  }

  .home-section-inner {
    width: calc(100% - 36px);
  }

  .case-waterfall-section,
  .more-tools-section,
  .canvas-flow-section,
  .home-final-section {
    padding: 58px 0;
  }

  .section-heading h2 {
    font-size: 28px;
  }
}
