@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --r-bg: #18181b;
  --r-card: #27272a;
  --r-border: #3f3f46;
  --r-green: #22c55e;
  --r-green-dark: #16a34a;
  --r-text: #f4f4f5;
  --r-muted: #a1a1aa;
  --r-font-mono: 'IBM Plex Mono', monospace;
  --r-font-sans: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; position: relative; font-family: var(--r-font-sans); background: var(--r-bg); color: var(--r-text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.r-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(24, 24, 27, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--r-border);
}
.r-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}
.r-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--r-font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}
.r-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--r-green-dark);
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.r-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.r-nav-links a {
  color: var(--r-muted);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--r-font-mono);
  transition: color 0.2s;
}
.r-nav-links a:hover, .r-nav-links a.active { color: var(--r-green); }
.r-cta-btn {
  background: var(--r-green);
  color: #09090b !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700 !important;
  font-size: 0.88rem;
  font-family: var(--r-font-mono);
  transition: background 0.2s;
  display: inline-block;
}
.r-cta-btn:hover { background: var(--r-green-dark); color: #fff !important; }

.r-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.r-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: 0.3s;
}

.r-hero {
  background: #09090b;
  padding: 80px 24px 70px;
  position: relative;
  border-bottom: 1px solid var(--r-border);
}
.r-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.resp-grid-2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.resp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.resp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.resp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.r-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--r-green);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--r-font-mono);
  margin-bottom: 20px;
}
.r-hero h1 {
  font-family: var(--r-font-mono);
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}
.r-hero p {
  font-size: 1.15rem;
  color: #a1a1aa;
  margin-bottom: 32px;
  max-width: 580px;
}
.r-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.r-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--r-card);
  border: 1px solid var(--r-border);
  border-radius: 8px;
  padding: 24px 32px;
  margin-top: 40px;
}
.r-stat-num {
  font-family: var(--r-font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--r-green);
  line-height: 1;
  margin-bottom: 6px;
}
.r-stat-label { font-size: 0.85rem; color: #a1a1aa; font-weight: 500; }

.r-section { padding: 80px 0; }
.r-section-alt { background: #202024; border-top: 1px solid var(--r-border); border-bottom: 1px solid var(--r-border); }
.r-section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.r-section-title h2 {
  font-family: var(--r-font-mono);
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}
.r-section-title p { font-size: 1.05rem; color: var(--r-muted); }

.r-card {
  background: var(--r-card);
  border: 1px solid var(--r-border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
  transition: transform 0.2s, border-color 0.2s;
}
.r-card:hover { transform: translateY(-4px); border-color: var(--r-green); }
.r-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--r-green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.r-card h3 {
  font-family: var(--r-font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}
.r-card p { font-size: 0.95rem; color: #d4d4d8; line-height: 1.6; }

.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
  border: 1px solid var(--r-border);
  border-radius: 6px;
  background: var(--r-card);
}
.r-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.r-matrix th, .r-matrix td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--r-border);
  font-size: 0.92rem;
}
.r-matrix th {
  background: #18181b;
  color: #ffffff;
  font-family: var(--r-font-mono);
  font-size: 0.88rem;
}
.r-matrix tr:last-child td { border-bottom: none; }
.r-matrix tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.r-tag-pro { color: var(--r-green); font-weight: 700; }

.r-tool-box {
  background: #09090b;
  color: #ffffff;
  border-radius: 8px;
  padding: 40px;
  margin: 40px 0;
  border: 1px solid var(--r-border);
}
.r-tool-box h3 {
  font-family: var(--r-font-mono);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #ffffff;
}
.r-tool-box p { color: #a1a1aa; margin-bottom: 24px; }
.r-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.r-field label { display: block; font-size: 0.85rem; color: #d4d4d8; margin-bottom: 6px; font-family: var(--r-font-mono); }
.r-field select, .r-field input {
  width: 100%;
  padding: 12px 14px;
  background: #18181b;
  border: 1px solid var(--r-border);
  color: #ffffff;
  border-radius: 4px;
  font-size: 16px !important;
  font-family: inherit;
}
.r-bench-result {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 24px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.r-result-val { font-family: var(--r-font-mono); font-size: 2.2rem; color: var(--r-green); font-weight: 700; }

.r-faq-item {
  border: 1px solid var(--r-border);
  border-radius: 6px;
  margin-bottom: 14px;
  background: var(--r-card);
  overflow: hidden;
}
.r-faq-q {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--r-font-mono);
  font-size: 1.05rem;
}
.r-faq-q::after { content: '+'; font-size: 1.4rem; color: var(--r-green); transition: 0.2s; }
.r-faq-item.active .r-faq-q::after { transform: rotate(45deg); }
.r-faq-a {
  padding: 0 24px 20px;
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}
.r-faq-item.active .r-faq-a { display: block; }

.r-footer {
  background: #09090b;
  color: #a1a1aa;
  padding: 60px 0 30px;
  font-size: 0.9rem;
  border-top: 1px solid var(--r-border);
}
.r-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.r-footer h4 { color: #ffffff; font-family: var(--r-font-mono); margin-bottom: 18px; font-size: 1.05rem; }
.r-footer ul { list-style: none; }
.r-footer ul li { margin-bottom: 10px; }
.r-footer ul a:hover { color: var(--r-green); }
.r-footer-bottom {
  border-top: 1px solid var(--r-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

@media (max-width: 992px) {
  header > div {
    padding: 14px 20px !important;
    box-sizing: border-box !important;
  }
  .r-mobile-toggle { display: block !important; }
  .r-nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #18181b;
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--r-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  }
  .r-nav-links.active { display: flex !important; }
  .resp-grid-2, .resp-grid-3, .resp-grid-4, .resp-form-row { grid-template-columns: 1fr !important; gap: 24px !important; }
  .r-hero h1 { font-size: 2.2rem !important; }
  .r-stat-strip { grid-template-columns: 1fr 1fr !important; padding: 20px !important; }
  .r-footer-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
}
