/* ============================================================
   ZM Software — Styles
   ============================================================ */

/* Reset & base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #0d0f14;
  --bg-2:      #131720;
  --bg-3:      #1a1f2e;
  --surface:   #1e2436;
  --border:    #2a3148;
  --ink:       #f0f2f8;
  --ink-2:     #a8b0c8;
  --ink-3:     #636b85;
  --accent:    #3b82f6;
  --accent-h:  #2563eb;
  --accent-2:  #06b6d4;
  --green:     #10b981;
  --red:       #ef4444;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --max-w:     1080px;
  --t:         0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  letter-spacing: -0.1px;
}

.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,15,20,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t);
}

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

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 9rem 0 5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 65%);
  top: -100px; right: -150px;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  max-width: 720px;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ============================================================
   Pain cards
   ============================================================ */
.pain-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.pain-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color var(--t);
}

.pain-card:hover { border-color: var(--accent); }

.pain-card-icon {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: var(--accent-2);
}

.pain-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.pain-card p {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ============================================================
   Solutions / caps
   ============================================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.sol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color var(--t), transform var(--t);
}

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

.sol-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(59,130,246,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(59,130,246,0.2);
}

.sol-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.sol-card p {
  font-size: 0.83rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============================================================
   How it works
   ============================================================ */
.how-section { background: var(--bg-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  counter-reset: steps;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.step-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-card p {
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ============================================================
   Examples list
   ============================================================ */
.examples-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
  margin-top: 2rem;
}

.example-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.87rem;
  color: var(--ink-2);
}

.example-item::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   Trust section
   ============================================================ */
.trust-section { background: var(--bg-3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.trust-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--green);
  font-weight: 800;
  margin-top: 2px;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ============================================================
   Form section
   ============================================================ */
.form-section { background: var(--bg-2); border-top: 1px solid var(--border); }

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.form-info h2 { margin-bottom: 0.8rem; }
.form-info p  { font-size: 0.9rem; color: var(--ink-2); line-height: 1.75; margin-bottom: 1.5rem; }

.form-info-items {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-info-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.form-info-item .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Form card */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

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

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.9rem; }

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.2px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23636b85' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); background: var(--bg-2); }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }

.field textarea { resize: vertical; min-height: 90px; }

.field-error {
  font-size: 0.73rem;
  color: var(--red);
  font-weight: 500;
}

.input-error { border-color: var(--red) !important; }

/* Honeypot — esconde do usuário */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; tab-index: -1; }

/* Checkbox consent */
.consent-wrap {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.8rem 0 1.2rem;
}

.consent-wrap input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-wrap label {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.5;
  cursor: pointer;
}

/* Form feedback */
.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 0.8rem;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
}

.form-feedback.error {
  display: block;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--red);
}

/* ============================================================
   Niches / CTA blocks (home)
   ============================================================ */
.niches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.niche-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color var(--t), transform var(--t);
}

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

.niche-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  align-self: flex-start;
  border: 1px solid rgba(59,130,246,0.2);
}

.niche-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.niche-card p {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.6;
  flex: 1;
}

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

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-2);
}

.footer-logo span { color: var(--accent); }

.footer-note {
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* ============================================================
   Divider
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .form-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links  { display: none; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .hero   { padding: 7rem 0 3.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.4rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .btn-lg { padding: 0.9rem 1.5rem; font-size: 0.95rem; }
}
