:root {
  --ink: #edf2ff;
  --ink-muted: #a8b2c9;
  --ink-faint: #68738c;
  --night: #080c18;
  --night-deep: #060913;
  --panel: #101728;
  --panel-light: #151e32;
  --line: rgba(166, 181, 220, 0.16);
  --line-bright: rgba(166, 181, 220, 0.28);
  --violet: #846dff;
  --violet-light: #a79aff;
  --cyan: #55d9f6;
  --green: #6ee7b7;
  --orange: #ffb86b;
  --sans: "Manrope", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1160px;
  --radius: 18px;
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night-deep);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

::selection {
  color: #fff;
  background: rgba(132, 109, 255, 0.48);
}

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

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

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(166, 181, 220, 0.1);
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(140deg, var(--violet), #46bdea);
  box-shadow: 0 7px 24px rgba(105, 83, 255, 0.3);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 10px;
}

.main-nav a,
.footer-links a {
  color: var(--ink-muted);
  font-size: 14px;
  transition: color var(--ease);
}

.main-nav a:hover,
.footer-links a:hover {
  color: #fff;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  color: var(--ink);
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.nav-github:hover {
  border-color: rgba(132, 109, 255, 0.8);
  background: rgba(132, 109, 255, 0.12);
  transform: translateY(-1px);
}

.nav-github svg {
  width: 16px;
  height: 16px;
}

.nav-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: color var(--ease-fluid), border-color var(--ease-fluid), background var(--ease-fluid), transform var(--ease-fluid);
}

.nav-language:hover {
  color: #fff;
  border-color: var(--line-bright);
  background: rgba(132, 109, 255, 0.12);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: 72px;
  align-items: center;
  min-height: 680px;
  padding-top: 100px;
  padding-bottom: 92px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  top: 5px;
  right: -80px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(87, 77, 213, 0.19), transparent 68%);
  filter: blur(4px);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.hero h1,
.section-heading h2,
.export-copy h2,
.quick-start-header h2,
.privacy-callout h2,
.contribute-copy h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.hero h1 {
  max-width: 630px;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
}

.hero h1 span,
.section-heading h2 span,
.export-copy h2 span,
.quick-start-header h2 span,
.contribute-copy h2 span {
  color: var(--violet-light);
}

.hero-lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

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

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #7661f4, #558bdc);
  box-shadow: 0 12px 28px rgba(102, 87, 235, 0.26);
}

.button-primary:hover {
  box-shadow: 0 16px 34px rgba(102, 87, 235, 0.38);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.02);
}

.button-secondary:hover {
  border-color: rgba(132, 109, 255, 0.7);
  background: rgba(132, 109, 255, 0.1);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 12px;
}

.hero-note {
  margin: 22px 0 0;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Editor visual */
.hero-visual {
  min-height: 448px;
  display: grid;
  place-items: center;
}

.visual-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
}

.visual-glow-one {
  width: 230px;
  height: 230px;
  top: 22px;
  right: 32px;
  background: rgba(82, 67, 255, 0.28);
}

.visual-glow-two {
  width: 180px;
  height: 180px;
  bottom: 25px;
  left: 20px;
  background: rgba(57, 194, 227, 0.15);
}

.editor-window {
  position: relative;
  width: min(100%, 600px);
  overflow: hidden;
  border: 1px solid rgba(177, 188, 224, 0.24);
  border-radius: 15px;
  background: #0c1220;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), 0 0 0 7px rgba(130, 112, 255, 0.035);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.window-bar {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(166, 181, 220, 0.12);
  background: #11192a;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #45516a;
}

.window-dots i:first-child {
  background: #ff7e83;
}

.window-dots i:nth-child(2) {
  background: #ffd275;
}

.window-dots i:nth-child(3) {
  background: #73d5a9;
}

.window-title {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
}

