/* ==========================================================================
   NonStop Diagnostic Support — stylesheet
   Dark technical B2B theme. No frameworks, no build step.
   ========================================================================== */

:root {
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --surface: #121e33;
  --surface-alt: #16233b;
  --border: #24344f;
  --text: #e6edf7;
  --text-muted: #9fb0c9;
  --text-faint: #6d7f9c;

  --blue: #3b82f6;
  --blue-dim: #1d4ed8;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;

  --code-bg: #0a1120;
  --code-border: #1f2c44;

  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1140px;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

code {
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--blue);
  font-size: 0.9em;
}

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-lead {
  max-width: 720px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dim);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-whatsapp {
  background: var(--green);
  color: #06210f;
}

.btn-whatsapp:hover {
  background: #16a34a;
}

.paypal-button-container {
  margin-top: 10px;
}

.paypal-amount-field {
  margin-top: 14px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.2px;
}

.brand span {
  color: var(--blue);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--blue-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  padding: 90px 0 72px;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.12), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 500;
}

.hero-text {
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.terminal-window {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--code-border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: var(--red); }
.dot-yellow { background: var(--orange); }
.dot-green { background: var(--green); }

.terminal-body {
  margin: 0;
  padding: 20px;
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.85rem;
  color: #cbd5e1;
  overflow-x: auto;
}

.tk-warn { color: var(--orange); }
.tk-alert { color: var(--red); font-weight: 700; }

/* ---------- Problem ---------- */

.problem {
  background: var(--bg-alt);
}

.problem h2 {
  max-width: 760px;
}

.problem p {
  max-width: 780px;
}

/* ---------- Positioning ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-weight: 500;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Services / Cards ---------- */

.services {
  background: var(--bg-alt);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--text);
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 14px 0 0;
  overflow-x: auto;
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.82rem;
  color: #93c5fd;
  line-height: 1.55;
}

.code-block code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* ---------- Process ---------- */

.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
}

.process-note {
  margin-top: 32px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  color: var(--text-muted);
}

/* ---------- Deliverables ---------- */

.deliverables {
  background: var(--bg-alt);
}

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

.pill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
  color: var(--text);
  border-left: 3px solid var(--blue);
}

/* ---------- Incidents ---------- */

.incident-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.incident-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding-left: 34px;
}

.incident-list li::before {
  content: "!";
  position: absolute;
  left: 14px;
  color: var(--orange);
  font-weight: 700;
}

/* ---------- Packages ---------- */

.packages {
  background: var(--bg-alt);
}

.packages-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.package-highlight {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow);
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.package-subtext {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: -10px 0 18px;
  font-style: italic;
}

.package-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-card li {
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  font-size: 0.92rem;
}

.package-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.packages-note {
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Safety ---------- */

.safety {
  background: var(--surface);
  border-top: 3px solid var(--orange);
}

.safety p {
  max-width: 820px;
}

/* ---------- Contact ---------- */

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field textarea.mono {
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.85rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-checkbox label {
  font-weight: 500;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  padding: 48px 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 52px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}
