:root {
    --bg: #f5f5fb;
    --card: #ffffff;
    --card-alt: #f9fafb;
    --border: #e5e7eb;
    --accent: #2563eb;            /* blue accent */
    --accent-soft: rgba(37, 99, 235, 0.14);
    --text: #0f172a;
    --muted: #6b7280;
    --radius-lg: 18px;
    --radius-md: 10px;
    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
    --max-width: 1000px;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
      "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #ffffff 0, var(--bg) 50%);
    color: var(--text);
    min-height: 100vh;
  }
  
  .page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 26px 16px 40px;
  }
  
  /* Header */
  
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .logo-main {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.04em;
  }
  
  .logo-highlight {
    color: var(--accent);
  }
  
  .logo-sub {
    font-size: 12px;
    color: var(--muted);
  }
  
  .header-cta {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.7);
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    white-space: nowrap;
  }
  
  .header-cta:hover {
    filter: brightness(1.05);
  }
  
  /* Intro */
  
  .intro {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 20px 18px 18px;
    margin-bottom: 20px;
  }
  
  .intro h1 {
    font-size: 22px;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
  }
  
  .intro p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
  }
  
  .intro strong {
    color: var(--text);
  }
  
  .intro-note {
    font-size: 12px;
    color: var(--muted);
  }
  
  /* Metrics */
  
  .metrics-section {
    margin-bottom: 20px;
  }
  
  .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
  }
  
  .metric-card {
    border-radius: 20px;
    padding: 16px 16px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  }
  
  .metric-card--1 {
    background: linear-gradient(135deg, #f5f7ff, #ffffff);
    border-color: rgba(37, 99, 235, 0.2);
  }
  
  .metric-card--2 {
    background: linear-gradient(135deg, #ecfdf3, #ffffff);
    border-color: rgba(34, 197, 94, 0.25);
  }
  
  .metric-card--3 {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-color: rgba(249, 115, 22, 0.25);
  }
  
  .metric-card--4 {
    background: linear-gradient(135deg, #faf5ff, #ffffff);
    border-color: rgba(168, 85, 247, 0.25);
  }
  
  .metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(148, 163, 184, 0.4);
  }
  
  .metric-value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
  }
  
  .metric-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .metric-sub {
    font-size: 12px;
    color: var(--muted);
  }
  
  /* Sample section */
  
  .sample-section {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 20px 18px 16px;
    margin-bottom: 18px;
  }
  
  .sample-header h2 {
    font-size: 18px;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
  }
  
  .sample-header p {
    font-size: 13px;
    color: var(--muted);
  }
  
  /* Category tabs */
  
  .category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 14px;
  }
  
  .category-tab {
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    border: 1px solid var(--border);
    background: var(--card-alt);
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.1;
  }
  
  .category-tab .tab-icon {
    font-size: 14px;
  }
  
  .category-tab::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.6);
  }
  
  .category-tab.active {
    border-color: rgba(37, 99, 235, 0.9);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14) 0, #ffffff 60%);
    color: var(--text);
  }
  
  .category-tab.active::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
  }
  
  /* Table */
  
  .table-wrapper {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 4px;
    background: #ffffff;
  }
  
  .sample-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  
  .sample-table thead {
    background: #f9fafb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: var(--muted);
  }
  
  .sample-table th,
  .sample-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #edf0f4;
    vertical-align: top;
  }
  
  .sample-table th .th-icon {
    margin-right: 4px;
    font-size: 12px;
  }
  
  .sample-table th .th-label {
    font-weight: 600;
  }
  
  .sample-table th.num-col,
  .sample-table td.num-col,
  .sample-table td.sample-revenue,
  .sample-table td.sample-price {
    text-align: right;
    white-space: nowrap;
  }
  
  .sample-table tbody tr:nth-child(odd) {
    background: #fcfdff;
  }
  
  .sample-table tbody tr:hover {
    background: #eff6ff;
  }
  
  .sample-product-link {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
  }
  
  .sample-product-link:hover {
    color: var(--accent);
  }
  
  .sample-category-path {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
  }
  
  .sample-revenue,
  .sample-price {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
      "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
  }
  
  /* Table actions */
  
  .table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
  }
  
  .table-note {
    font-size: 11px;
    color: var(--muted);
    max-width: 60ch;
  }
  
  .btn-secondary {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid var(--border);
    background: var(--card-alt);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .btn-secondary:hover {
    background: #e5efff;
  }
  
  /* CTA section */
  
  .cta-section {
    margin-top: 22px;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 18px 18px 20px;
    text-align: left;
    box-shadow: var(--shadow-soft);
  }
  
  .cta-section h2 {
    font-size: 18px;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
  }
  
  .cta-section p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  
  .btn-primary {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
  }
  
  /* Modal */
  
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 40;
  }
  
  .modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .modal-dialog {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    padding: 18px 18px 14px;
  }
  
  .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .modal-header h2 {
    font-size: 18px;
    margin-bottom: 3px;
  }
  
  .modal-subtitle {
    font-size: 12px;
    color: var(--muted);
  }
  
  .modal-close-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 999px;
  }
  
  .modal-close-btn:hover {
    background: #f3f4f6;
    color: #111827;
  }
  
  .modal-tabs {
    margin-bottom: 10px;
  }
  
  .modal-table-wrapper {
    max-height: 520px;
    overflow: auto;
  }
  
  .modal-footnote {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
  }
  
  /* Responsive tweaks */
  
  @media (max-width: 720px) {
    .site-header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .header-cta {
      align-self: flex-start;
    }
  
    .intro {
      padding: 16px 14px;
    }
  
    .sample-section {
      padding: 16px 14px;
    }
  
    .cta-section {
      padding: 16px 14px 18px;
    }
  
    .sample-table th,
    .sample-table td {
      padding: 8px 10px;
    }
  
    .modal-dialog {
      padding: 14px 12px 12px;
    }
  }
  