.window-status b {
  width: 5px;
  height: 5px;
  display: block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.editor-preview {
  position: relative;
  height: 255px;
  overflow: hidden;
  background: linear-gradient(145deg, #26304a 0%, #182237 46%, #0d2636 100%);
}

.editor-preview::before,
.editor-preview::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.editor-preview::before {
  width: 260px;
  height: 260px;
  top: -125px;
  right: -30px;
  background: radial-gradient(circle at 42% 62%, rgba(112, 143, 198, 0.65), rgba(64, 89, 146, 0.08) 62%, transparent 64%);
}

.editor-preview::after {
  width: 330px;
  height: 160px;
  left: -75px;
  bottom: -72px;
  background: rgba(45, 210, 200, 0.13);
  transform: rotate(-16deg);
}

.preview-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(178, 201, 234, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(178, 201, 234, 0.16) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, transparent, black 28%, transparent 90%);
}

.preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 13, 24, 0.38);
  transform: translate(-50%, -50%);
}

.preview-play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.preview-time {
  position: absolute;
  left: 17px;
  bottom: 15px;
  color: rgba(237, 242, 255, 0.7);
  font-family: var(--mono);
  font-size: 9px;
}

.preview-subtitle {
  position: absolute;
  right: 25px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.8);
}

.preview-subtitle em {
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

.preview-subtitle small {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
}

.editor-timeline {
  padding: 16px 18px 22px;
  background: #0b111e;
}

.timeline-scale {
  display: flex;
  justify-content: space-between;
  color: #59667f;
  font-family: var(--mono);
  font-size: 8px;
}

.wave-track {
  position: relative;
  height: 41px;
  margin-top: 5px;
  overflow: hidden;
  border-top: 1px solid rgba(110, 129, 165, 0.14);
  border-bottom: 1px solid rgba(110, 129, 165, 0.14);
  background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(119, 137, 172, 0.08) 25px 26px);
}

.wave-line,
.wave-line-2 {
  position: absolute;
  top: 17px;
  left: 0;
  width: 100%;
  height: 8px;
  opacity: 0.75;
  background: linear-gradient(90deg, transparent 0%, #4d88d7 5%, #53cbdc 11%, #6d6df1 17%, #5bd6ca 23%, #516cdb 31%, #53cadb 37%, #8069ec 46%, #5f98d2 55%, #4fc5d4 64%, #6d74ea 72%, #56b9d6 82%, #7969eb 91%, transparent 100%);
  clip-path: polygon(0 48%, 2% 40%, 3% 55%, 5% 28%, 6% 58%, 8% 16%, 10% 68%, 11% 34%, 14% 58%, 16% 22%, 18% 66%, 21% 41%, 24% 54%, 26% 18%, 29% 70%, 31% 34%, 33% 59%, 35% 28%, 38% 72%, 40% 38%, 43% 60%, 46% 20%, 48% 68%, 51% 35%, 54% 58%, 57% 24%, 60% 72%, 63% 39%, 65% 58%, 68% 18%, 71% 70%, 74% 31%, 77% 59%, 80% 22%, 83% 66%, 86% 32%, 89% 59%, 92% 25%, 95% 64%, 98% 35%, 100% 48%, 100% 53%, 98% 44%, 95% 72%, 92% 36%, 89% 66%, 86% 40%, 83% 76%, 80% 32%, 77% 68%, 74% 43%, 71% 79%, 68% 33%, 65% 72%, 63% 48%, 60% 82%, 57% 37%, 54% 68%, 51% 45%, 48% 79%, 46% 36%, 43% 67%, 40% 47%, 38% 83%, 35% 39%, 33% 68%, 31% 43%, 29% 81%, 26% 32%, 24% 64%, 21% 36%, 18% 72%, 16% 34%, 14% 65%, 11% 42%, 10% 77%, 8% 25%, 6% 65%, 5% 37%, 3% 64%, 2% 34%, 0 56%);
}

.wave-line-2 {
  top: 21px;
  opacity: 0.28;
  transform: scaleY(2.2);
}

.playhead {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 37%;
  width: 1px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.playhead::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.caption-track {
  position: relative;
  height: 28px;
  margin-top: 10px;
}

.caption-block {
  position: absolute;
  top: 0;
  height: 25px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid rgba(132, 109, 255, 0.52);
  border-radius: 4px;
  color: #c5bdff;
  background: rgba(112, 92, 232, 0.27);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

.caption-block-a { left: 4%; width: 24%; }
.caption-block-b { left: 31%; width: 30%; border-color: rgba(85, 217, 246, 0.7); color: #a5eefc; background: rgba(42, 166, 204, 0.25); }
.caption-block-c { left: 64%; width: 29%; }

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(184, 196, 230, 0.2);
  border-radius: 10px;
  background: rgba(16, 23, 40, 0.85);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.floating-card b,
.floating-card small {
  display: block;
}

.floating-card b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.floating-card small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 10px;
}

.floating-card-ai {
  top: 22px;
  left: -24px;
}

.floating-card-export {
  right: -27px;
  bottom: 38px;
}

.floating-icon,
.export-check {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  font-size: 14px;
}

.floating-icon {
  color: var(--violet-light);
  background: rgba(132, 109, 255, 0.2);
}

.export-check {
  color: var(--green);
  background: rgba(110, 231, 183, 0.16);
  font-weight: 800;
}

/* Signal */
.signal-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-item {
  min-height: 99px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 25px 19px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.signal-item + .signal-item {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}

.signal-item strong {
  color: var(--violet-light);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.signal-item small {
  color: var(--ink-faint);
  font-size: 10px;
}

/* Generic sections */
.section {
  padding-top: 150px;
  padding-bottom: 0;
}

.section-heading {
  max-width: 650px;
}

.section-heading h2,
.export-copy h2,
.quick-start-header h2,
.contribute-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
}

.section-heading > p:last-child,
.export-copy > p,
.contribute-copy > p {
  max-width: 540px;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 15px;
}

.section-heading-centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-heading-centered > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 62px;
}

.feature-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(21, 30, 50, 0.84), rgba(12, 18, 32, 0.84));
  transition: border-color var(--ease), transform var(--ease);
}

.feature-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-3px);
}

