/* VQ CRM Landing — vsquality.dev (esquema visual do app) */

:root {
  --color-surface: #050720;
  --color-surface2: #0a1030;
  --color-border: #475569;
  --color-text: #f8fafc;
  --color-muted: #cbd5e1;
  --color-brand: #38bdf8;
  --color-brand2: #a855f7;
  --bg: var(--color-surface);
  --bg-card: var(--color-surface2);
  --bg-elevated: #0f172a;
  --text: var(--color-text);
  --text-muted: var(--color-muted);
  --accent: var(--color-brand);
  --accent-hover: #7dd3fc;
  --border: var(--color-border);
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --container: min(1120px, 92vw);
  --space: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --gradient-app: radial-gradient(circle at 0% 0%, #22d3ee 0, rgba(15,23,42,0) 45%), radial-gradient(circle at 100% 0%, #a855f7 0, rgba(15,23,42,0) 46%), radial-gradient(circle at 50% 100%, #2563eb 0, #020617 55%);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--gradient-app);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 32, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

@media (max-width: 380px) {
  .logo-text {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  opacity: 0.9;
  transition: color 0.2s, opacity 0.2s;
}

.nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.header-cta {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-cta {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: var(--space-lg);
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero-logo {
  margin: 0 auto 1rem;
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-trust {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

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

.btn-primary {
  background: var(--color-brand);
  color: #050720;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #050720;
}

.btn-trial {
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-trial:hover {
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* Sections */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

/* Features */
.features {
  padding: var(--space-xl) 0;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.feature:last-of-type {
  margin-bottom: 0;
}

.feature-reverse .feature-media {
  order: 2;
}

.feature-reverse .feature-content {
  order: 1;
}

.feature-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}

.feature-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature-img-btn:hover {
  transform: scale(1.02);
}

.feature-img-btn:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.feature-media-grid .feature-img-btn img,
.feature-media-grid img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-img-btn img {
  pointer-events: none;
}

.feature-media img {
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
  border: 1px solid var(--border);
}

.feature-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.feature-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

@media (max-width: 900px) {
  .feature,
  .feature-reverse {
    grid-template-columns: 1fr;
    gap: var(--space);
  }

  .feature-reverse .feature-media,
  .feature-reverse .feature-content {
    order: unset;
  }

  .feature-media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .feature-media-grid img {
    max-height: 160px;
  }

  .feature-media img {
    max-height: 280px;
    object-fit: cover;
  }
}

/* CTA section */
.cta-section {
  padding: var(--space-xl) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, 0.08) 0, transparent 50%);
  pointer-events: none;
}

/* Plan cards */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.plan-card.plan-featured {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 1px var(--color-brand), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand);
  color: #050720;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.plan-card.plan-featured .plan-name {
  margin-top: 0.5rem;
}

.plan-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}

.plan-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.85;
  margin-right: 0.15rem;
}

.plan-period {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
}

.plan-card .btn {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 700px) {
  .plan-cards {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact {
  padding: var(--space-xl) 0;
}

.contact-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.contact-form {
  margin-bottom: 1rem;
}

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

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn-block {
  width: 100%;
  margin-top: 0.25rem;
}

.contact-success {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: rgba(5, 150, 105, 0.2);
  border: 1px solid var(--color-success-border, #059669);
  border-radius: var(--radius);
  color: var(--color-success-text, #6ee7b7);
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-error {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius);
  color: #fca5a5;
  font-weight: 500;
  font-size: 0.9375rem;
}

.contact-error a {
  color: var(--color-brand);
  font-weight: 600;
}

.contact-alternative {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-alternative a {
  font-weight: 600;
}

/* CTA strip */
.cta-strip {
  padding: var(--space-lg) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cta-strip-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

/* Footer */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-company {
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
}

.footer-link {
  color: var(--accent);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--accent-hover);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
  background: var(--color-brand);
  color: #050720;
}
