  :root {
    --bg:       #0d0d0d;
    --surface:  #161616;
    --surface2: #1e1e1e;
    --border:   #2a2a2a;
    --gold:     #f5a623;
    --gold-dim: rgba(245,166,35,0.12);
    --gold-glow:rgba(245,166,35,0.25);
    --white:    #ffffff;
    --muted:    #a0a0a0;
    --muted2:   #6b6b6b;
    --text:     #e0e0e0;
    --warning-bg: rgba(245,158,11,0.08);
    --warning-border: rgba(245,158,11,0.3);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; width: 100%; position: relative; }
  body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--white); line-height: 1.7; }

  /* NAV */
  nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 48px;
    background: rgba(13,13,13,0.88); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10;
  }
  .nav-logo { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: -0.5px; }
  .nav-logo span { color: var(--gold); }
  .nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
  .nav-links a { color: var(--white); text-decoration: none; font-size: 14px; transition: opacity 0.2s; }
  .nav-links a:hover { opacity: 0.7; }
  .nav-cta, .nav-mobile-cta {
    background: var(--gold); color: #000; padding: 9px 22px;
    border-radius: 100px; text-decoration: none; font-size: 13px; font-weight: 600;
    transition: opacity 0.2s;
  }
  .nav-cta:hover, .nav-mobile-cta:hover { opacity: 0.85; }
  .nav-hamburger { display: none; background: none; border: none; color: white; cursor: pointer; }
  .nav-mobile-cta { display: none; }

  h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
    margin-bottom: 20px; color: var(--white);
  }

  /* -------------------------------------
   * COMPARISON ARTICLE LAYOUT
   * ------------------------------------- */
  .article-container { max-width: 800px; margin: 60px auto; padding: 0 48px; }
  .article-header { margin-bottom: 48px; text-align: center; }
  .article-cat { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
  .article-container .article-header h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 24px; }
  .article-meta { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 14px; color: var(--muted); }
  
  .article-content { font-size: 17px; color: #d0d0d0; line-height: 1.8; }
  .article-content h2 { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; margin: 48px 0 24px; color: var(--white); letter-spacing: -0.5px; }
  .article-content h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; margin: 32px 0 16px; color: var(--white); }
  .article-content p { margin-bottom: 24px; }
  .article-content ul, .article-content ol { margin-left: 24px; margin-bottom: 24px; }
  .article-content li { margin-bottom: 12px; }
  .article-content strong { color: var(--white); }
  
  .tldr-box {
    background: var(--surface); border: 1px solid var(--gold); border-radius: 16px;
    padding: 32px; margin: 40px 0; box-shadow: 0 8px 32px var(--gold-dim);
  }
  .tldr-box h3 { font-family: 'Fraunces', serif; color: var(--gold); margin-top: 0; margin-bottom: 16px; font-size: 20px; }
  .tldr-box p:last-child { margin-bottom: 0; }

  table { width: 100%; border-collapse: collapse; margin-bottom: 32px; font-size: 15px; }
  th, td { text-align: left; padding: 16px; border-bottom: 1px solid var(--border); color: #d0d0d0; }
  th { font-weight: 600; color: var(--white); background: var(--surface); }

  /* STEPS FOR COMPARISON */
  .step-block { margin-bottom: 40px; }
  .step-number { 
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; background: var(--surface2); color: var(--white);
    border-radius: 50%; font-weight: 700; font-size: 14px; margin-right: 12px;
    border: 1px solid var(--border);
  }
  .step-title { display: flex; align-items: center; margin-bottom: 16px; }

  /* BOTTOM CTA */
  .bottom-cta {
    background: linear-gradient(135deg, var(--surface), #1a1a1a);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 40px; margin: 60px 0; text-align: center;
  }
  .bottom-cta h3 { font-family: 'Fraunces', serif; font-size: 28px; margin-bottom: 16px; color: var(--white); }
  .bottom-cta p { color: var(--muted); margin-bottom: 24px; }
  .bottom-cta a {
    display: inline-flex; background: var(--gold); color: #000;
    padding: 12px 28px; border-radius: 100px; text-decoration: none;
    font-weight: 600; font-size: 15px; transition: transform 0.2s;
  }
  .bottom-cta a:hover { transform: scale(1.03); }


  /* -------------------------------------
   * HOW-TO GUIDE LAYOUT (SIDEBAR)
   * ------------------------------------- */
  .article-layout {
    max-width: 1100px; margin: 0 auto; padding: 60px 48px;
    display: grid; grid-template-columns: 1fr 320px; gap: 60px;
  }

  .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
  .breadcrumb a { color: var(--gold); text-decoration: none; }
  .breadcrumb a:hover { text-decoration: underline; }

  .article-layout .article-meta {
    display: flex; gap: 16px; align-items: center; justify-content: flex-start;
    font-size: 13px; color: var(--muted2);
    margin-bottom: 36px; padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }
  .article-layout .article-meta span { display: flex; align-items: center; gap: 6px; }

  .tldr {
    background: var(--gold-dim); border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0; padding: 20px 24px; margin-bottom: 36px;
  }
  .tldr strong { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); display: block; margin-bottom: 6px; }
  .tldr p { font-size: 14px; color: var(--text); }

  .article-body h2 {
    font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700;
    letter-spacing: -0.5px; margin: 40px 0 16px; line-height: 1.2;
    color: var(--white);
  }
  .article-body h3 {
    font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700;
    margin: 28px 0 12px; letter-spacing: -0.3px;
    color: var(--white);
  }
  .article-body p { margin-bottom: 18px; font-size: 16px; color: var(--text); }
  .article-body ul, .article-body ol { margin: 0 0 20px 24px; }
  .article-body li { margin-bottom: 8px; font-size: 16px; color: var(--text); }

  .step-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 28px; margin-bottom: 16px;
    display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  }
  .step-num {
    width: 40px; height: 40px; background: var(--gold); color: #000;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-size: 18px; font-weight: 900;
    flex-shrink: 0;
  }
  .step-content h4 { font-weight: 600; font-size: 16px; margin-bottom: 6px; color: var(--white); }
  .step-content p { font-size: 14px; color: var(--muted2); margin: 0; }

  .warning-box {
    background: var(--warning-bg); border: 1px solid var(--warning-border);
    border-left: 4px solid #f59e0b; border-radius: 0 12px 12px 0;
    padding: 18px 20px; margin: 24px 0;
    font-size: 14px; color: var(--muted2);
  }
  .warning-box strong { color: #fbbf24; }

  .cta-inline {
    background: var(--surface); border: 1px solid var(--border); color: white; border-radius: 20px;
    padding: 32px; margin: 40px 0; text-align: center;
  }
  .cta-inline h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
  .cta-inline p { font-size: 14px; color: var(--muted2); margin-bottom: 20px; }
  .cta-inline a {
    display: inline-block; background: var(--gold); color: #000;
    padding: 12px 24px; border-radius: 100px; text-decoration: none;
    font-size: 14px; font-weight: 600; transition: transform 0.2s;
    box-shadow: 0 4px 20px var(--gold-glow);
  }
  .cta-inline a:hover { transform: scale(1.03); }

  /* SIDEBAR */
  .article-sidebar { align-self: start; position: sticky; top: 80px; }
  .sidebar-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px; margin-bottom: 20px;
  }
  .sidebar-card h4 {
    font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700;
    margin-bottom: 16px; letter-spacing: -0.3px; color: var(--white);
  }
  .sidebar-card .toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .toc-list a {
    font-size: 13px; color: var(--muted2); text-decoration: none;
    transition: color 0.2s; display: flex; align-items: center; gap: 8px;
  }
  .toc-list a::before { content: '→'; color: var(--gold); font-size: 11px; }
  .toc-list a:hover { color: var(--white); }

  .sidebar-app {
    background: linear-gradient(135deg, var(--gold), #e09400); color: #000; border-radius: 16px; padding: 24px;
    text-align: center; margin-bottom: 20px;
  }
  .sidebar-app h4 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #000; }
  .sidebar-app p { font-size: 13px; opacity: 0.7; margin-bottom: 16px; line-height: 1.5; }
  .sidebar-app a {
    display: block; background: #000; color: var(--white);
    padding: 10px 16px; border-radius: 100px; text-decoration: none;
    font-size: 13px; font-weight: 600;
  }

  .related-articles h4 { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.3px; }
  .related-link {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    padding: 12px 0; border-bottom: 1px solid var(--border); gap: 4px;
  }
  .related-link:last-child { border-bottom: none; }
  .related-link span:first-child { font-size: 14px; font-weight: 500; color: var(--white); line-height: 1.3; }
  .related-link span:last-child { font-size: 12px; color: var(--muted); }
  .related-link:hover span:first-child { color: var(--gold); }

  /* -------------------------------------
   * GLOBAL FOOTER
   * ------------------------------------- */
  footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 48px; margin-top: 80px; }
  .footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr; gap: 40px;
  }
  .footer-col h4 { font-family: 'Fraunces', serif; font-size: 16px; color: var(--white); margin-bottom: 20px; letter-spacing: -0.3px; }
  .footer-col p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; max-width: 250px; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
  .footer-col a:hover { color: var(--gold); }
  .footer-bottom { text-align: center; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

  /* -------------------------------------
   * LEGAL PAGES (Privacy, Terms)
   * ------------------------------------- */
  .legal-container { max-width: 800px; margin: 0 auto; padding: 120px 24px; color: var(--muted2); font-size: 16px; line-height: 1.7; }
  .legal-header { text-align: center; margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
  .legal-header h1 { font-family: 'Fraunces', serif; font-size: clamp(32px, 8vw, 48px); color: var(--white); margin-bottom: 16px; }
  .legal-header p { font-size: 14px; color: var(--muted); }
  .legal-content h2 { color: var(--white); font-family: 'Fraunces', serif; font-size: 28px; margin: 48px 0 24px 0; border-bottom: 1px solid var(--surface2); padding-bottom: 12px; }
  .legal-content h3 { color: var(--white); font-size: 20px; margin: 32px 0 16px 0; }
  .legal-content p { margin-bottom: 20px; }
  .legal-content ul, .legal-content ol { margin-bottom: 24px; padding-left: 24px; }
  .legal-content li { margin-bottom: 12px; }
  .legal-content a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
  .legal-content a:hover { opacity: 0.8; }

  /* -------------------------------------
   * MEDIA QUERIES
   * ------------------------------------- */
  @media (max-width: 900px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .nav-mobile-cta { display: inline-flex; }

    /* Comparison Article adjustments */
    .article-container { padding: 0 24px; }
    .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
    
    /* Layout Article adjustments */
    .article-layout { grid-template-columns: 1fr; padding: 40px 24px; gap: 40px; }
    .article-sidebar { position: static; }

    /* Footer adjustments */
    footer { padding: 40px 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  }