.feature-card-tall {
  min-height: 430px;
}

.feature-card-wide {
  min-height: 280px;
}

.feature-number,
.start-index {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.feature-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-top: 28px;
  border-radius: 12px;
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.icon-violet { color: var(--violet-light); background: rgba(132, 109, 255, 0.14); }
.icon-blue { color: var(--cyan); background: rgba(85, 217, 246, 0.12); }
.icon-orange { color: var(--orange); background: rgba(255, 184, 107, 0.12); }
.icon-green { color: var(--green); background: rgba(110, 231, 183, 0.12); }

.feature-card h3 {
  margin-top: 21px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.feature-card p {
  max-width: 430px;
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.8;
}

.feature-visual {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
}

.transcript-visual {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 13px;
  padding: 15px;
  border: 1px solid rgba(132, 109, 255, 0.16);
  border-radius: 10px;
  background: rgba(7, 11, 24, 0.55);
  font-family: var(--mono);
  font-size: 10px;
}

.transcript-visual span { color: var(--violet-light); }
.transcript-visual b { color: var(--ink-muted); font-weight: 400; }
.transcript-visual b:nth-of-type(2) { color: var(--cyan); }

.mini-wave {
  position: absolute;
  right: 28px;
  bottom: 30px;
  left: 28px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.mini-wave i {
  flex: 1;
  min-width: 3px;
  border-radius: 99px;
  background: linear-gradient(var(--cyan), var(--violet));
}

.mini-wave i:nth-child(1) { height: 18%; }
.mini-wave i:nth-child(2) { height: 52%; }
.mini-wave i:nth-child(3) { height: 27%; }
.mini-wave i:nth-child(4) { height: 80%; }
.mini-wave i:nth-child(5) { height: 45%; }
.mini-wave i:nth-child(6) { height: 93%; }
.mini-wave i:nth-child(7) { height: 63%; }
.mini-wave i:nth-child(8) { height: 32%; }
.mini-wave i:nth-child(9) { height: 72%; }
.mini-wave i:nth-child(10) { height: 40%; }
.mini-wave i:nth-child(11) { height: 86%; }
.mini-wave i:nth-child(12) { height: 57%; }
.mini-wave i:nth-child(13) { height: 31%; }
.mini-wave i:nth-child(14) { height: 68%; }
.mini-wave i:nth-child(15) { height: 44%; }
.mini-wave i:nth-child(16) { height: 74%; }

.format-cloud {
  position: absolute;
  right: 26px;
  bottom: 28px;
  left: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.format-cloud span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 184, 107, 0.29);
  border-radius: 5px;
  color: var(--orange);
  background: rgba(255, 184, 107, 0.08);
  font-family: var(--mono);
  font-size: 10px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 35px;
  align-items: end;
}

.privacy-layout .feature-icon {
  margin-top: 22px;
}

.privacy-badges {
  display: grid;
  gap: 8px;
}

.privacy-badges span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(110, 231, 183, 0.17);
  border-radius: 7px;
  color: var(--ink-faint);
  font-size: 10px;
}

.privacy-badges b {
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

/* Workflow */
.section-workflow {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 44, 0.44) 45%, transparent);
}

