:root {
  --bg: #040813;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #2ea9e6;
  --accent2: #dce3ee;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

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

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(96, 165, 250, 0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(52, 211, 153, 0.12), transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(4, 8, 19, 0.75);
  border-bottom: 1px solid var(--border);
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  flex: 0 1 auto;
  max-width: min(240px, 42vw);
  line-height: 0;
}

.brand a {
  display: block;
}

.brand a:hover {
  opacity: 0.85;
}

.site-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  color: var(--accent2);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav a.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.12);
  font-weight: 700;
  color: var(--accent2);
}

.nav a.nav-cta:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(96, 165, 250, 0.2);
  color: var(--text);
}

.site-tagline-bar {
  background: rgba(17, 24, 39, 0.55);
  border-bottom: 1px solid var(--border);
}

.site-tagline {
  margin: 0;
  padding: 14px 20px 18px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent2);
  text-align: center;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.muted-link {
  color: var(--muted);
  justify-self: start;
}

.muted-link:hover {
  color: var(--text);
}

.header-title {
  justify-self: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
}

.header-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  color: var(--accent2);
  font-weight: 600;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: start;
}

.hero-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subhead {
  font-size: 1.05rem;
  max-width: 36rem;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.trust-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.trust-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.card {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.28);
}

.form-card:hover {
  transform: none;
  border-color: var(--border);
}

.result-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.result-card:hover {
  transform: none;
  border-color: var(--border);
}

.card-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent2);
}

.list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.list li {
  margin-bottom: 10px;
  padding-left: 4px;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(52, 211, 153, 0.85));
  color: #06121f;
  box-shadow: 0 4px 20px rgba(46, 169, 230, 0.25);
}

.btn-primary:hover {
  color: #06121f;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent2);
}

.btn-ghost:hover {
  border-color: rgba(96, 165, 250, 0.35);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.section {
  padding-top: 32px;
  padding-bottom: 56px;
}

.section-header {
  margin-bottom: 20px;
}

.tool-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(96, 165, 250, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.form-group {
  margin-bottom: 16px;
}

form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}

.checkbox-row label {
  display: inline;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text);
}

form select,
form input[type="url"],
form input[type="number"],
form input[type="file"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

form select:focus,
form input[type="url"]:focus,
form input[type="number"]:focus,
form input[type="file"]:focus {
  border-color: var(--accent);
}

form input[type="file"] {
  cursor: pointer;
}

form input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
}

.status-idle {
  color: var(--muted);
  font-size: 15px;
}

.status-running {
  color: var(--accent);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-running::before {
  content: "⟳";
  animation: spin 1s linear infinite;
}

.status-done {
  color: #34d399;
  font-size: 15px;
  margin: 0 0 8px;
}

.status-error {
  color: #f87171;
  font-size: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.download-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(46, 169, 230, 0.35);
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.download-btn:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.footer {
  margin-top: auto;
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 48rem;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .muted-link {
    justify-self: center;
  }

  .header-nav {
    justify-self: center;
  }

  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand {
    max-width: min(280px, 85vw);
  }

  .nav {
    justify-content: center;
  }

  .site-tagline {
    font-size: 1.15rem;
    padding-left: 20px;
    padding-right: 20px;
  }

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

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

  .cta-row .btn {
    width: 100%;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-logo {
  height: 52px;
  width: auto;
  max-width: 260px;
  display: block;
}

.brand {
  display: flex;
  align-items: center;
}

.brand a {
  display: block;
  line-height: 0;
}

.brand a:hover {
  opacity: 0.85;
}

.footer-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
