:root {
  --ri-bg: #0A0A0A;
  --ri-surface: #141414;
  --ri-border: #262626;
  --ri-accent: #ffffff;
  --ri-text: #EDEDED;
  --ri-muted: #A1A1A1;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ri-bg);
  color: var(--ri-text);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--ri-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ri-bg);
  border-bottom: 1px solid var(--ri-border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--ri-text);
  letter-spacing: -0.02em;
}
.nav-logo:hover { text-decoration: none; color: var(--ri-accent); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ri-border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ri-text);
  display: block;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: var(--ri-muted);
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 14px;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease;
}
.nav-links a:hover {
  color: var(--ri-text);
  border-color: var(--ri-border);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--ri-accent);
  border-color: var(--ri-accent);
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}
.hero-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: 20px;
  color: var(--ri-accent);
  margin-bottom: 24px;
}
.hero-description {
  font-size: 16px;
  color: var(--ri-muted);
  line-height: 1.7;
}

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

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ri-border);
  border-radius: 8px;
  background: var(--ri-surface);
  color: var(--ri-text);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hero-button:hover {
  border-color: var(--ri-accent);
  color: var(--ri-accent);
  text-decoration: none;
}

.hero-button-primary {
  background: var(--ri-accent);
  border-color: var(--ri-accent);
  color: var(--ri-bg);
}

.hero-button-primary:hover {
  background: var(--ri-text);
  color: var(--ri-bg);
}

.hero-image {
  border: 1px solid var(--ri-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ri-surface);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ri-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--ri-surface);
  border: 1px solid var(--ri-border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  border-color: var(--ri-accent);
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ri-border);
  border-radius: 8px;
  margin-bottom: 16px;
}
.feature-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-description { font-size: 14px; color: var(--ri-muted); line-height: 1.6; }

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 80px;
  background: var(--ri-surface);
  border: 1px solid var(--ri-border);
  border-radius: 12px;
  padding: 16px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.docs-sidebar::-webkit-scrollbar { width: 6px; }
.docs-sidebar::-webkit-scrollbar-track { background: var(--ri-bg); }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--ri-border); border-radius: 3px; }
.docs-sidebar::-webkit-scrollbar-thumb:hover { background: var(--ri-accent); }
.docs-sidebar-section { margin-bottom: 16px; }
.docs-sidebar-section:last-child { margin-bottom: 0; }
.docs-sidebar-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ri-muted);
  padding: 8px 12px;
}
.docs-sidebar-item {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ri-muted);
  font-size: 14px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.docs-sidebar-item:hover {
  color: var(--ri-text);
  background: var(--ri-bg);
  text-decoration: none;
}
.docs-sidebar-item.active { 
  color: var(--ri-accent); 
}

.docs-content { min-width: 0; }
.docs-subsection {
  margin-bottom: 64px;
  scroll-margin-top: 80px;
}
.docs-subsection-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.docs-paragraph {
  margin-bottom: 16px;
  color: var(--ri-text);
  line-height: 1.7;
}
.docs-paragraph strong { color: var(--ri-text); font-weight: 700; }
.docs-paragraph u { text-decoration: underline; text-decoration-color: var(--ri-accent); }
.docs-notice {
  border-left: 2px solid var(--ri-accent);
  background: var(--ri-surface);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--ri-muted);
}
.docs-image {
  border: 1px solid var(--ri-border);
  border-radius: 8px;
  margin-bottom: 16px;
  max-width: 100%;
}

.docs-sub-title {
  font-size: 22px;
  font-weight: 600;
  color: #dddddd;
  margin: 28px 0 12px;
  line-height: 1.4;
}

.docs-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  vertical-align: middle;
}