.section-workflow > .container {
  padding-top: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  align-items: stretch;
  gap: 11px;
  margin-top: 63px;
}

.step-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 40, 0.58);
}

.step-index {
  display: inline-flex;
  color: var(--cyan);
}

.step-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-top: 35px;
  border: 1px solid rgba(85, 217, 246, 0.23);
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(85, 217, 246, 0.08);
}

.step-icon svg {
  width: 21px;
  height: 21px;
}

.step-card h3 {
  margin-top: 20px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.step-card p {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.75;
}

.step-caption {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.step-connector {
  display: grid;
  place-items: center;
  color: var(--violet-light);
  font-size: 25px;
  font-weight: 300;
}

/* Export */
.export-section {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(420px, 1.17fr);
  gap: 100px;
  align-items: center;
}

.export-copy > p {
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  transition: color var(--ease);
}

.text-link:hover {
  color: #b4f2ff;
}

.text-link span {
  font-size: 17px;
}

.format-board {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 40, 0.65);
}

.format-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.format-row-primary {
  background: linear-gradient(90deg, rgba(132, 109, 255, 0.09), transparent);
}

.format-row:last-of-type {
  border-bottom: 0;
}

.format-label {
  color: var(--ink-faint);
  font-size: 11px;
}

.format-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.format-row b {
  padding: 6px 9px;
  border: 1px solid rgba(132, 109, 255, 0.38);
  border-radius: 5px;
  color: var(--violet-light);
  background: rgba(132, 109, 255, 0.09);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.format-row:nth-child(2) b { color: var(--cyan); border-color: rgba(85, 217, 246, 0.32); background: rgba(85, 217, 246, 0.07); }
.format-row:nth-child(3) b { color: var(--orange); border-color: rgba(255, 184, 107, 0.32); background: rgba(255, 184, 107, 0.07); }

.format-row small {
  color: var(--ink-faint);
  font-size: 10px;
  white-space: nowrap;
}

.format-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 9px 10px 2px;
  padding: 13px 16px;
  border: 1px solid rgba(110, 231, 183, 0.18);
  border-radius: 9px;
  color: var(--ink-muted);
  background: rgba(110, 231, 183, 0.05);
  font-size: 11px;
}

.note-mark {
  color: var(--green);
  font-size: 17px;
}

/* Quick start */
.quick-start-section {
  padding-bottom: 0;
}

.quick-start-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.open-source-stamp {
  display: grid;
  width: 75px;
  height: 75px;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(110, 231, 183, 0.32);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  transform: rotate(9deg);
}

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 58px;
}

.start-card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 40, 0.7);
}

