/* Official homepage — product-site layout */

.site-home {
  --ink: #0f1720;
  --muted: #5b6775;
  --paper: #eef2f5;
  --panel: #ffffff;
  --line: rgba(15, 23, 32, 0.1);
  --brand: #0d6e6e;
  --brand-deep: #0a5555;
  --display: "Sora", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --sans: "Figtree", "PingFang SC", "Hiragino Sans GB", sans-serif;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.site-home .site-nav {
  background: rgba(238, 242, 245, 0.9);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.site-home .site-brand {
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-home .site-brand .mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  background: url("/assets/mark.png?v=20260916c") center / contain no-repeat;
  border-radius: 7px;
  font-size: 0;
}

.site-home .nav-links a,
.site-home .nav-dropdown > button {
  color: var(--muted);
  font-weight: 500;
}

.site-home .nav-links a:hover,
.site-home .nav-links a.active,
.site-home .nav-dropdown > button:hover,
.site-home .nav-dropdown.open > button {
  color: var(--brand);
  background: rgba(13, 110, 110, 0.08);
}

.nav-tools-link {
  margin-left: 8px;
  padding: 7px 12px !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.nav-tools-link:hover,
.nav-tools-link.active {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
  background: rgba(13, 110, 110, 0.08) !important;
}

.site-home .btn {
  background: var(--brand);
}

.site-home .btn:hover {
  background: var(--brand-deep);
}

.site-home .btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

/* Hero: one composition, full-bleed plane */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: end start;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 640px at 78% 12%, rgba(13, 110, 110, 0.22), transparent 58%),
    radial-gradient(800px 520px at 8% 88%, rgba(15, 23, 32, 0.08), transparent 52%),
    linear-gradient(160deg, #f5f7fa 0%, #e8eef2 46%, #d9e5e5 100%);
  animation: plane-shift 14s ease-in-out infinite alternate;
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 32, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, #000 28%, transparent 90%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 11vh;
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-brand {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(3.8rem, 11vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: var(--ink);
}

.hero-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--sans);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero-sub {
  margin: 14px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background: var(--ink);
  color: #f4f7f8;
}

.btn-solid:hover {
  background: var(--brand-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(15, 23, 32, 0.28);
  color: var(--ink);
  transform: translateY(-1px);
}

.block {
  padding: 96px 0 0;
}

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

.block-inner.narrow {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.block h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.block-lead {
  margin: 16px 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.feature-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.app-stage {
  margin-top: 48px;
  overflow: hidden;
}

.shot-frame {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 32, 0.16);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #12151b;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04) inset;
  animation: rise 1.1s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* Tiger Diff — VS Code style mock */
.vs-scene {
  position: relative;
  width: min(1000px, calc(100% - 24px));
  margin: 0 auto;
  padding-bottom: 24px;
  animation: rise 1.1s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.vs-editor {
  border: 1px solid rgba(15, 23, 32, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: #1e1e1e;
  box-shadow: 0 30px 70px rgba(15, 23, 32, 0.24);
  font-family: var(--mono, "SF Mono", "Cascadia Code", Consolas, monospace);
}

.vs-tabs {
  display: flex;
  background: #252526;
  border-bottom: 1px solid #333842;
}

.vs-tab {
  padding: 9px 16px;
  font-size: 0.78rem;
  color: #8a929e;
  border-right: 1px solid #333842;
}

.vs-tab.active {
  background: #1e1e1e;
  color: #e6eaf0;
}

.vs-code {
  display: grid;
  gap: 2px;
  padding: 16px 14px 22px;
  font-size: 0.86rem;
  line-height: 1.75;
  color: #b6bdc7;
}

.vs-code .ln {
  padding: 1px 12px;
  border-left: 3px solid transparent;
  white-space: pre;
}

.vs-code .ln.add {
  background: rgba(46, 160, 106, 0.16);
  border-left-color: #2ea06a;
  color: #a7e8c4;
}

.vs-code .ln.del {
  background: rgba(224, 84, 84, 0.15);
  border-left-color: #e05454;
  color: #f0b0b0;
}

.vs-menu,
.vs-submenu {
  position: absolute;
  display: grid;
  gap: 1px;
  padding: 5px;
  min-width: 190px;
  background: #252526;
  border: 1px solid #3a3f4b;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.vs-menu {
  top: 74px;
  right: 26%;
}

.vs-submenu {
  top: 150px;
  right: 6%;
  min-width: 210px;
}

.vs-mi {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 5px;
  color: #cdd3dc;
  white-space: nowrap;
}

.vs-mi img {
  border-radius: 3px;
}

.vs-mi i {
  margin-left: auto;
  font-style: normal;
  color: #8a929e;
}

.vs-mi.active {
  background: #0d6e6e;
  color: #fff;
}

.vs-mi.active i {
  color: #cfeeee;
}

.vs-sep {
  height: 1px;
  margin: 4px 6px;
  background: #3a3f4b;
}

@media (max-width: 760px) {
  .vs-menu,
  .vs-submenu {
    position: static;
    margin: 12px auto 0;
    width: 100%;
    min-width: 0;
  }

  .vs-submenu {
    margin-top: 8px;
  }
}

/* Install — search the extension by name */
.install-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(460px, 100%);
  margin: 28px 0 0;
  padding: 14px 18px;
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(13, 110, 110, 0.14);
}

.install-search .ext-ico {
  font-size: 1.3rem;
  color: var(--muted);
  line-height: 1;
}

.install-search .ext-q {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.install-steps {
  margin: 22px 0 0;
  padding-left: 20px;
  max-width: 40rem;
  color: var(--ink);
  line-height: 2;
}

.install-steps b {
  color: var(--brand-deep);
}

.install-steps kbd {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 1px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font-family: var(--mono, monospace);
  font-size: 0.78rem;
}

.editor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.editor-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.block-tools {
  padding-top: 88px;
  padding-bottom: 40px;
  background: #e7edf1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tool-sheet {
  width: min(1120px, calc(100% - 48px));
  margin: 28px auto 0;
  border-top: 1px solid var(--line);
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.tool-row span {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tool-row em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-row:hover {
  padding-left: 8px;
  color: var(--brand-deep);
}

.tools-foot {
  padding-top: 22px;
}

.text-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

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

.block-close {
  padding: 100px 0;
}

.site-end {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.end-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.end-row nav {
  display: flex;
  gap: 18px;
}

.end-row a {
  color: var(--muted);
  text-decoration: none;
}

.end-row a:hover {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes plane-shift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.035) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 900px) {
  .tool-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-content {
    padding-bottom: 8vh;
  }

  .shot-frame {
    width: calc(100% - 16px);
    border-radius: 12px 12px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-plane,
  .hero-content,
  .shot-frame {
    animation: none;
  }
}

.tools-page .hero.tools-hero-mini {
  min-height: 42vh;
  place-items: center start;
}

.tools-page .hero.tools-hero-mini .hero-content {
  padding-bottom: 6vh;
}

.tools-page .tool-card {
  background: rgba(255, 255, 255, 0.72);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.download-card {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.download-os {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.mono {
  font-family: var(--mono, "SF Mono", "Cascadia Code", Consolas, monospace);
  font-size: 0.92em;
}

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