/* ============================================
   智研通学术 — 合并版样式
   基于 website 暖色调设计 + web 功能展示
   ============================================ */

:root {
  --paper: #fbf7ef;
  --paper-soft: #f4efe5;
  --ink: #182321;
  --muted: #64706c;
  --line: #ded6c8;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #c9822e;
  --coral: #b95f47;
  --plum: #60435f;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(22, 34, 31, 0.12);
  --shadow-sm: 0 4px 12px rgba(22, 34, 31, 0.08);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  z-index: 20;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 247, 239, 0.92);
  border-bottom: 1px solid rgba(222, 214, 200, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav a:hover { color: var(--amber); opacity: 1; }

.menu-button {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px; height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease;
}

.site-header.is-open .menu-button span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.is-open .menu-button span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 120px clamp(20px, 5vw, 72px) 92px;
}

.hero-image, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.hero-image { object-fit: cover; object-position: center; }

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10,20,18,0.86) 0%, rgba(10,20,18,0.68) 38%, rgba(10,20,18,0.18) 100%),
    linear-gradient(0deg, rgba(10,20,18,0.42), rgba(10,20,18,0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding-top: 40px;
}

.eyebrow, .section-kicker {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
  font-weight: 900;
}

.hero-lead {
  margin: 24px 0 0;
  font-size: clamp(25px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.22;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.72);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.button.secondary { color: var(--white); background: rgba(255,255,255,0.08); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  z-index: 1;
  width: 30px; height: 48px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
}

.scroll-cue span {
  position: absolute;
  top: 9px; left: 50%;
  width: 4px; height: 8px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: var(--white);
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* ---------- Fixed Float QR (右侧悬浮) ---------- */
.float-qr {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.12),
    0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.float-qr:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transform: translateY(-50%) scale(1.03);
}
.float-qr img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  display: block;
}
.float-qr-label {
  font-size: 0.7rem;
  color: #666;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .float-qr { right: 14px; }
  .float-qr img { width: 100px; height: 100px; }
  .float-qr-label { font-size: 0.65rem; }
}
@media (max-width: 600px) {
  .float-qr { display: none; }
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px);
}

.intro-band { background: var(--paper); }

.story-text { max-width: 820px; }

.story-text h2,
.section-heading h2,
.vision-section h2,
.download-content h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.18;
  font-weight: 850;
}

.story-text p { margin: 24px 0 0; color: var(--muted); font-size: 18px; }

.section-heading { max-width: 780px; margin-bottom: 42px; }
.section-heading p:not(.section-kicker) { margin: 18px 0 0; color: var(--muted); font-size: 18px; }

.text-accent { color: var(--amber); font-weight: 700; }

/* ---------- Identity ---------- */
.identity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.identity-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.62);
  min-height: 280px;
  padding: 30px;
}