.docs-info-button {
  width: 20px;
  height: 20px;
  border: 1px solid var(--ri-border);
  border-radius: 999px;
  background: var(--ri-surface);
  color: var(--ri-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.docs-info-button:hover,
.docs-info-button:focus {
  color: var(--ri-accent);
  border-color: var(--ri-accent);
  outline: none;
}

.docs-info-popup {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 20;
  display: none;
  width: max-content;
  max-width: min(320px, 80vw);
  padding: 10px;
  background: var(--ri-surface);
  border: 1px solid var(--ri-border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.docs-info:hover .docs-info-popup,
.docs-info:focus-within .docs-info-popup {
  display: block;
}

.docs-info-popup img {
  width: 260px;
  max-width: 70vw;
  border-radius: 8px;
}

.page-header { margin-bottom: 64px; }
.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 16px;
  color: var(--ri-muted);
  max-width: 720px;
  line-height: 1.7;
}

.file-org-intro { color: var(--ri-muted); margin-bottom: 24px; }
.file-tree {
  background: var(--ri-surface);
  border: 1px solid var(--ri-border);
  border-radius: 12px;
  padding: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}
.tree-node { padding: 2px 0; }
.tree-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
}
.tree-label:hover { background: var(--ri-bg); }
.tree-icon { color: var(--ri-accent); width: 16px; display: inline-flex; align-items: center; }
.tree-children {
  padding-left: 24px;
  border-left: 1px solid var(--ri-border);
  margin-left: 12px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.video-card {
  background: var(--ri-surface);
  border: 1px solid var(--ri-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.video-card:hover {
  border-color: var(--ri-accent);
}
.video-embed {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.video-embed iframe,
.video-embed video,
.video-embed img {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
	object-fit: cover;
}
.video-info {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.video-title { font-size: 14px; font-weight: 600; }
.video-meta { font-size: 12px; color: var(--ri-muted); white-space: nowrap; }

.footer {
  border-top: 1px solid var(--ri-border);
  padding: 32px;
  text-align: center;
  color: var(--ri-muted);
  font-size: 14px;
}

.file-image {
  background: var(--ri-surface);
  overflow: hidden;
}
.file-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--ri-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ri-text);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.file-download-btn:hover {
  border-color: var(--ri-accent);
  color: var(--ri-accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ri-bg);
    border-bottom: 1px solid var(--ri-border);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .page { padding: 32px 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; }
  .video-grid { grid-template-columns: 1fr; }

  .hero-actions {
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
  }
}
.hero-eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--ri-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-section {
  margin-top: 96px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading .section-title {
  margin-bottom: 14px;
}

.section-description {
  color: var(--ri-muted);
  line-height: 1.7;
}

.workflow-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.workflow-card,
.support-card {
  background: var(--ri-surface);
  border: 1px solid var(--ri-border);
  border-radius: 12px;
  padding: 28px;
}

.workflow-number {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--ri-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.workflow-card h3,
.support-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.workflow-card p,
.support-card p {
  color: var(--ri-muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.support-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.support-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ri-muted);
  font-size: 14px;
}

.support-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ri-accent);
  content: "";
  transform: translateY(-50%);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--ri-surface);
  border: 1px solid var(--ri-border);
  border-radius: 12px;
  overflow: hidden;
}

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

.faq-item summary {
  position: relative;
  padding: 20px 52px 20px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--ri-muted);
  content: "+";
  font-size: 22px;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 22px 22px;
  color: var(--ri-muted);
  font-size: 14px;
  line-height: 1.7;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 96px;
  padding: 36px;
  background: var(--ri-surface);
  border: 1px solid var(--ri-border);
  border-radius: 16px;
}

.cta-section h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.25;
}

.cta-section p {
  color: var(--ri-muted);
}

.cta-actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

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

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

  .cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .content-section,
  .cta-section {
    margin-top: 64px;
  }

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

  .cta-section {
    padding: 24px;
  }

  .cta-actions {
    flex-direction: column;
  }

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

.comparison-table {
  overflow: hidden;
  background: var(--ri-surface);
  border: 1px solid var(--ri-border);
  border-radius: 12px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 1fr);
}

.comparison-row:not(:last-child) {
  border-bottom: 1px solid var(--ri-border);
}

.comparison-cell {
  min-width: 0;
  padding: 20px;
  color: var(--ri-muted);
  font-size: 14px;
  line-height: 1.6;
}

.comparison-cell:not(:last-child) {
  border-right: 1px solid var(--ri-border);
}

.comparison-header {
  background: var(--ri-bg);
}

.comparison-header .comparison-cell {
  color: var(--ri-text);
  font-weight: 700;
}

.comparison-feature {
  color: var(--ri-text);
  font-weight: 600;
}

.comparison-roimport {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ri-text);
}

@media (max-width: 900px) {
  .comparison-table {
    display: grid;
    gap: 16px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .comparison-row {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: var(--ri-surface);
    border: 1px solid var(--ri-border);
    border-radius: 12px;
  }

  .comparison-header {
    display: none;
  }

  .comparison-cell {
    position: relative;
    padding: 18px 18px 18px 150px;
    border-right: 0;
    border-bottom: 1px solid var(--ri-border);
  }

  .comparison-cell:last-child {
    border-bottom: 0;
  }

  .comparison-cell::before {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 116px;
    color: var(--ri-text);
    font-size: 12px;
    font-weight: 700;
  }

  .comparison-feature {
    padding-left: 18px;
    background: var(--ri-bg);
  }

  .comparison-feature::before {
    content: none;
  }

  .comparison-row .comparison-cell:nth-child(2)::before {
    content: "Manual";
  }

  .comparison-row .comparison-cell:nth-child(3)::before {
    content: "Other Plugins";
  }

  .comparison-row .comparison-cell:nth-child(4)::before {
    content: "RoImport";
  }
}

@media (max-width: 520px) {
  .comparison-cell {
    padding: 48px 18px 18px;
  }

  .comparison-cell::before {
    top: 16px;
    width: auto;
  }

  .comparison-feature {
    padding: 18px;
  }
}

.comparison-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.comparison-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ri-muted);
  font-size: 13px;
}