.start-card-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.start-card-heading h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.start-index {
  color: var(--violet-light);
}

.start-card > p {
  min-height: 52px;
  margin: 17px 0 21px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.75;
}

.code-block {
  overflow: hidden;
  border: 1px solid rgba(166, 181, 220, 0.15);
  border-radius: 9px;
  background: #080d19;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(166, 181, 220, 0.12);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.copy-button {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-family: var(--sans);
  font-size: 11px;
  cursor: pointer;
}

.copy-button:hover {
  color: #fff;
}

.code-block code {
  display: block;
  min-height: 125px;
  padding: 15px;
  color: #b8c8e9;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.quick-start-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 15px 2px;
  color: var(--ink-faint);
  font-size: 11px;
}

/* Privacy callout */
.privacy-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 150px;
  padding: 31px 35px;
  border: 1px solid rgba(110, 231, 183, 0.23);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(110, 231, 183, 0.08), rgba(85, 217, 246, 0.035) 58%, transparent);
}

.privacy-callout-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: rgba(110, 231, 183, 0.1);
}

.privacy-callout-icon svg {
  width: 23px;
  height: 23px;
}

.privacy-callout .eyebrow {
  margin-bottom: 10px;
}

.privacy-callout h2 {
  font-size: 24px;
}

.privacy-callout p:last-child {
  margin-top: 9px;
  color: var(--ink-muted);
  font-size: 13px;
}

.privacy-callout a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contribute */
.contribute-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 150px;
}

.contribute-copy {
  max-width: 670px;
}

.contribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--night-deep);
}

.footer-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 104px;
}

.footer-wrap p {
  color: var(--ink-faint);
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.footer-links span {
  color: var(--ink-faint);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(166, 181, 220, 0.08);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
    gap: 44px;
  }

  .floating-card-ai { left: -8px; }
  .floating-card-export { right: -8px; }
  .export-section { gap: 54px; }
}

@media (max-width: 820px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .nav-wrap {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 15px 24px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-github {
    margin-left: auto;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .hero-copy {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 650px;
    min-height: 420px;
    margin: 55px auto 0;
  }

  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .signal-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .feature-grid,
  .quick-start-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    min-height: 300px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-card {
    min-height: 235px;
  }

  .step-connector {
    height: 28px;
    transform: rotate(90deg);
  }

  .export-section {
    grid-template-columns: 1fr;
  }

  .contribute-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 30px));
  }

  .nav-wrap {
    gap: 12px 14px;
  }

  .brand {
    font-size: 14px;
  }

  .nav-github {
    padding: 8px;
  }

  .nav-github span {
    display: none;
  }

  .main-nav {
    gap: 20px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    padding-top: 62px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-note {
    font-size: 9px;
    line-height: 1.8;
  }

  .hero-visual {
    min-height: 330px;
    margin-top: 32px;
  }

  .editor-window {
    transform: none;
  }

  .editor-preview {
    height: 190px;
  }

  .preview-subtitle {
    right: 15px;
  }

  .preview-subtitle em {
    font-size: 11px;
  }

  .floating-card {
    padding: 8px;
  }

  .floating-card-ai {
    top: 0;
    left: -6px;
  }

  .floating-card-export {
    right: -6px;
    bottom: 8px;
  }

  .floating-card b,
  .floating-card small {
    font-size: 8px;
  }

  .signal-item {
    min-height: 90px;
    gap: 9px;
    padding-right: 10px;
    font-size: 11px;
  }

  .signal-item + .signal-item {
    padding-left: 12px;
  }

  .signal-item small {
    font-size: 8px;
  }

  .section {
    padding-top: 100px;
  }

  .section-heading h2,
  .export-copy h2,
  .quick-start-header h2,
  .contribute-copy h2 {
    font-size: 35px;
  }

  .feature-grid {
    margin-top: 40px;
  }

  .feature-card {
    min-height: 360px;
    padding: 24px;
  }

  .feature-card-tall {
    min-height: 440px;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .format-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 13px;
  }

  .format-row small {
    white-space: normal;
  }

  .format-note {
    align-items: flex-start;
  }

  .quick-start-header h2 {
    max-width: 270px;
  }

  .open-source-stamp {
    width: 62px;
    height: 62px;
    font-size: 8px;
  }

  .start-card {
    padding: 22px;
  }

  .quick-start-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-callout {
    grid-template-columns: 1fr;
    margin-top: 100px;
    padding: 24px;
  }

  .contribute-section {
    padding-bottom: 100px;
  }

  .contribute-actions,
  .contribute-actions .button {
    width: 100%;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .footer-links {
    margin-left: 0;
  }

  .footer-bottom {
    gap: 10px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Apple-inspired interaction layer
   材質層次 · 即時回饋 · 克制動效 · 無障礙偏好
   ============================================================ */

:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang TC",
    "Hiragino Sans GB", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  --ease-fluid: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-press: cubic-bezier(0.22, 0.8, 0.2, 1);
  --focus-ring: rgba(85, 217, 246, 0.9);
}

html {
  scroll-padding-top: 96px;
}

body {
  font-optical-sizing: auto;
  background-image:
    radial-gradient(circle at 10% -8%, rgba(132, 109, 255, 0.11), transparent 36rem),
    radial-gradient(circle at 95% 15%, rgba(85, 217, 246, 0.06), transparent 32rem);
}

body::before {
  opacity: 0.1;
}

.site-header {
  border-bottom: 0;
  background: rgba(8, 12, 24, 0.68);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 11px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 12, 24, 0.2), transparent);
}

