/* ===================== */
/* BASE RESET */
/* ===================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(180deg,#0b1220 0%,#0f172a 40%,#0b1220 100%);
  min-height: 100vh;
  padding: 70px 20px;
  color: white;
}

/* ===================== */
/* WRAPPER */
/* ===================== */

.tool-wrapper {
  max-width: 1100px;
  margin: auto;
}

/* ===================== */
/* HEADER */
/* ===================== */

.tool-header {
  text-align: center;
  margin-bottom: 60px;
}

.tool-header h1 {
  font-size: 38px;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.tool-header p {
  color: #94a3b8;
  font-size: 16px;
  max-width: 650px;
  margin: auto;
  line-height: 1.7;
}

/* ===================== */
/* MAIN CARD */
/* ===================== */

.tool-card {
  background: linear-gradient(165deg,#1e293b,#111827);
  padding: 55px;
  border-radius: 26px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  margin-bottom: 45px;
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
}

/* ===================== */
/* GRID */
/* ===================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.input-group input {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #1f2937;
  background-color: #0b1220;
  color: white;
  transition: all 0.3s ease;
  font-size: 14px;
}

.input-group input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  background-color: #0f172a;
}

/* ===================== */
/* BUTTONS */
/* ===================== */

.action-area {
  margin-top: 55px;
  text-align: center;
}

.btn-primary {
  padding: 18px 44px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: black;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 15px 45px rgba(34,197,94,0.35);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(34,197,94,0.6);
}

.btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 16px;
  background: #0b1220;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #334155;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #1e293b;
  transform: translateY(-4px);
}

/* ===================== */
/* RESULTS */
/* ===================== */

.results-card {
  margin-top: 45px;
  padding: 45px;
  border-radius: 26px;
  background: linear-gradient(165deg,#0f172a,#0b1220);
  border: 1px solid #1f2937;
  box-shadow: 0 35px 90px rgba(0,0,0,0.7);
  min-height: 160px;
  transition: 0.3s ease;
}

.results-card:hover {
  box-shadow: 0 45px 110px rgba(0,0,0,0.85);
}

.result-card {
  margin-bottom: 30px;
}

.result-card h4 {
  margin-bottom: 18px;
  font-size: 17px;
  color: #94a3b8;
  font-weight: 500;
}

.result-card div {
  margin-bottom: 14px;
  font-size: 16px;
}

.result-card strong {
  color: #22c55e;
  font-weight: 700;
  font-size: 17px;
}

/* ===================== */
/* RISK SCORE */
/* ===================== */

.risk-box {
  margin-top: 30px;
  padding: 26px;
  border-radius: 20px;
  font-weight: 700;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg,#111827,#0f172a);
  border: 1px solid #1f2937;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* ===================== */
/* PRO LOCK */
/* ===================== */

.pro-lock {
  margin-top: 70px;
  padding: 60px;
  background: linear-gradient(165deg,#111827,#0f172a);
  border-radius: 28px;
  border: 1px solid #1f2937;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  transition: 0.3s ease;
}

.pro-lock:hover {
  transform: translateY(-4px);
}

.pro-lock h2 {
  margin-bottom: 22px;
  font-size: 24px;
  font-weight: 600;
}

.pro-lock p {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 35px;
  line-height: 1.7;
}

/* ===================== */
/* BACK LINK */
/* ===================== */

.back-link {
  margin-top: 60px;
  text-align: center;
}

.back-link a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 14px;
  transition: 0.3s;
}

.back-link a:hover {
  color: white;
}

/* ===================== */
/* LANGUAGE SWITCH */
/* ===================== */

.lang-switch {
  text-align: center;
  margin-bottom: 25px;
}

.lang-switch button {
  padding: 8px 16px;
  margin: 0 6px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1220;
  color: white;
  cursor: pointer;
  font-size: 13px;
  transition: 0.25s;
}

.lang-switch button.active {
  background: #22c55e;
  color: black;
  font-weight: 600;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 768px) {

  body {
    padding: 40px 15px;
  }

  .tool-card {
    padding: 35px;
  }

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

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

}
