:root {
  --ink: #f6f8f6;
  --muted: #c7d2ce;
  --line: rgba(246, 248, 246, 0.16);
  --panel: rgba(8, 13, 15, 0.78);
  --panel-solid: #101719;
  --green: #7be495;
  --teal: #56d5c8;
  --amber: #f2b84b;
  --coral: #ff7f68;
  --blue: #78a8ff;
  --dark: #070b0d;
  --soft: #edf4ef;
  --soft-ink: #17211e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--dark);
  letter-spacing: 0;
}

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

a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(7, 11, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}

.brand-text {
  color: var(--ink);
}

.site-nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
  flex: 1;
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--green), var(--teal) 55%, var(--amber));
  box-shadow: 0 0 24px rgba(86, 213, 200, 0.34);
}

.site-nav,
.nav-account {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav {
  justify-content: center;
}

.site-nav a,
.nav-account a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover,
.nav-account a:hover,
.site-nav a.active {
  color: var(--ink);
  background: rgba(246, 248, 246, 0.08);
}

.nav-cta {
  color: #07100d !important;
  background: var(--green);
  padding: 0 14px !important;
  border-radius: 8px;
  font-weight: 700;
}

.nav-user {
  color: var(--green);
  font-size: 13px;
  padding: 6px 12px;
  background: rgba(123, 228, 149, 0.1);
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 248, 246, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(7, 11, 13, 0.96) 0%, rgba(7, 11, 13, 0.76) 38%, rgba(7, 11, 13, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 11, 13, 0.86) 0%, rgba(7, 11, 13, 0) 34%),
    url("/images/jundot-ai-editor-hero.png");
  background-size: cover;
  background-position: center;
  padding: 118px clamp(18px, 5vw, 72px) 48px;
}

.hero-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(260px, 1fr);
  gap: 36px;
  align-items: end;
}

.eyebrow {
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 18px;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
}

.button.primary {
  color: #06110d;
  background: var(--green);
  border-color: transparent;
}

.button.secondary {
  color: var(--ink);
  background: rgba(246, 248, 246, 0.08);
}