.button,
.nav-github,
.nav-language,
.copy-button,
.main-nav a,
.footer-links a {
  touch-action: manipulation;
}

.button,
.nav-github {
  will-change: transform;
}

.button:active,
.nav-github:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

.button:focus-visible,
.nav-github:focus-visible,
.main-nav a:focus-visible,
.brand:focus-visible,
.copy-button:focus-visible,
.text-link:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.feature-card,
.step-card,
.format-board,
.start-card,
.privacy-callout,
.code-block {
  border-color: rgba(166, 181, 220, 0.18);
  background-color: rgba(16, 23, 40, 0.68);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.feature-card:hover,
.step-card:hover,
.start-card:hover {
  border-color: rgba(166, 181, 220, 0.3);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.editor-window {
  border-color: rgba(205, 214, 238, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), 0 0 0 7px rgba(130, 112, 255, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.format-row b,
.format-cloud span {
  transition: transform var(--ease-fluid), background-color var(--ease-fluid), border-color var(--ease-fluid);
}

.format-row b:hover,
.format-cloud span:hover {
  transform: translateY(-1px);
}

.copy-button {
  transition: color var(--ease-fluid), transform var(--ease-fluid);
}

.copy-button:active {
  transform: scale(0.96);
}

.section,
.privacy-callout {
  scroll-margin-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .nav-github:hover,
  .nav-language:hover,
  .feature-card:hover,
  .format-row b:hover,
  .format-cloud span:hover,
  .start-card:hover,
  .step-card:hover,
  .copy-button:active {
    transform: none;
  }

  .editor-window {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body::before {
    display: none;
  }

  .site-header,
  .feature-card,
  .step-card,
  .format-board,
  .start-card,
  .privacy-callout,
  .code-block,
  .editor-window {
    background-color: var(--panel);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .feature-card,
  .step-card,
  .format-board,
  .start-card,
  .privacy-callout,
  .code-block,
  .editor-window,
  .button-secondary {
    border-color: var(--line-bright);
  }

  .hero-lead,
  .section-heading > p:last-child,
  .export-copy > p,
  .contribute-copy > p,
  .step-card p,
  .feature-card p {
    color: var(--ink);
  }
}

@media (pointer: coarse) {
  .button,
  .nav-github,
  .nav-language,
  .copy-button {
    min-height: 44px;
  }

  .main-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
