/* WirelessTools.dev — global styles */

:root {
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-elev: #1f2937;
  --border: #1f2937;
  --border-strong: #374151;
  --text: #e5e7eb;
  --text-dim: #9ca3af;
  --text-muted: #6b7280;
  --accent: #22d3ee;
  --accent-hover: #67e8f9;
  --accent-dark: #0891b2;
  --success: #10b981;
  --warning: #f59e0b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
nav.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  z-index: 50;
}
nav.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
.logo .dot { color: var(--accent); }
.logo:hover { color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; }
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 32px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #062231; }
.btn-primary:hover { background: var(--accent-hover); color: #062231; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
section .section-lead {
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 640px;
  font-size: 16px;
}

/* ---------- Tools grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: block;
  color: var(--text);
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}
.tool-card.disabled { opacity: 0.55; pointer-events: none; }
.tool-card.disabled:hover { transform: none; border-color: var(--border); }
.tool-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 600; }
.tool-card p { color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.tool-card .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--text-dim);
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tool-card.live .badge {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 64px;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site-footer a { color: var(--text-dim); }
footer.site-footer a:hover { color: var(--accent); }

/* ---------- Calculator pages ---------- */
.tool-header { padding: 56px 0 24px; }
.tool-header h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.tool-header .lead { color: var(--text-dim); max-width: 720px; }
.crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.crumbs a { color: var(--text-dim); }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0 48px;
}
@media (max-width: 820px) { .calc-layout { grid-template-columns: 1fr; } }

.calc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.calc-panel h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-weight: 600;
  border: none;
  padding: 0;
}

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field label .symbol {
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.field-input { display: flex; }
.field-input input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  width: 100%;
  -moz-appearance: textfield;
  transition: border-color 0.15s ease;
}
.field-input input::-webkit-outer-spin-button,
.field-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field-input input:focus {
  outline: none;
  border-color: var(--accent);
}
.field-input .unit {
  padding: 10px 14px;
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-left: none;
  border-radius: 0 6px 6px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  min-width: 60px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.result-row:last-child { border-bottom: none; }
.result-label { color: var(--text-dim); font-size: 14px; }
.result-label .symbol { font-family: var(--font-mono); color: var(--text-muted); margin-left: 6px; font-size: 12px; }
.result-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 16px;
}
.result-value .unit {
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 4px;
  font-size: 13px;
}

.note {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 24px;
  line-height: 1.55;
}
.note strong { color: var(--text); font-weight: 600; }

.tool-info { margin: 32px 0 64px; max-width: 760px; }
.tool-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 32px;
  letter-spacing: -0.01em;
}
.tool-info p { color: var(--text-dim); margin-bottom: 12px; line-height: 1.65; }
.tool-info code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
}