.stats {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.stat strong {
  display: block;
  font-size: 24px;
  color: var(--ink);
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

section {
  padding: 86px clamp(18px, 5vw, 72px);
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.65fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: #53615c;
  line-height: 1.72;
  font-size: 16px;
}

.light {
  color: var(--soft-ink);
  background: var(--soft);
}

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

.feature {
  min-height: 228px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d9e3dd;
  border-radius: 8px;
}

.feature b {
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #07110d;
  background: var(--green);
  font-size: 18px;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature p {
  margin: 0;
  color: #52605b;
  line-height: 1.68;
}

.flow {
  background: #101719;
}

.flow h2,
.flow .section-head p {
  color: var(--ink);
}

.flow .section-head p {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.step {
  position: relative;
  min-height: 186px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 248, 246, 0.06);
}

.step em {
  display: block;
  color: var(--amber);
  font-style: normal;
  font-weight: 800;
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

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

.copy-item {
  padding: 20px;
  border: 1px solid #d9e3dd;
  border-radius: 8px;
  background: #ffffff;
}

.copy-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.copy-item p {
  margin: 0;
  color: #52605b;
  line-height: 1.68;
}

.release {
  color: var(--ink);
  background: #14120f;
  border-top: 1px solid rgba(242, 184, 75, 0.22);
  border-bottom: 1px solid rgba(242, 184, 75, 0.22);
}

.release h2 {
  color: var(--ink);
}

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

.release-card {
  min-height: 158px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(242, 184, 75, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.release-card h3 {
  margin: 0 0 10px;
  color: var(--amber);
}

.release-card p {
  margin: 0;
  color: #d9d0bd;
  line-height: 1.65;
}

.cta {
  color: var(--soft-ink);
  background: #f7faf7;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d9e3dd;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  margin: 0;
  color: #53615c;
  line-height: 1.72;
}

footer {
  padding: 24px clamp(18px, 5vw, 72px);
  color: #9eaaa5;
  background: #070b0d;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.page-content {
  padding-top: 100px;
  min-height: 80vh;
}

.page-content.light {
  background: var(--soft);
  color: var(--soft-ink);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9e3dd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(123, 228, 149, 0.2);
}

.text-success {
  color: #2e7d32;
  padding: 12px;
  background: #e8f5e9;
  border-radius: 8px;
  margin-bottom: 20px;
}

.text-error {
  color: #c62828;
  padding: 12px;
  background: #ffebee;
  border-radius: 8px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .topbar {
    position: fixed;
    padding: 10px 16px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav-panel {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(246, 248, 246, 0.1);
  }

  .site-nav-panel.show {
    display: flex;
  }

  .site-nav,
  .nav-account {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a,
  .nav-account a,
  .nav-user {
    justify-content: center;
    width: 100%;
    min-height: 40px;
  }

  .nav-account {
    padding-top: 10px;
    border-top: 1px solid rgba(246, 248, 246, 0.08);
  }

  .hero {
    min-height: 94vh;
    background-position: 58% center;
    padding-top: 110px;
  }

  .hero-inner,
  .section-head,
  .split,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .stats,
  .feature-grid,
  .timeline,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 24px;
  }
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.branch-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.branch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 228, 149, 0.6);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.branch-card.featured {
  border-color: rgba(123, 228, 149, 0.4);
  background: linear-gradient(135deg, rgba(123, 228, 149, 0.12), rgba(86, 213, 200, 0.08));
}

.release .branch-card.featured {
  border-color: rgba(123, 228, 149, 0.5);
  background: linear-gradient(135deg, rgba(18, 36, 26, 0.92), rgba(14, 29, 31, 0.9));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.branch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.branch-card-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1a1a1a;
  font-weight: 700;
}

.release .branch-card-header h3 {
  color: var(--ink);
}

.branch-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #f0f0f0;
  color: #4a4a4a;
  white-space: nowrap;
}

.badge-published {
  background: rgba(123, 228, 149, 0.15);
  color: #2d7d46;
}

.badge-draft {
  background: rgba(255, 127, 104, 0.15);
  color: #b32d1e;
}

.badge-beta {
  background: rgba(242, 184, 75, 0.15);
  color: #b8860b;
}

.branch-desc {
  margin: 0 0 16px;
  color: #5a5a5a;
  line-height: 1.7;
  font-size: 14px;
  flex: 1;
}

.release .branch-desc {
  color: #c8d8d1;
}

.branch-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.branch-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4a4a4a;
}

.release .branch-features li {
  color: #d9e6e0;
}

.feature-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.branch-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.release .branch-card-footer {
  border-top-color: rgba(246, 248, 246, 0.12);
}

.branch-version-count {
  color: #6a6a6a;
  font-size: 14px;
}

.release .branch-version-count {
  color: #b8c8c1;
}

.genre-group {
  margin-bottom: 48px;
}

.genre-group:last-child {
  margin-bottom: 0;
}

.filter-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(246, 248, 246, 0.06);
  border: 1px solid rgba(246, 248, 246, 0.08);
  transition: all 0.18s ease;
}

.filter-tag:hover {
  color: var(--ink);
  background: rgba(246, 248, 246, 0.1);
  border-color: rgba(246, 248, 246, 0.16);
}

.filter-tag.active {
  color: #07100d;
  background: var(--green);
  border-color: var(--green);
  font-weight: 600;
}

.branch-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, rgba(123, 228, 149, 0.1), rgba(86, 213, 200, 0.03) 48%, transparent);
}

.branch-hero-description {
  margin-bottom: 24px;
  color: #c7d2ce;
}

.branch-info-card {
  background: rgba(246, 248, 246, 0.08);
  border: 1px solid rgba(246, 248, 246, 0.14);
  border-radius: 12px;
  padding: 24px;
}

.branch-info-card h4 {
  margin-bottom: 16px;
  color: var(--ink);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(246, 248, 246, 0.06);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--muted);
  font-size: 14px;
}

.info-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.release-list-item {
  background: rgba(246, 248, 246, 0.07);
  border: 1px solid rgba(246, 248, 246, 0.13);
  border-radius: 12px;
  padding: 24px;
}

.release-list-meta {
  color: #aebdb7;
  font-size: 14px;
}

.release-list-description {
  color: #c7d2ce;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== GIF Showcase Styles ===== */
.showcase {
  padding: 0 clamp(18px, 5vw, 72px);
  background: var(--dark);
}

.showcase-hero {
  max-width: 1160px;
  margin: 0 auto;
}

.showcase-hero-gif {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101719;
}

.showcase-hero-gif img {
  width: 100%;
  display: block;
}

.feature-gif {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d9e3dd;
  background: #f7faf7;
}

.feature-gif img {
  width: 100%;
  display: block;
}

.step-gif {
  margin-bottom: 14px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}

.step-gif img {
  width: 100%;
  display: block;
}
@media (max-width: 520px) {
  .site-nav,
  .nav-account {
    grid-template-columns: 1fr;
  }

  .brand-text {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  section {
    padding: 62px 16px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===== Docs Image Styles ===== */
.docs-image {
  margin: 24px 0;
  text-align: center;
}

.docs-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.docs-image figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #53615c;
}
