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

:root{
  --bg:#090d18;--surface:#111827;--surface2:#0d1423;--border:#263148;
  --text:#edf2ff;--muted:#8995ad;--accent:#8b7cff;--accent2:#5eead4;
  --danger:#fb7185;--shadow:0 24px 80px rgba(0,0,0,.34);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{min-height:100vh;background:
 radial-gradient(circle at 15% -5%,rgba(139,124,255,.18),transparent 30%),
 radial-gradient(circle at 85% 10%,rgba(94,234,212,.08),transparent 24%),
 var(--bg);font-family:"DM Sans",system-ui,sans-serif}
button,textarea{font:inherit}
button{cursor:pointer}
.site-header{height:72px;max-width:1180px;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-weight:700;font-size:20px;letter-spacing:-.5px}
.brand-mark{width:35px;height:35px;border:1px solid #3b4660;border-radius:10px;display:grid;place-items:center;color:var(--accent2);font-family:"JetBrains Mono";font-size:13px;background:#121a2b}
.brand-accent{color:var(--accent)}
.privacy-pill{font-size:12px;color:#a9b3c7;border:1px solid var(--border);border-radius:999px;padding:7px 11px;background:rgba(17,24,39,.6)}
.dot{display:inline-block;width:6px;height:6px;background:var(--accent2);border-radius:50%;margin-right:7px;box-shadow:0 0 10px var(--accent2)}
.container{max-width:1180px;margin:auto;padding:50px 24px 30px}
.hero{text-align:center;margin-bottom:48px}
.eyebrow{font-size:14px;letter-spacing:2px;color:var(--accent2);font-weight:700;margin:0 0 14px}
h1{font-size:clamp(42px,5vw,60px);line-height:1.1;letter-spacing:-2px;margin:0;font-weight:700}
h1 span{background:linear-gradient(100deg,var(--accent),var(--accent2));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-copy{color:var(--muted);font-size:20px;line-height:1.6;margin:16px 0 0}
.tool-card {
  background: rgba(17,24,39,.88);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
  text-align: left; /* Ensure text is left-aligned */
}
.tool-card h2, .tool-card h3 {
  text-align: left; /* Ensure headers are left-aligned */
}
.tool-card a {
  color: var(--accent2);
  text-decoration: underline;
}
.tool-card a:hover {
  text-decoration: none;
}
.toolbar,.bottom-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border)}
.toolbar{color:var(--muted);font-size:12px}
.toolbar-actions{display:flex;gap:8px}
.ghost-btn,.secondary-btn,.primary-btn{border:1px solid var(--border);background:#141d2f;color:#b8c1d3;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:600}
.ghost-btn:hover,.secondary-btn:hover{background:#1a253a;color:var(--text)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);min-height:430px;background:var(--surface2)}
.editor-wrap{min-width:0}
.output-wrap{border-left:1px solid var(--border)}
.swap-col{display:grid;place-items:center;color:#56627a;font-size:20px}
.panel-head{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--border);color:#aab5c9;font-size:11px;text-transform:uppercase;letter-spacing:1.2px;font-weight:700}
.counter{font-weight:500;letter-spacing:0;text-transform:none;color:#5f6b83}
.status{font-size:10px;color:var(--accent2);border:1px solid #23454a;padding:3px 7px;border-radius:999px;text-transform:none;letter-spacing:0}
textarea{width:100%;height:392px;display:block;resize:none;border:0;outline:0;background:transparent;color:#dce4f6;padding:18px 18px;font-family:"JetBrains Mono",ui-monospace,monospace;font-size:13px;line-height:1.7;tab-size:2}
#input::selection,#output::selection{background:#4c467a}
#output{color:#c4cdfd}
.message{font-size:12px;color:var(--muted);min-height:18px}
.message.error{color:var(--danger)}
.primary-btn{border:0;background:linear-gradient(135deg,var(--accent),#6e5cf0);color:white;padding:9px 14px;box-shadow:0 8px 24px rgba(139,124,255,.18)}
.primary-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.primary-btn span{opacity:.55;margin-left:7px;font-size:10px}
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 70px}
.features article{border:1px solid var(--border);background:rgba(17,24,39,.48);border-radius:12px;padding:14px 15px;display:flex;flex-direction:column;gap:4px}
.features strong{font-size:12px;color:#cbd5e8}.features span{font-size:11px;color:#6f7b93}
.seo-copy{max-width:800px;margin:auto;color:#78859d;font-size:14px;line-height:1.8}
.seo-copy h2{color:#d9e1f1;font-size:24px;letter-spacing:-.7px}
.seo-copy strong{color:#aeb9cf}
.footer{max-width:1180px;margin:auto;padding:28px 24px 45px;display:flex;justify-content:space-between;color:#56627a;font-size:11px;border-top:1px solid #161f30}
@media(max-width:760px){
 .site-header{height:64px;padding:0 16px}.privacy-pill{display:none}.container{padding:34px 12px 20px}
 h1{letter-spacing:-2px}.hero-copy{font-size:15px}.tabs{overflow:auto}.tab{white-space:nowrap;padding:11px 14px}
 .toolbar{gap:10px}.toolbar-left{max-width:55%}.workspace{grid-template-columns:1fr;min-height:0}
 .swap-col{display:none}.output-wrap{border-left:0;border-top:1px solid var(--border)}
 textarea{height:300px}.features{grid-template-columns:1fr 1fr;margin-bottom:48px}
 .bottom-bar{gap:12px;align-items:flex-end}.bottom-bar .message{flex:1}.primary-btn span{display:none}
 .footer{padding:24px 16px;gap:10px;flex-direction:column}
}

/* ─────────────────────────────
   404 Page
   ───────────────────────────── */

.error-page{
  min-height:calc(100vh - 72px);
  display:grid;
  place-items:center;
  padding:50px 24px 70px;
}

.error-container{
  width:100%;
  max-width:680px;
  text-align:center;
}

.error-mark{
  width:52px;
  height:52px;
  margin:0 auto 28px;
  display:grid;
  place-items:center;

  border:1px solid #3b4660;
  border-radius:14px;

  color:var(--accent2);
  background:#121a2b;

  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:15px;
  font-weight:500;

  box-shadow:0 12px 35px rgba(0,0,0,.2);
}

.error-code{
  margin:0;

  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:clamp(76px,14vw,150px);
  line-height:.9;
  font-weight:500;
  letter-spacing:-9px;

  background:linear-gradient(
    100deg,
    var(--accent),
    var(--accent2)
  );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.error-title{
  margin:28px 0 10px;
  color:var(--text);
  font-size:clamp(25px,4vw,34px);
  line-height:1.2;
  letter-spacing:-1px;
  font-weight:700;
}

.error-copy{
  max-width:500px;
  margin:0 auto;

  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}

.error-actions{
  display:flex;
  justify-content:center;
  gap:9px;
  margin-top:28px;
}

.error-actions .primary-btn,
.error-actions .secondary-btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
}

.error-footer{
  margin:34px 0 0;

  color:#56627a;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:10px;
}

@media(max-width:760px){
  .error-page{
    min-height:calc(100vh - 64px);
    padding:34px 16px 50px;
  }

  .error-mark{
    width:46px;
    height:46px;
    margin-bottom:24px;
  }

  .error-code{
    font-size:clamp(72px,22vw,110px);
    letter-spacing:-6px;
  }

  .error-title{
    margin-top:22px;
  }

  .error-copy{
    font-size:14px;
  }

  .error-actions{
    flex-direction:column;
    max-width:280px;
    margin-left:auto;
    margin-right:auto;
  }

  .error-actions .primary-btn,
  .error-actions .secondary-btn{
    width:100%;
  }
}

.guide-card {
  background: rgba(17,24,39,.88);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  text-align: left; /* Ensure text is left-aligned */
}

.guides-section {
  padding: 40px;
  text-align: left;
}

.guides-section h2,
.guides-section h3,
.guides-section p {
  text-align: left;
  display: block;
  width: 100%;
}

.guides-section h2,
.guides-section h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}
.guides-section a {
  color: var(--accent2);
  text-decoration: underline;
}

.guides-section a:hover {
  text-decoration: none;
}

    :root{
      --bg:#090d18;
      --surface:#111827;
      --surface2:#0d1423;
      --border:#263148;

      --text:#edf2ff;
      --muted:#8995ad;

      --accent:#8b7cff;
      --accent2:#5eead4;

      --shadow:0 24px 80px rgba(0,0,0,.34);
    }

    *{
      box-sizing:border-box;
    }

    html{
      scroll-behavior:smooth;
    }

    body{
      min-height:100vh;
      margin:0;

      background:
        radial-gradient(
          circle at 15% -5%,
          rgba(139,124,255,.18),
          transparent 30%
        ),
        radial-gradient(
          circle at 85% 10%,
          rgba(94,234,212,.08),
          transparent 24%
        ),
        var(--bg);

      color:var(--text);
      font-family:"DM Sans",system-ui,sans-serif;
    }

    a{
      color:inherit;
    }

    .site-header{
      height:72px;
      max-width:1180px;
      margin:auto;
      padding:0 24px;

      display:flex;
      align-items:center;
      justify-content:space-between;
    }

    .brand{
      display:flex;
      align-items:center;
      gap:10px;

      color:var(--text);
      text-decoration:none;

      font-weight:700;
      font-size:20px;
      letter-spacing:-.5px;
    }

    .brand-mark{
      width:35px;
      height:35px;

      display:grid;
      place-items:center;

      border:1px solid #3b4660;
      border-radius:10px;

      color:var(--accent2);
      background:#121a2b;

      font-family:"JetBrains Mono",monospace;
      font-size:13px;
    }

    .brand-accent{
      color:var(--accent);
    }

    .privacy-pill{
      font-size:12px;
      color:#a9b3c7;

      border:1px solid var(--border);
      border-radius:999px;

      padding:7px 11px;

      background:rgba(17,24,39,.6);
    }

    .dot{
      display:inline-block;

      width:6px;
      height:6px;

      background:var(--accent2);
      border-radius:50%;

      margin-right:7px;

      box-shadow:0 0 10px var(--accent2);
    }

    .container{
      max-width:1180px;
      margin:auto;
      padding:70px 24px 50px;
    }

    /* HERO */

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

    .eyebrow{
      margin:0 0 16px;

      color:var(--accent2);

      font-size:11px;
      font-weight:700;

      letter-spacing:2px;
      text-transform:uppercase;
    }

    h1{
      margin:0;

      font-size:clamp(42px,7vw,72px);
      line-height:.98;

      letter-spacing:-4px;
      font-weight:700;
    }

    h1 span{
      background:
        linear-gradient(
          100deg,
          var(--accent),
          var(--accent2)
        );

      -webkit-background-clip:text;
      background-clip:text;
      color:transparent;
    }

    .hero-copy{
      max-width:650px;
      margin:20px auto 0;

      color:var(--muted);

      font-size:17px;
      line-height:1.7;
    }

    .hero-actions{
      display:flex;
      justify-content:center;
      gap:10px;

      margin-top:30px;
    }

    .primary-btn,
    .secondary-btn{
      min-height:42px;

      display:inline-flex;
      align-items:center;
      justify-content:center;

      padding:0 16px;

      border-radius:9px;

      text-decoration:none;

      font-size:13px;
      font-weight:600;
    }

    .primary-btn{
      border:0;

      background:
        linear-gradient(
          135deg,
          var(--accent),
          #6e5cf0
        );

      color:#fff;

      box-shadow:
        0 8px 24px rgba(139,124,255,.18);

      transition:
        transform .15s ease,
        filter .15s ease;
    }

    .primary-btn:hover{
      filter:brightness(1.08);
      transform:translateY(-1px);
    }

    .secondary-btn{
      border:1px solid var(--border);
      background:#141d2f;
      color:#b8c1d3;
    }

    .secondary-btn:hover{
      background:#1a253a;
      color:var(--text);
    }

    /* TOOL PREVIEW */

    .preview{
      max-width:940px;
      margin:65px auto 0;

      background:rgba(17,24,39,.88);

      border:1px solid var(--border);
      border-radius:20px;

      overflow:hidden;

      box-shadow:var(--shadow);

      backdrop-filter:blur(12px);
    }

    .window-bar{
      height:44px;

      display:flex;
      align-items:center;

      padding:0 16px;

      border-bottom:1px solid var(--border);

      background:#0e1524;
    }

    .window-dots{
      display:flex;
      gap:6px;
    }

    .window-dots span{
      width:7px;
      height:7px;

      border-radius:50%;

      background:#344058;
    }

    .window-title{
      margin:auto;

      color:#67748d;

      font-family:"JetBrains Mono",monospace;
      font-size:10px;
    }

    .preview-body{
      display:grid;
      grid-template-columns:1fr 1fr;

      min-height:300px;
    }

    .code-panel{
      padding:24px;

      background:
        linear-gradient(
          180deg,
          rgba(13,20,35,.96),
          rgba(9,14,25,.96)
        );
    }

    .code-panel + .code-panel{
      border-left:1px solid var(--border);
    }

    .panel-label{
      margin-bottom:18px;

      color:#66738b;

      font-family:"JetBrains Mono",monospace;
      font-size:10px;

      text-transform:uppercase;
      letter-spacing:1.4px;
    }

    pre{
      margin:0;

      color:#cbd5e8;

      font-family:"JetBrains Mono",monospace;
      font-size:12px;
      line-height:1.8;

      white-space:pre-wrap;
    }

    .syntax-key{
      color:#9b8fff;
    }

    .syntax-string{
      color:#72e6d3;
    }

    .syntax-number{
      color:#c5baff;
    }

    /* FEATURES */

    .section-heading{
      max-width:700px;
      margin:80px auto 25px;

      text-align:center;
    }

    .section-heading h2{
      margin:0;

      color:#dfe6f5;

      font-size:27px;
      letter-spacing:-1px;
    }

    .section-heading p{
      margin:10px 0 0;

      color:#78859d;

      font-size:14px;
      line-height:1.7;
    }

    .features{
      display:grid;
      grid-template-columns:repeat(3,1fr);

      gap:12px;
    }

    .feature{
      padding:22px;

      border:1px solid var(--border);
      border-radius:15px;

      background:rgba(17,24,39,.48);

      transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease;
    }

    .feature:hover{
      transform:translateY(-2px);

      border-color:#35425e;
      background:rgba(17,24,39,.7);
    }

    .feature-icon{
      width:36px;
      height:36px;

      display:grid;
      place-items:center;

      margin-bottom:17px;

      border:1px solid #33405b;
      border-radius:10px;

      color:var(--accent2);
      background:#121a2b;

      font-family:"JetBrains Mono",monospace;
      font-size:13px;
    }

    .feature h3{
      margin:0 0 7px;

      color:#dce4f6;

      font-size:15px;
    }

    .feature p{
      margin:0;

      color:#748198;

      font-size:12px;
      line-height:1.7;
    }

    /* TOOL CARD */

    .tool-section{
      max-width:900px;
      margin:70px auto 0;
    }

    .tool-card{
      display:grid;
      grid-template-columns:1fr auto;
      gap:25px;

      align-items:center;

      padding:26px;

      border:1px solid var(--border);
      border-radius:18px;

      background:
        linear-gradient(
          120deg,
          rgba(139,124,255,.08),
          rgba(94,234,212,.035)
        ),
        rgba(17,24,39,.75);

      box-shadow:0 15px 50px rgba(0,0,0,.18);
    }

    .tool-kicker{
      margin:0 0 8px;

      color:var(--accent2);

      font-family:"JetBrains Mono",monospace;
      font-size:10px;

      letter-spacing:1.4px;
      text-transform:uppercase;
    }

    .tool-card h2{
      margin:0 0 8px;

      color:#e8edfa;

      font-size:23px;
      letter-spacing:-.8px;
    }

    .tool-card p{
      max-width:600px;

      margin:0;

      color:#7e8aa2;

      font-size:13px;
      line-height:1.7;
    }

    .tool-link{
      white-space:nowrap;
    }

    /* FOOTER */

    .footer{
      max-width:1180px;

      margin:80px auto 0;
      padding:28px 24px 45px;

      display:flex;
      justify-content:space-between;

      border-top:1px solid #161f30;

      color:#56627a;

      font-size:11px;
    }

    .footer-code{
      color:#69758c;

      font-family:"JetBrains Mono",monospace;
    }

    /* MOBILE */

    @media(max-width:760px){

      .site-header{
        height:64px;
        padding:0 16px;
      }

      .privacy-pill{
        display:none;
      }

      .container{
        padding:48px 16px 30px;
      }

      h1{
        letter-spacing:-2.5px;
      }

      .hero-copy{
        font-size:15px;
      }

      .hero-actions{
        flex-direction:column;

        max-width:280px;

        margin-left:auto;
        margin-right:auto;
      }

      .preview{
        margin-top:45px;
      }

      .preview-body{
        grid-template-columns:1fr;
      }

      .code-panel + .code-panel{
        border-left:0;
        border-top:1px solid var(--border);
      }

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

      .tool-card{
        grid-template-columns:1fr;
      }

      .tool-link{
        width:100%;
      }

      .tool-link .primary-btn{
        width:100%;
      }

      .footer{
        padding:24px 16px;
        gap:10px;

        flex-direction:column;
      }
    }
