/* Shared dark glassmorphism theme for FinOps & DevOps SEO Tools */
:root {
  --bg: #070b14;
  --surface: #0f172a;
  --surface-2: #111c33;
  --border: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top right, #0f1f3d 0%, var(--bg) 52%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }

.hero {
  margin-bottom: 28px;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 10px;
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  color: #fff;
}
.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  font-size: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

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

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #334155;
  background: #090f1d;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}
input:focus, select:focus { border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 9px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-primary { background: linear-gradient(135deg, #0284c7, #10b981); color: #fff; }
.btn-secondary { background: #1e293b; color: #f8fafc; border: 1px solid #334155; }
.btn-fiverr { background: #1dbf73; color: #052e16; }

.result-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid #26354f;
  display: none;
}
.result-box.visible { display: block; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.stat {
  background: #090f1d;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.stat .k { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; }
.stat .v { font-size: 1.2rem; font-weight: 800; color: #fff; margin-top: 2px; }
.v.ok { color: var(--emerald); }
.v.warn { color: var(--amber); }
.v.bad { color: var(--rose); }

.funnel-box {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.funnel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

pre {
  background: #050811;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  overflow-x: auto;
  font-size: 0.8rem;
  color: #a5f3fc;
}

.faq { margin-top: 32px; }
.faq h2 { font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; color: #f1f5f9; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
