/* ByteProof product page — ByteMind Ltd (2026)
   Standalone stylesheet, kept in the ByteMind design language. */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@400;450;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #faf9f3;
  --bg-soft: #f2efe5;
  --card: #fdfcf8;
  --ink: #1f1e1a;
  --text: #3d3b36;
  --muted: #6a6760;
  --line: #e2ddd1;
  --line-soft: #eae5d9;

  --green-900: #0e2419;
  --green-800: #143024;
  --green-700: #1a3a2a;
  --green-600: #1f5335;
  --green-500: #306d49;
  --green-400: #4d8763;
  --green-300: #79a88a;
  --green-200: #a9c7b3;
  --green-100: #d6e4db;
  --green-50: #edf3ef;

  --red: #a23b32;
  --red-bg: #fdf2f0;
  --green-ok: #2f7a4b;
  --green-ok-bg: #e9f6ee;

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --shadow-card: 0 1px 2px rgba(31, 30, 26, 0.05);
  --shadow-float: 0 18px 44px -18px rgba(14, 36, 25, 0.24);
  --shadow-soft: 0 10px 30px -12px rgba(31, 30, 26, 0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;
  --container: 1120px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 243, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--green-700);
}

.brand-by {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.header-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--green-700);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-700);
  color: var(--card);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  transition: background 0.25s ease, transform 0.25s ease;
}

.header-cta:hover {
  background: var(--green-800);
  transform: translateY(-1px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 0.78rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--green-700);
  color: var(--card);
}

.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -12px rgba(14, 36, 25, 0.5);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--green-400);
  color: var(--green-700);
  background: var(--green-50);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--green-700);
}

.btn-ghost:hover {
  background: var(--green-50);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 0.98rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.8rem;
}

.btn .arrow {
  transition: transform 0.25s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 5.2rem 1.5rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 58, 42, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 72% 62% at 50% 0%, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 0%, black 35%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.95rem;
  background: var(--green-50);
  border: 1px solid rgba(26, 58, 42, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 1.6rem;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(48, 109, 73, 0.18);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.55rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1.4rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-600);
}

/* Chinese pages: green emphasis without a synthetic italic, which CJK
   glyphs do not wear well. */
.hero h1 .accent {
  color: var(--green-600);
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 2.2rem;
  text-wrap: balance;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-micro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 3.4rem;
}

.hero-micro span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-micro .tick {
  color: var(--green-500);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(253, 252, 248, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.float-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

.float-chip .kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-700);
  border-radius: 5px;
  padding: 0.12rem 0.4rem;
}

.chip-word {
  top: 5.6rem;
  left: -1.6rem;
}

.chip-anywhere {
  bottom: 7.8rem;
  right: -1.8rem;
}

.chip-hotkey {
  top: 35%;
  right: -2.4rem;
}

/* ---------- Model strip ---------- */
.model-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 229, 0.45);
  padding: 2rem 1.5rem;
}

.model-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.model-strip p {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.model-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.model-badges span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.95rem;
}

.model-badges .local {
  color: var(--green-600);
  border-color: var(--green-200);
  background: var(--green-50);
}

/* ---------- Section scaffold ---------- */
.section {
  padding: 5.5rem 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.4rem;
}

.section-head .eyebrow {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.accent-bar {
  width: 48px;
  height: 2px;
  background: var(--green-400);
  border-radius: var(--radius-full);
  margin: 1.1rem auto 0;
}

/* ---------- Modes ---------- */
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  max-width: 980px;
  margin: 0 auto;
}

.mode-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--green-200));
}

.mode-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.mode-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.mode-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.mode-card > p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1.3rem;
}

.mode-list {
  list-style: none;
}

.mode-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--text);
}

.mode-list li:first-child {
  border-top: none;
}

.mode-list .tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-ok-bg);
  color: var(--green-ok);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ---------- Before / after ---------- */
.examples {
  display: grid;
  gap: 1.8rem;
  max-width: 960px;
  margin: 0 auto;
}

.example-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.example-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  position: relative;
}

.example-panel.before {
  border-left: 3px solid var(--red);
}

.example-panel.after {
  border-left: 3px solid var(--green-500);
}

.example-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.example-panel.before .example-label {
  color: var(--red);
}

.example-panel.after .example-label {
  color: var(--green-600);
}

.example-text {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--text);
}

.example-panel.after .example-text {
  color: var(--green-900);
}

.example-arrow {
  display: none;
}

.example-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.6rem;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.feature-note {
  max-width: 760px;
  margin: 2.4rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
}

.feature-note .mono {
  color: var(--green-700);
  font-size: 0.8rem;
}

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  gap: 1.8rem;
}

.shot-main {
  max-width: 1020px;
  margin: 0 auto;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  max-width: 920px;
  margin: 0 auto;
}

.shot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shot:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-soft);
}

.shot img {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  cursor: zoom-in;
}

.shot-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.shot-caption strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Demo tabs ---------- */
.demo-tabs {
  max-width: 1080px;
  margin: 0 auto;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  border-color: var(--green-300);
  color: var(--green-700);
}

.tab-btn.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--card);
  box-shadow: 0 8px 20px -8px rgba(14, 36, 25, 0.45);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.demo-layout {
  display: grid;
  gap: 1.4rem;
}

.demo-figure {
  margin: 0;
}

.demo-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  cursor: zoom-in;
}

.demo-figure figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.65rem;
}

.demo-copy h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.demo-context {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.demo-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem;
  align-items: start;
}

.demo-copy h3,
.demo-copy .demo-context,
.demo-copy .example-note {
  grid-column: 1 / -1;
}

.demo-copy .demo-context {
  margin-bottom: 0.2rem;
}

