:root{
  --bg: #ffffff;
  --panel: #ffffff;
  --muted:#6b7280;
  --text:#111827;
  --accent: #7E57C2; /* Violet Gray accent */
  --accent-600: #6f46b3;
  --soft-shadow: 0 8px 24px rgba(16,24,40,0.06);
  --glass-border: rgba(16,24,40,0.04);
  --radius: 12px;
}

/* ------- Base ------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,#fbfbfd 0%, #f7f7fb 100%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

/* ------- Container ------- */
.container{
  width:92%;
  max-width:1100px;
  margin:0 auto;
}

/* ------- Header ------- */
.site-header{
  padding:18px 0;
  background:transparent;
  position:sticky;
  top:0;
  z-index:60;
  backdrop-filter: blur(6px);
}
.header-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

/* Brand */
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; }
.logo-mark{
  width:44px; height:44px; display:grid; place-items:center; border-radius:10px;
  background: linear-gradient(180deg,#efe7ff, #efe7ff);
  color:var(--accent-600); font-weight:700; box-shadow: 0 6px 18px rgba(126,87,194,0.08);
  border:1px solid var(--glass-border);
}
.brand-text{ font-weight:700; letter-spacing:0.1px; color:var(--text);}

/* Nav */
.nav{ display:flex; gap:12px; align-items:center;}
.nav-link{ text-decoration:none; color:var(--muted); font-weight:600; padding:8px 10px; border-radius:8px; transition:all .16s ease; }
.nav-link.active, .nav-link:hover{ color:var(--accent-600); background: rgba(126,87,194,0.06); transform: translateY(-2px);}

/* ------- Hero ------- */
.hero{
  display:flex;
  gap:28px;
  align-items:center;
  padding:44px 0 14px;
}
.hero-left{ flex:1; }
.hero-left h1{ margin:0 0 10px; font-size:2rem; line-height:1.05; color:var(--text); }
.lead{ margin:0 0 18px; color:var(--muted); max-width:56ch; font-weight:500; }
.cta-row{ display:flex; gap:12px; align-items:center; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; gap:10px; padding:10px 16px; border-radius:10px; cursor:pointer; text-decoration:none; font-weight:700; font-size:0.95rem; border:1px solid transparent; }
.btn-primary{ background: linear-gradient(90deg,var(--accent),var(--accent-600)); color:white; box-shadow: 0 8px 30px rgba(126,87,194,0.12); }
.btn-primary:hover{ transform:translateY(-3px); }
.btn-muted{ background:transparent; border:1px solid rgba(16,24,40,0.04); color:var(--muted); }
.btn-outline{ background:transparent; border:1px solid rgba(16,24,40,0.06); color:var(--accent-600); }
.btn-ghost{ background:transparent; border:1px solid rgba(16,24,40,0.02); color:var(--muted); }

/* Hero right stats card */
.stats-card{
  width:260px;
  border-radius:14px;
  padding:18px;
  background: linear-gradient(180deg,#fff,#fbfbff);
  border:1px solid var(--glass-border);
  box-shadow: var(--soft-shadow);
}
.mini-stat{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.mini-stat small{ color:var(--muted); }
.stat-num{ font-weight:800; font-size:1.3rem; color:var(--accent-600); }
.muted-note{ margin-top:8px; color:var(--muted); font-size:0.88rem; }

/* ------- Tool Section ------- */
.tool-section{
  display:grid;
  grid-template-columns: 1fr 300px;
  gap:20px;
  align-items:start;
  margin-top:18px;
}

/* Panel */
.tool-panel{
  background: #fff;
  border-radius: var(--radius);
  padding:18px;
  border:1px solid var(--glass-border);
  box-shadow: var(--soft-shadow);
}

/* textarea */
.label{ display:block; margin-bottom:8px; color:var(--muted); font-weight:600; }
#textInput{
  width:100%;
  min-height:220px;
  border-radius:10px;
  padding:14px;
  border:1px solid rgba(16,24,40,0.04);
  resize:vertical;
  font-size:1rem;
  outline:none;
  color:var(--text);
  background: #fbfbff;
}
#textInput:focus{ box-shadow: 0 8px 30px rgba(126,87,194,0.06); border-color: rgba(126,87,194,0.18); }

/* tool actions */
.tool-actions{ display:flex; justify-content:space-between; align-items:center; margin-top:12px; gap:12px; }
.left-actions{ display:flex; gap:10px; align-items:center; }
.right-note{ color:var(--muted); font-size:0.92rem; }

/* result panel */
.result-panel{ display:flex; flex-direction:column; gap:12px; }
.result-card{
  background: #fff;
  border-radius:12px;
  padding:16px;
  border:1px solid var(--glass-border);
  box-shadow: var(--soft-shadow);
  text-align:center;
}
.result-card h4{ margin:0 0 6px; color:var(--muted); font-size:0.95rem; }
.result-card p{ margin:0; font-weight:800; font-size:1.45rem; color:var(--accent-600); }

/* info section */
.info{ margin-top:26px; background: #fff; border-radius:12px; padding:20px; border:1px solid var(--glass-border); box-shadow: var(--soft-shadow); }
.info h2{ margin-top:0; color:var(--accent-600); }
.benefits{ margin:12px 0 18px 20px; color:var(--muted); }
.tips{ margin-top:14px; color:var(--muted); }

/* footer */
.site-footer{ margin-top:40px; padding:22px 0; }
.footer-row{ display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); }
.footer-links a{ margin-left:12px; text-decoration:none; color:var(--muted); font-weight:600; }
.footer-links a:hover{ color:var(--accent-600); }

/* responsive */
@media (max-width:980px){
  .tool-section{ grid-template-columns: 1fr; }
  .hero{ flex-direction:column; gap:18px; }
  .hero-right{ width:100%; order:2; }
  .hero-left{ order:1; text-align:center; }
  .cta-row{ justify-content:center; }
  .footer-row{ flex-direction:column; gap:8px; text-align:center; }
}
@media (max-width:480px){
  #textInput{ min-height:160px; }
  .stat-num{ font-size:1.05rem; }
  .brand-text{ display:none; }
}