.identity-label {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

.identity-item h3 { margin: 0; font-size: 22px; line-height: 1.35; }
.identity-item p { margin: 14px 0 0; color: var(--muted); }

.identity-item-strong {
  color: var(--white);
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: var(--shadow);
}

.identity-item-strong .identity-label,
.identity-item-strong p { color: rgba(255,255,255,0.78); }

/* ---------- Feature Rows (from web) ---------- */
.feature-section { background: var(--paper-soft); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: 64px;
  padding: 24px;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.feature-row:hover { background: rgba(255,255,255,0.5); }
.feature-row:last-child { margin-bottom: 0; }

.feature-row-reverse .feature-image { order: 2; }
.feature-row-reverse .feature-content { order: 1; }

.feature-row-highlight {
  background: linear-gradient(135deg, rgba(96,67,95,0.06) 0%, rgba(15,118,110,0.06) 100%);
  border: 1px solid var(--line);
  padding: 40px;
  margin-left: -24px;
  margin-right: -24px;
}

.fc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.fc-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.fc-icon--teal { background: rgba(15,118,110,0.1); }
.fc-icon--amber { background: rgba(201,130,46,0.1); }
.fc-icon--plum { background: rgba(96,67,95,0.1); }
.fc-icon--coral { background: rgba(185,95,71,0.1); }

.fc-header h3 { margin: 0; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }

.ai-tag {
  display: inline-flex;
  padding: 2px 10px;
  background: linear-gradient(135deg, var(--plum), var(--teal));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-desc { font-size: 1.05rem; color: var(--muted); margin-bottom: 20px; }

.feature-list { display: flex; flex-direction: column; gap: 10px; }

.feature-list li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

/* Screenshot placeholders */
.screenshot-placeholder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.screenshot-placeholder.highlight {
  border-color: var(--plum);
  box-shadow: 0 0 0 4px rgba(96,67,95,0.08), var(--shadow-sm);
}

.screenshot-label {
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.screenshot-mock { padding: 20px; min-height: 240px; }

.mock-status-bar { display: flex; gap: 8px; margin-bottom: 16px; }

.mock-tab {
  padding: 4px 12px;
  background: var(--paper-soft);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--muted);
}

.mock-tab.active { background: var(--teal); color: var(--white); }

.mock-card-list { display: flex; flex-direction: column; gap: 10px; }

.mock-submission {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-submission strong { font-size: 0.85rem; color: var(--ink); }
.mock-submission small { font-size: 0.75rem; color: var(--muted); }

.mock-status {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.mock-status.pending { background: rgba(201,130,46,0.15); color: var(--amber); }
.mock-status.accepted { background: rgba(15,118,110,0.12); color: var(--teal); }
.mock-status.urgent { background: rgba(185,95,71,0.12); color: var(--coral); }

.mock-review-stats { display: flex; gap: 16px; margin-bottom: 16px; }

.mock-stat-item {
  text-align: center;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.mock-stat-item span { display: block; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.mock-stat-item.urgent span { color: var(--coral); }

/* AI Feature Mock */
.ai-feature-mock { display: flex; flex-direction: column; gap: 10px; }

.ai-phase {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
}

.phase-step { font-weight: 700; color: var(--plum); }

.ai-result {
  padding: 16px;
  background: linear-gradient(135deg, rgba(96,67,95,0.06), rgba(15,118,110,0.06));
  border-radius: 8px;
  border: 1px solid rgba(96,67,95,0.2);
}

.ai-result strong { font-size: 0.85rem; }
.ai-topic { font-size: 0.9rem; font-weight: 600; color: var(--teal-dark); margin-top: 6px; }
.ai-meta { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* Citation Mock */
.mock-citation { padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.cite-text { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }

/* ---------- AI Banner ---------- */
.ai-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.ai-banner-content h2 { font-size: 2rem; margin: 16px 0; color: var(--white); }
.ai-banner-content > p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 24px; }

.ai-models { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.model-tag {
  padding: 8px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.model-tag:hover { background: rgba(255,255,255,0.2); }

.ai-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.ai-feature-item {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ai-feature-item:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.ai-feature-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.ai-feature-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.ai-feature-item p { font-size: 0.825rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ---------- Screenshots Grid ---------- */
.screenshots-section { background: var(--paper-soft); }

.screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.screenshot-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.screenshot-card-inner { padding: 20px; min-height: 220px; }

.screenshot-caption {
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* Mini mocks */
.mock-tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 8px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  font-size: 0.7rem;
}

.tb-item { color: var(--muted); }
.tb-item.active { color: var(--teal); font-weight: 700; }

.mini-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.dash-card {
  padding: 12px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 4px;
}

.badge.urgent { background: var(--coral); }

.mini-calendar { text-align: center; }
.cal-header { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

.cal-grid span { padding: 4px; border-radius: 6px; }
.cal-grid .has-event { background: rgba(15,118,110,0.1); color: var(--teal); font-weight: 600; }
.cal-grid .today { background: var(--teal); color: var(--white); }

.sq-tabs { display: flex; gap: 6px; margin-bottom: 12px; }

.sq-tab {
  padding: 3px 10px;
  background: var(--paper-soft);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--muted);
}

.sq-tab.active { background: var(--teal); color: var(--white); }

.sq-post {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.75rem;
}

.sq-avatar { font-size: 1.5rem; flex-shrink: 0; }
.sq-body p { color: var(--muted); margin: 4px 0; line-height: 1.5; }
.sq-actions { font-size: 0.7rem; color: var(--muted); margin-top: 6px; }

/* ---------- Workflow ---------- */
.workflow-section { background: var(--paper); }

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.wf-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 180px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal); }
.wf-icon { font-size: 2.5rem; margin-bottom: 12px; }
.wf-step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.wf-step p { font-size: 0.825rem; color: var(--muted); line-height: 1.6; }
.wf-arrow { font-size: 1.5rem; color: var(--muted); font-weight: 300; }

/* ---------- Values Table ---------- */
.values-section { background: var(--teal-dark); color: var(--white); }
.values-section .section-heading p, .values-section .section-kicker { color: rgba(255,255,255,0.72); }

.value-table {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.table-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.table-row:first-child { border-top: 0; }
.table-row > div { padding: 22px 26px; }
.table-row > div:first-child { border-right: 1px solid rgba(255,255,255,0.16); font-weight: 800; }
.table-head { color: var(--paper); background: rgba(255,255,255,0.1); font-size: 14px; }

/* ---------- Tone ---------- */
.tone-section { background: var(--paper); }

.tone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.tone-item {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.62);
}

.tone-item h3 { margin: 0; font-size: 22px; }
.tone-item p { margin: 14px 0 0; color: var(--muted); }

.tone-item h3::before {
  content: "";
  display: block;
  width: 32px; height: 4px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: var(--amber);
}

.tone-item:nth-child(2) h3::before { background: var(--teal); }
.tone-item:nth-child(3) h3::before { background: var(--coral); }
.tone-item:nth-child(4) h3::before { background: var(--plum); }

/* ---------- Highlights ---------- */
.highlights-section { background: var(--paper-soft); }

.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.highlight-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--teal); }

.hl-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 12px;
}

.highlight-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.highlight-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ---------- Vision ---------- */
.vision-section {
  padding: clamp(100px, 14vw, 180px) 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(24,35,33,0.96), rgba(24,35,33,0.78)),
    url("assets/hero-academic-commons.png") center / cover fixed;
  text-align: center;
  position: relative;
}

.vision-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.vision-section .container { 
  max-width: 1000px; 
  position: relative;
  z-index: 1;
}

.vision-section .section-kicker { 
  color: #e6b06a; 
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.vision-quote {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.vision-quote .line {
  display: block;
  margin-bottom: 0.5em;
}

.vision-quote .highlight {
  color: #f0c987;
  font-weight: 800;
}

/* ---------- Download ---------- */
.download-section { background: var(--paper); }

.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 56px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.download-content h2 { margin-bottom: 16px; }
.download-content > p { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }

.download-steps { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }

.step { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-arrow { color: var(--muted); font-size: 1.25rem; }
.download-note { font-size: 0.875rem; color: var(--amber); font-weight: 500; }

.qr-placeholder {
  width: 180px; height: 180px;
  background: var(--paper-soft);
  border: 2px dashed var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-placeholder span { font-size: 2.5rem; margin-bottom: 8px; }
.qr-placeholder p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.download-qr img {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: contain;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand .brand-mark { color: var(--white); font-size: 1.5rem; }
.footer-brand .brand-mark + span { font-size: 1.25rem; font-weight: 700; color: var(--white); display: block; margin: 8px 0; }
.footer-brand p { font-size: 0.9rem; opacity: 0.6; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.85rem; margin-bottom: 8px; opacity: 0.6; transition: opacity 0.2s ease; }
.footer-col a:hover { opacity: 1; color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-nav { gap: 18px; }
  .split-layout, .company-layout { grid-template-columns: 1fr; }
  .identity-grid, .screenshot-grid, .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .tone-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row-reverse .feature-image { order: -1; }
  .feature-row-highlight { margin: 0; padding: 32px; }
  .download-card { grid-template-columns: 1fr; text-align: center; padding: 40px; }
  .download-steps { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .site-header { height: 64px; }
  .menu-button { display: block; }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: grid;
    gap: 0;
    padding: 12px 20px 24px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .site-header.is-open .site-nav { transform: translateY(0); }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(222,214,200,0.7); }

  .hero { min-height: 86vh; padding: 106px 20px 76px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(10,20,18,0.88), rgba(10,20,18,0.42)); }

  .hero-copy, .story-text p, .section-heading p:not(.section-kicker) { font-size: 16px; }

  .identity-grid, .screenshot-grid, .tone-grid, .highlights-grid, .ai-features-grid { grid-template-columns: 1fr; }

  .table-row { grid-template-columns: 1fr; }
  .table-row > div:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.16); }

  .workflow-steps { flex-direction: column; gap: 12px; }
  .wf-arrow { transform: rotate(90deg); }

  .download-steps { flex-direction: column; gap: 8px; }
  .step-arrow { transform: rotate(90deg); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(15,118,110,0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px; height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
