* {
  box-sizing: border-box;
}

/* BASE */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

/* ================= HEADER ================= */
.site-header {
  background: #0f172a;
  color: white;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.nav-links a {
  color: #cbd5f5;
  margin-left: 18px;
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover {
  color: #ffffff;
}

/* ================= HERO ================= */
.hero,
.tool-hero {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  text-align: center;
  padding: 70px 20px;
}

.hero h1,
.tool-hero h1 {
  font-size: 38px;
  margin-bottom: 10px;
}

.hero p,
.tool-hero p {
  font-size: 16px;
  max-width: 700px;
  margin: auto;
  opacity: 0.95;
}

.hero-badges {
  margin-top: 22px;
}

.hero-badges span {
  display: inline-block;
  margin: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  font-size: 14px;
}

/* ================= MAIN ================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

.container h2 {
  text-align: center;
  margin-bottom: 35px;
}

.section-gap {
  margin-top: 80px;
}

/* ================= TOOL CARDS (HOME) ================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.tool-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.tool-card h3 {
  margin-top: 0;
  color: #1e40af;
}

.tool-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ================= TOOL PAGES ================= */
.tool-wrapper {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.tool-box {
  background: white;
  width: 100%;
  max-width: 480px;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.tool-box input,
.tool-box select {
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  font-size: 14px;
}

.tool-box button {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.tool-box button:disabled {
  background: #94a3b8;
}

.tool-status {
  margin-top: 16px;
  font-size: 14px;
  color: #555;
}

.back-link {
  display: block;
  margin-top: 20px;
  font-size: 14px;
  text-decoration: none;
  color: #2563eb;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #0f172a;
  color: #cbd5f5;
  margin-top: 60px;
}

.footer-bottom {
  text-align: center;
  padding: 18px;
  background: #020617;
  font-size: 13px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding: 40px 20px;
}

/* ================= HIGH-TECH TOOL UI ================= */

.tool-page {
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.tool-card-advanced {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  padding: 40px 35px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  text-align: center;
  position: relative;
}

.tool-icon {
  width: 72px;
  height: 72px;
  margin: auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: white;
  box-shadow: 0 12px 30px rgba(37,99,235,0.5);
}

.tool-card-advanced h1 {
  margin-top: 20px;
  font-size: 30px;
}

.tool-card-advanced p {
  font-size: 14px;
  color: #475569;
  margin-top: 8px;
}

.tool-card-advanced input,
.tool-card-advanced select {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}

.tool-card-advanced button {
  width: 100%;
  margin-top: 26px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37,99,235,0.45);
}

.tool-card-advanced button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.processing-text {
  margin-top: 18px;
  font-size: 14px;
  color: #475569;
}

.security-note {
  margin-top: 25px;
  font-size: 12px;
  color: #64748b;
}

.security-note span {
  margin-right: 8px;
}
