/* =====================================================
   Resopatools – Production CSS
   Stable • Neutral • Tools-first
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root{
  --bg-main:#0b1220;
  --bg-soft:#0f1a2e;
  --bg-card:#121f38;
  --text-main:#eaf0ff;
  --text-muted:#b9c6e6;
  --border-soft:rgba(255,255,255,.08);
  --accent:#00A8FF;

  --radius:14px;
  --radius-sm:10px;
}
/* ===== PATCH: missing variables (SAFE) ===== */
:root{
  --white:#ffffff;
  --text:#eaf0ff;
  --muted:#b9c6e6;
  --line:rgba(255,255,255,.08);
  --card:#121f38;
}
/* ===== END PATCH ===== */

/* ---------- Reset ---------- */
*,
*::before,
*::after{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 500px at 20% -10%, #162a4d 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-main), #050a14 80%);
  color:var(--text-main);
  line-height:1.6;
}

/* ---------- Layout ---------- */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(5,10,20,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border-soft);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
}

.logo{
  font-size:18px;
  font-weight:800;
  letter-spacing:.3px;
  text-decoration:none;
  color:#fff;
}

.nav a{
  margin-left:18px;
  font-weight:600;
  text-decoration:none;
  color:var(--text-muted);
}
.nav a:hover{
  color:#fff;
}

/* ---------- Hero ---------- */
.hero{
  padding:78px 0 36px;
}

.hero h1{
  font-size:44px;
  line-height:1.15;
  margin:0 0 14px;
  letter-spacing:-.6px;
}

.hero p{
  max-width:720px;
  margin:0;
  color:var(--text-muted);
  font-size:18px;
}

/* ---------- Badge ---------- */
.badge{
  display:inline-block;
  margin-bottom:14px;
  padding:6px 12px;
  font-size:12px;
  font-weight:600;
  border-radius:999px;
  border:1px solid var(--border-soft);
  color:var(--text-muted);
  background:rgba(255,255,255,.02);
}

/* ---------- Section Title ---------- */
.section-title{
  margin:24px 0 14px;
  font-size:18px;
  font-weight:700;
  letter-spacing:.2px;
}

/* ---------- Grid & Cards ---------- */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap:18px;
  padding-bottom:80px;
}

.card{
  display:block;
  padding:20px;
  border-radius:var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    var(--bg-card);
  border:1px solid var(--border-soft);
  text-decoration:none;
  color:var(--text-main);
  transition: transform .15s ease, border-color .15s ease;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,168,255,.35);
}

.card h3{
  margin:0 0 8px;
  font-size:18px;
}

.card p{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--border-soft);
  padding:32px 0;
  color:var(--text-muted);
  background:rgba(5,10,20,.6);
}

.footer-row{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.footer-nav a{
  margin-right:16px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  color:var(--text-muted);
}
.footer-nav a:hover{
  color:#fff;
}

.footer-trust{
  font-size:13px;
}

.footer-copy{
  font-size:13px;
}

/* ---------- Responsive ---------- */
@media (max-width:640px){
  .hero h1{
    font-size:34px;
  }
  .nav a{
    margin-left:12px;
  }
}

/* === TOOLS LIST PAGE === */

.tools-desc{
  max-width:700px;
  margin:0 0 32px;
  color:var(--muted);
}

.tools-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-bottom:60px;
}

.tool-box{
  display:flex;
  align-items:center;
  justify-content:center;
  height:64px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  text-decoration:none;
  color:var(--white);
  font-weight:600;
  transition:all .15s ease;
}

.tool-box:hover{
  border-color:var(--accent);
  color:var(--accent);
  transform:translateY(-2px);
}

/* ===== TOOL PAGE FIX ===== */
h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.tool-lead {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ===== PATCH: tool form visibility fix ===== */
.tool-form textarea,
.tool-form input[type="text"],
.tool-form input[type="file"]{
  width:100%;
  background:#0f1a2e;
  color:var(--text-main);
  border:1px solid var(--border-soft);
  border-radius:8px;
  padding:12px;
  font-size:15px;
}

.tool-form button{
  margin-top:14px;
  background:var(--accent);
  color:#001;
  border:none;
  padding:10px 18px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
}

.tool-form button:hover{
  opacity:.9;
}
/* ===== END PATCH ===== */


.info-box {
  margin-top: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.info-box h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.info-box ul {
  margin: 0;
  padding-left: 18px;
}

.info-box li {
  color: var(--text);
  margin-bottom: 6px;
}

/* ===== PATCH: tool page container (NEW, NON-DESTRUCTIVE) ===== */
.tool-container{
  max-width:760px;
  margin:40px auto 80px;
  padding:32px;
  background:rgba(15,26,46,.85);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
}
/* ===== END PATCH ===== */

/* ===== PATCH: main layout stability ===== */
main.wrap{
  min-height:calc(100vh - 200px);
  padding-top:32px;
  padding-bottom:80px;
}
/* ===== END PATCH ===== */

main.wrap h1 {
  color: var(--white);
  margin-bottom: 12px;
}

main.wrap p {
  color: var(--text);
  max-width: 700px;
}

main.wrap form {
  margin: 20px 0;
}

main.wrap textarea,
main.wrap input[type="text"],
main.wrap input[type="file"] {
  width: 100%;
  background: #0f1a2e;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
}

main.wrap button {
  margin-top: 10px;
  background: var(--accent);
  color: #001;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

main.wrap button:hover {
  opacity: .9;
}