.demo-copy .example-note {
  text-align: center;
  margin-top: 0.1rem;
  margin-bottom: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: rgba(14, 36, 25, 0.94);
  overflow: auto;
}

.lightbox.open {
  display: block;
}

.lightbox-stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem 2.5rem;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
}

.lightbox img.zoom {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.lightbox-tools {
  position: fixed;
  top: 1rem;
  right: 1.2rem;
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}

.lightbox-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(250, 249, 243, 0.9);
  background: rgba(250, 249, 243, 0.12);
  border: 1px solid rgba(250, 249, 243, 0.28);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(250, 249, 243, 0.22);
}

.lightbox-caption {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(250, 249, 243, 0.68);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Demo placeholder ---------- */
.demo {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 20% 15%, rgba(77, 135, 99, 0.35), transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(77, 135, 99, 0.25), transparent 40%),
    var(--green-900);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(169, 199, 179, 0.18);
}

.demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(250, 249, 243, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.demo-inner {
  position: relative;
}

.play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(250, 249, 243, 0.1);
  border: 1px solid rgba(250, 249, 243, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
  margin-bottom: 1.6rem;
  transition: all 0.3s ease;
  cursor: default;
}

.play-btn svg {
  margin-left: 4px;
}

.demo h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--card);
  margin-bottom: 0.6rem;
}

.demo p {
  color: rgba(250, 249, 243, 0.68);
  font-size: 0.94rem;
  max-width: 440px;
  margin: 0 auto;
}

.demo-video {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 920px);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(250, 249, 243, 0.18);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.demo-note {
  position: relative;
  z-index: 2;
  margin-top: 1.2rem;
  color: rgba(250, 249, 243, 0.68);
  font-size: 0.88rem;
  max-width: 440px;
}

.demo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.demo-card {
  margin: 0;
}

.demo-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--card);
  margin: 1rem 0 0.35rem;
}

.demo-card p {
  color: rgba(250, 249, 243, 0.68);
  font-size: 0.88rem;
  max-width: none;
  margin: 0;
}

.demo-tag {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 249, 243, 0.45);
  border: 1px dashed rgba(250, 249, 243, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  max-width: 860px;
  margin: 0 auto;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--card);
  box-shadow: var(--shadow-float);
  position: relative;
}

.price-card .plan-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.7rem;
}

.price-card.featured .plan-label {
  color: var(--green-200);
}

.price-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.price-card.featured h3 {
  color: var(--card);
}

.price {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.price-card.featured .price {
  color: var(--card);
}

.price-period {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.price-card.featured .price-period {
  color: rgba(250, 249, 243, 0.68);
}

.price-list {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.price-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  padding: 0.42rem 0;
  color: var(--text);
}

.price-card.featured .price-list li {
  color: rgba(250, 249, 243, 0.86);
}

.price-list .tick {
  flex: none;
  color: var(--green-500);
  font-weight: 700;
}

.price-card.featured .price-list .tick {
  color: var(--green-200);
}

.price-card .btn {
  width: 100%;
}

.price-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 620px;
  margin: 1.6rem auto 0;
}

.price-note a {
  color: var(--green-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 58, 42, 0.25);
}

.price-note a:hover {
  text-decoration-color: var(--green-600);
}

/* ---------- Download ---------- */
.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  max-width: 980px;
  margin: 0 auto;
}

.download-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.download-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.download-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.download-card .btn {
  width: 100%;
}

.download-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.4rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item[open] {
  border-color: var(--green-200);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item[open] summary .plus {
  transform: rotate(45deg);
  background: var(--green-100);
}

.faq-answer {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.92rem;
  color: var(--text);
}

.faq-answer p {
  margin-bottom: 0.7rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer .mono {
  color: var(--green-700);
  font-size: 0.85rem;
  background: var(--green-50);
  border-radius: 5px;
  padding: 0.08rem 0.35rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  background: var(--green-900);
  color: rgba(250, 249, 243, 0.72);
  padding: 3.2rem 1.5rem 2.2rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: rgba(250, 249, 243, 0.92);
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(250, 249, 243, 0.68);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(250, 249, 243, 0.94);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 249, 243, 0.09);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.76rem;
  color: rgba(250, 249, 243, 0.5);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .chip-hotkey {
    display: none;
  }

  .chip-word {
    left: 0.2rem;
  }

  .chip-anywhere {
    right: 0.2rem;
  }

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

@media (max-width: 820px) {
  .header-nav {
    display: none;
  }

  .modes,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .example-row {
    grid-template-columns: 1fr;
  }

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

  .demo-copy {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 3.6rem 1.25rem 3rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .float-chip {
    display: none;
  }
}

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

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .price-card {
    padding: 1.8rem;
  }

  .demo {
    padding: 3.6rem 1.4rem;
  }
}

/* Language switch, matching the one in colors_and_type.css. */
.lang-switch {
  margin-left: 1rem; padding: 4px 12px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 0.86rem; text-decoration: none; color: inherit; opacity: 0.85;
}
.lang-switch:hover { opacity: 1; }

/* ---------- Clips ----------
   One short loop per step and per feature: the real app, about three seconds
   long, playing while it is on screen. */
.steps {
  display: grid;
  gap: 3.4rem;
  max-width: 1060px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.6rem;
  align-items: center;
}

.step.flip .step-copy {
  order: 2;
}

.step-copy h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.step-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-600);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.clip {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.clip video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-soft);
  cursor: pointer;
}

.clip figcaption {
  padding: 0.7rem 1rem 0.8rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--muted);
}

.clip-plain {
  box-shadow: none;
}

.mode-clip {
  margin: 1.3rem 0 0;
}

.mode-clip figcaption {
  display: none;
}

@media (max-width: 880px) {
  .steps {
    gap: 2.6rem;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .step.flip .step-copy {
    order: 0;
  }
}
