:root{
  --bg:#040813;
  --panel:#111827;
  --text:#e5e7eb;
  --muted:#a3a3a3;
  --border:rgba(255,255,255,.10);
  --accent:#2EA9E6;
  --accent2:#DCE3EE;
  --success:#34d399;
  --warning:#fbbf24;
  --danger:#f87171;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
}

body.tool-page{
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(96,165,250,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(52,211,153,.12), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.5;
}

.tool-page a{
  color:inherit;
  text-decoration:none;
}

.tool-page a:hover{
  opacity:.9;
}

.tool-shell{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

.tool-header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(10px);
  background:rgba(4,8,19,.75);
  border-bottom:1px solid var(--border);
}

.tool-header-inner{
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.tool-logo-link{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}

.tool-logo{
  display:block;
  height:64px;
  width:auto;
  max-width:220px;
  object-fit:contain;
  filter:drop-shadow(0 0 8px rgba(46,169,230,.25));
}

.tool-nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.tool-nav a{
  color:var(--muted);
}

.tool-nav a:hover{
  color:var(--text);
}

.tool-nav-cta{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text) !important;
  font-weight:700;
}

.tool-main{
  padding-top:40px;
  padding-bottom:30px;
}

.tool-hero{
  max-width:820px;
  margin:0 auto 24px;
}

.tool-hero-copy{
  text-align:left;
}

.tool-eyebrow{
  margin:0 0 12px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent2);
}

.tool-hero h1{
  font-size:48px;
  line-height:1.08;
  margin:0 0 14px;
  max-width:780px;
}

.tool-synopsis{
  margin:0 0 12px;
  max-width:720px;
  font-size:17px;
  line-height:1.65;
  color:var(--text);
}

.tool-subhead{
  color:var(--muted);
  font-size:18px;
  margin:0;
  max-width:720px;
}

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

.tool-trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.tool-trust-pill{
  padding:9px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}

.tool-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.45fr) 340px;
  gap:24px;
  align-items:start;
  margin-bottom:24px;
}

.tool-layout-main,
.tool-layout-side{
  display:flex;
  flex-direction:column;
  gap:24px;
  min-width:0;
}

.tool-card{
  max-width:none;
  margin:0;
  background:rgba(17,24,39,.75);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
}

.tool-card-title{
  margin:0 0 14px;
  font-size:22px;
}

.tool-card-subtitle{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.tool-card-header-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}

.tool-body-copy{
  color:var(--muted);
  margin:0 0 14px;
}

.tool-explainer-card .tool-body-copy:last-of-type{
  margin-bottom:0;
}

.tool-feature-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:20px;
}

.tool-feature-box{
  padding:16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}

.tool-feature-box h3{
  margin:0 0 8px;
  font-size:16px;
}

.tool-feature-box p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.tool-stats-card{
  max-width:940px;
  margin:0 auto 24px;
  padding:20px 24px;
}

.tool-stats-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.tool-stats-grid-4{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.tool-stat{
  padding:18px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  text-align:center;
}

.tool-stat-number{
  font-size:32px;
  line-height:1.1;
  font-weight:800;
  color:var(--text);
  margin-bottom:6px;
}

.tool-stat-label{
  font-size:14px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}

.tool-form{
  display:block;
}

.tool-form-group{
  margin-bottom:18px;
}

.tool-form-group label{
  display:block;
  margin-bottom:8px;
  font-weight:700;
}

.tool-form-group input[type="url"],
.tool-form-group select{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-size:15px;
  outline:none;
}

.tool-form-group input[type="url"]::placeholder{
  color:#8e98a8;
}

.tool-form-group input[type="url"]:focus,
.tool-form-group select:focus{
  border-color:rgba(46,169,230,.55);
  box-shadow:0 0 0 3px rgba(46,169,230,.12);
}

.tool-field-help{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
}

.tool-form-actions{
  margin-top:4px;
}

.tool-button{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:999px;
  border:none;
  font-weight:700;
  font-size:16px;
  cursor:pointer;
  background:linear-gradient(
    135deg,
    rgba(96,165,250,.95),
    rgba(52,211,153,.85)
  );
  color:#06121f;
  transition:.15s;
}

.tool-button:hover{
  opacity:.96;
}

.tool-button-inline{
  width:auto;
  min-width:180px;
}

.tool-button-secondary{
  width:auto;
  min-width:180px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
}

.tool-form-note{
  margin-top:16px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:14px;
}

.tool-status-panel{
  margin-top:18px;
  padding:18px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:16px;
}

.tool-status-top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.tool-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:96px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--border);
  font-weight:700;
  font-size:14px;
}

.tool-job-meta{
  color:var(--muted);
  font-size:14px;
}

.tool-job-meta strong{
  color:var(--text);
  margin-left:4px;
}

.tool-status-copy{
  margin-bottom:14px;
}

.tool-status-message{
  margin:0 0 6px;
  color:var(--text);
  font-weight:700;
}

.tool-status-detail{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.tool-progress-shell{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  margin-bottom:14px;
}

.tool-progress-bar{
  width:18%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(
    135deg,
    rgba(96,165,250,.95),
    rgba(52,211,153,.85)
  );
}

.tool-status-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

.tool-mini-status{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.025);
}

.tool-mini-label{
  display:block;
  margin-bottom:4px;
  font-size:12px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--muted);
}

.tool-status-panel.is-idle .tool-status-badge{
  color:var(--accent2);
}

.tool-status-panel.is-queued .tool-status-badge{
  color:var(--warning);
}

.tool-status-panel.is-running .tool-status-badge{
  color:var(--accent);
}

