:root {
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-accent-soft: #EFF6FF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --accent: #007AFF;
  --accent-hover: #0062CC;
  --accent-indigo: #4F46E5;
  --accent-emerald: #10B981;
  --border-light: #E2E8F0;
  --border-focus: #93C5FD;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sticky Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.main-nav a:hover {
  color: var(--accent);
  background: var(--bg-accent-soft);
}

.main-nav a.active {
  color: var(--accent);
  background: var(--bg-accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 230px;
  padding: 8px 14px 8px 34px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
  width: 270px;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Hero Section (Design 2 Split Layout) */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 56px 32px 64px;
}

.hero-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  background: var(--bg-accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.hero-title {
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 26px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-check-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.hero-check-card span.check-icon {
  color: var(--accent);
  font-weight: 800;
}

.hero-showcase-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid #CBD5E1;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.hero-showcase-card:hover {
  transform: translateY(-3px);
}

.hero-showcase-bar {
  padding: 12px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-showcase-bar .zoom-hint {
  color: var(--accent);
  font-weight: 700;
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

/* 4-Step Workflow Strip (Design 2) */
.workflow-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px 32px 24px;
}

.section-header-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.section-header-center h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header-center p {
  font-size: 16px;
  color: var(--text-secondary);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.workflow-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.workflow-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.workflow-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Feature Chapter Blocks */
.chapters-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.chapter-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.chapter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.chapter-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--bg-accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.chapter-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.chapter-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 6px;
  max-width: 880px;
}

/* Screenshot Showcase inside Chapter */
.screenshot-showcase {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
}

.screenshot-showcase-header {
  padding: 12px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.screenshot-showcase-header .zoom-btn {
  background: var(--bg-accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 122, 255, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.screenshot-showcase img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.dual-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

/* Feature Detail Cards Grid */
.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-detail-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color 0.2s ease;
}

.feature-detail-card:hover {
  border-color: #93C5FD;
}

.feature-detail-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.feature-detail-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.kbd-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: #FFFFFF;
  color: var(--accent);
  border: 1px solid rgba(0, 122, 255, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.feature-detail-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-detail-card ul {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.feature-detail-card li {
  margin-bottom: 5px;
}

/* Callout Box */
.info-callout {
  margin-top: 24px;
  background: var(--bg-accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 14.5px;
  color: #1E3A8A;
}

.info-callout strong {
  color: #1E40AF;
}

/* Reference Table for All Toolbar Symbols & Shortcuts */
.reference-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #FFFFFF;
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.reference-table th {
  background: var(--bg-subtle);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.reference-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

.reference-table tr:last-child td {
  border-bottom: none;
}

.reference-table td strong {
  color: var(--text-primary);
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-content {
  max-width: 94vw;
  max-height: 92vh;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.lightbox-top {
  padding: 14px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lightbox-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.lightbox-close {
  background: #E2E8F0;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-primary);
}

.lightbox-close:hover {
  background: #CBD5E1;
}

.lightbox-img-wrap {
  overflow: auto;
  max-height: calc(92vh - 60px);
  background: #F1F5F9;
}

.lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 40px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dual-screenshot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .workflow-grid,
  .feature-detail-grid,
  .hero-check-grid {
    grid-template-columns: 1fr;
  }
  .chapter-block {
    padding: 24px 18px;
  }
}
