*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0c1445;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  color: #ffffff;
}

a {
  color: #0ea5e9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace, sans-serif;
}

.tool-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.tool-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  padding: 32px;
  margin-bottom: 32px;
}

.btn-primary {
  background: #f5c518;
  color: #0c1445;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 28px;
  border: none;
  font-size: 15px;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.input-field {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 15px;
  width: 100%;
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input-field:focus {
  border-color: #0ea5e9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.output-field {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  color: #06b6d4;
  width: 100%;
  word-break: break-word;
}

.nav-bar {
  height: 60px;
  background: rgba(12, 20, 69, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.nav-link {
  color: #ffffff;
  font-size: 14px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.badge-free {
  display: inline-block;
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
}

.section-content {
  max-width: 720px;
}

.section-content h2 {
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 24px;
}

.section-content p {
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.section-content ol,
.section-content ul {
  padding-left: 20px;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 16px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.faq-answer {
  color: #94a3b8;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.footer a {
  color: rgba(255, 255, 255, 0.5);
}

.footer p {
  margin-bottom: 8px;
}

.callout {
  background: rgba(245, 197, 24, 0.08);
  border-left: 3px solid #f5c518;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #e2e8f0;
  font-size: 14px;
}

.gate-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-modal-card {
  position: relative;
  max-width: 480px;
  width: 90%;
  background: #0f1d5e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 32px;
}

.gate-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
}

.gate-modal-close:hover {
  color: #ffffff;
}

.gate-modal-title {
  font-family: 'Syne', sans-serif;
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 8px;
  padding-right: 24px;
}

.gate-modal-subtitle {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.gate-modal-form label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.gate-modal-form .input-field {
  margin-bottom: 14px;
}

.gate-modal-error {
  color: #f87171;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

.gate-modal-turnstile {
  margin-bottom: 16px;
}

.section-row {
  display: flex;
  gap: 16px;
}

.section-row > * {
  flex: 1;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.stat-box-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.stat-box-value {
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 600px) {
  .tool-wrapper {
    padding: 16px;
  }

  .tool-card {
    padding: 16px;
  }

  .section-row {
    flex-direction: column;
  }

  .nav-bar {
    padding: 0 16px;
  }
}