.tool-status-panel.is-completed .tool-status-badge{
  color:var(--success);
}

.tool-status-panel.is-failed .tool-status-badge{
  color:var(--danger);
}

.tool-results-panel{
  display:block;
}

.tool-summary-block{
  margin-bottom:18px;
}

.tool-summary-block p{
  margin:8px 0;
  color:var(--muted);
  overflow-wrap:anywhere;
}

.tool-summary-block strong{
  color:var(--text);
}

.tool-download-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.tool-download-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
  text-align:center;
}

.tool-download-link:hover{
  opacity:1;
  border-color:rgba(255,255,255,.25);
}

.tool-download-link.is-disabled{
  opacity:.55;
  pointer-events:none;
}

.tool-feedback-panel{
  padding:22px 24px;
}

.tool-feedback-heading-row{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px;
}

.tool-feedback-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:18px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
}

.tool-feedback-copy p{
  margin:0 0 10px;
  color:var(--muted);
  overflow-wrap:anywhere;
}

.tool-feedback-copy strong{
  color:var(--text);
}

.tool-feedback-failure{
  border-color:rgba(248,113,113,.28);
  background:rgba(127,29,29,.16);
}

.tool-feedback-failure .tool-feedback-icon{
  color:var(--danger);
}

.tool-feedback-upgrade{
  border-color:rgba(96,165,250,.22);
  background:rgba(30,41,59,.55);
}

.tool-feedback-upgrade .tool-feedback-icon{
  color:var(--accent);
}

.is-hidden{
  display:none !important;
}

/* -----------------------
   Right Rail
----------------------- */

.tool-how-it-works .tool-card-title,
.tool-limits-card .tool-card-title,
.tool-example-card .tool-card-title,
.tool-support-card .tool-card-title{
  margin-bottom:14px;
}

.tool-steps{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.tool-step{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}

.tool-step-number{
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(96,165,250,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  margin-bottom:10px;
}

.tool-step h3{
  margin:0 0 6px;
  font-size:15px;
}

.tool-step p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.tool-limits-list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}

.tool-limits-list li{
  margin-bottom:8px;
}

.tool-info-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.tool-info-item{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}

.tool-info-item h3{
  margin:0 0 6px;
  font-size:15px;
}

.tool-info-item p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* -----------------------
   Example Blocks
----------------------- */

.tool-example-card{
  overflow:hidden;
}

.tool-example-block + .tool-example-block{
  margin-top:14px;
}

.tool-example-label{
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--accent2);
  margin-bottom:8px;
}

.tool-example-code{
  margin:0;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
  white-space:pre-wrap;
  word-break:break-word;
  overflow-x:auto;
}

/* -----------------------
   Upgrade CTA
----------------------- */

.tool-upgrade-card{
  max-width:1100px;
  margin:0 auto 24px;
  padding:28px;
}

.tool-upgrade-content{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:24px;
  align-items:center;
}

.tool-upgrade-copy{
  min-width:0;
}

.tool-upgrade-eyebrow{
  margin:0 0 10px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--accent2);
}

.tool-upgrade-text{
  color:var(--muted);
  margin-bottom:16px;
}

.tool-upgrade-list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}

.tool-upgrade-list li{
  margin-bottom:8px;
}

.tool-upgrade-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:240px;
}

.tool-upgrade-actions-inline{
  flex-direction:row;
  flex-wrap:wrap;
  min-width:0;
  margin-top:18px;
}

.tool-upgrade-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-weight:700;
  transition:.15s;
}

.tool-upgrade-button:hover{
  border-color:rgba(255,255,255,.25);
  opacity:1;
}

.tool-upgrade-button-primary{
  background:linear-gradient(
    135deg,
    rgba(96,165,250,.95),
    rgba(52,211,153,.85)
  );
  color:#06121f;
  border:none;
}

/* -----------------------
   Footer
----------------------- */

.tool-footer{
  border-top:1px solid var(--border);
  margin-top:20px;
}

.tool-footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:16px;
  padding-bottom:26px;
  color:var(--muted);
}

.tool-footer-links{
  display:flex;
  gap:12px;
}

/* -----------------------
   Responsive
----------------------- */

@media (max-width: 900px){

  .tool-header-inner{
    min-height:78px;
  }

  .tool-logo{
    height:48px;
    max-width:160px;
  }

  .tool-nav{
    gap:10px;
    font-size:14px;
  }

  .tool-hero h1{
    font-size:38px;
  }

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

  .tool-stats-card{
    max-width:none;
    margin:0 0 24px;
  }

  .tool-stats-grid-4{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

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

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

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

  .tool-upgrade-card{
    max-width:none;
    margin:0;
    padding:24px;
  }

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

  .tool-upgrade-actions{
    min-width:0;
  }

  .tool-upgrade-actions-inline{
    flex-direction:column;
  }

  .tool-stat-number{
    font-size:28px;
  }

  .tool-footer-inner{
    flex-direction:column;
    text-align:center;
  }
}

@media (max-width: 640px){

  .tool-shell{
    padding:0 16px;
  }

  .tool-header-inner{
    flex-direction:column;
    justify-content:center;
    padding:14px 0;
  }

  .tool-nav{
    flex-wrap:wrap;
    justify-content:center;
  }

  .tool-main{
    padding-top:28px;
  }

  .tool-hero h1{
    font-size:32px;
  }

  .tool-subhead{
    font-size:16px;
  }

  .tool-card{
    padding:20px;
  }

  .tool-stats-grid,
  .tool-stats-grid-4{
    grid-template-columns:1fr;
  }

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

  .tool-button-inline,
  .tool-button-secondary{
    width:100%;
  }
}
