/* ==========================================================================
   FB Contact Pro — site-03 dark tech/HUD dashboard theme
   ========================================================================== */

:root {
  --bg: #0a0a12;
  --bg-alt: #0d0d18;
  --cyan: #00f0ff;
  --magenta: #ff2ee6;
  --text: #eaf6ff;
  --text-muted: #9aa5c0;
  --border: #232336;
  --card-bg: #101018;
  --success: #3dff9a;

  --font-heading: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --font-body: "Space Grotesk", -apple-system, sans-serif;

  --buy-modal-accent: var(--cyan);
  --buy-modal-accent-text: #06131a;
  --buy-modal-bg: #101018;
  --buy-modal-text: var(--text);
  --buy-modal-muted: var(--text-muted);
  --buy-modal-border: var(--border);
  --buy-modal-radius: 14px;
  --buy-modal-font: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

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

/* Background HUD grid */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 230, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

main, header, footer {
  position: relative;
  z-index: 1;
}

.grad-text {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--cyan);
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.brand-mark {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.brand-name {
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--cyan);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-small {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-large {
  padding: 15px 28px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  color: #06131a;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35), 0 0 40px rgba(255, 46, 230, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.55), 0 0 56px rgba(255, 46, 230, 0.3);
}

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

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 72px 0 88px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  display: inline-block;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--text);
}

.hero-tagline {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 32px;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------------- Hero visual mockup ---------------- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.browser-mock {
  width: 100%;
  max-width: 460px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.browser-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #14141f;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-mock-url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: #0a0a12;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 6px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ext-popup {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.05), transparent);
}

.ext-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ext-popup-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.ext-popup-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--success);
  text-shadow: 0 0 6px rgba(61, 255, 154, 0.6);
}

.ext-popup-progress {
  height: 6px;
  border-radius: 4px;
  background: #1c1c2a;
  overflow: hidden;
  margin-bottom: 12px;
}

.ext-popup-progress-bar {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.ext-popup-log {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ext-popup-log p {
  margin: 0;
}

.log-tag {
  color: var(--cyan);
  margin-right: 6px;
  font-weight: 700;
}

.log-tag-ok {
  color: var(--success);
}

.contact-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}

.contact-table-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.contact-table-row:last-child {
  border-bottom: none;
}

.contact-table-head {
  background: #14141f;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ---------------- Section shared ---------------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  text-align: center;
  margin: 0 0 12px;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 48px;
  font-size: 15px;
}

/* ---------------- Features ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.18);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 26px;
  display: inline-block;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(255, 46, 230, 0.4));
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------------- How it works ---------------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------------- Use cases ---------------- */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.usecase-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--magenta);
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: -6px 0 20px -12px rgba(255, 46, 230, 0.4);
}

.usecase-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.usecase-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------------- Pricing ---------------- */
.pricing-container {
  display: flex;
  justify-content: center;
}

.pricing-card {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border: 1px solid var(--cyan);
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), 0 0 80px rgba(255, 46, 230, 0.08);
}

.pricing-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  text-shadow: 0 0 8px rgba(255, 46, 230, 0.5);
}

.pricing-title {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--text);
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}

.pricing-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}

/* ---------------- FAQ ---------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question:hover {
  color: var(--cyan);
}

.faq-question-icon {
  font-family: var(--font-mono);
  color: var(--magenta);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[data-open="true"] .faq-question-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.faq-item[data-open="false"] .faq-answer {
  display: none;
}

/* ---------------- Final CTA ---------------- */
.final-cta {
  text-align: center;
  padding: 96px 0;
}

.final-cta-title {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 14px;
}

.final-cta-tagline {
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 32px;
  font-size: 15px;
}

.final-cta-contacts {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.final-cta-contacts a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.final-cta-contacts a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-alt);
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 900px;
  margin: 0 auto 16px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-stats {
    gap: 20px;
  }

  .pricing-card {
    padding: 32px 22px;
  }
}