.comparison-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.status-dot-green {
  background: #22c55e;
}

.status-dot-yellow {
  background: #eab308;
}

.status-dot-red {
  background: #ef4444;
}

.comparison-cell.status-green,
.comparison-cell.status-yellow,
.comparison-cell.status-red {
  position: relative;
  padding-left: 44px;
}

.comparison-cell.status-green::after,
.comparison-cell.status-yellow::after,
.comparison-cell.status-red::after {
  position: absolute;
  top: 27px;
  left: 20px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  content: "";
}

.comparison-cell.status-green {
  background: rgba(34, 197, 94, 0.08);
  color: #d8fbe4;
}

.comparison-cell.status-green::after {
  background: #22c55e;
}

.comparison-cell.status-yellow {
  background: rgba(234, 179, 8, 0.08);
  color: #fff3bd;
}

.comparison-cell.status-yellow::after {
  background: #eab308;
}

.comparison-cell.status-red {
  background: rgba(239, 68, 68, 0.08);
  color: #ffd5d5;
}

.comparison-cell.status-red::after {
  background: #ef4444;
}

@media (max-width: 900px) {
  .comparison-cell.status-green,
  .comparison-cell.status-yellow,
  .comparison-cell.status-red {
    padding-left: 172px;
  }

  .comparison-cell.status-green::after,
  .comparison-cell.status-yellow::after,
  .comparison-cell.status-red::after {
    top: 25px;
    left: 145px;
  }
}

@media (max-width: 520px) {
  .comparison-cell.status-green,
  .comparison-cell.status-yellow,
  .comparison-cell.status-red {
    padding: 48px 18px 18px 42px;
  }

  .comparison-cell.status-green::after,
  .comparison-cell.status-yellow::after,
  .comparison-cell.status-red::after {
    top: 57px;
    left: 18px;
  }
}