/* Otoparlax Landing — standalone vitrin */

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

:root {
  --bg: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-elevated: #111113;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --navy: #002D62;
  --blue: #0047AB;
  --blue-hover: #003A8C;
  --blue-light: #64B5F6;
  --blue-soft: #E3F2FD;
  --green: #34C759;
  --wa-green: #25D366;
  --wa-hover: #1DA851;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(0,71,171,0.08);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html.dark {
  --bg: #0A0A0B;
  --bg-card: #1C1C1E;
  --bg-elevated: #111113;
  --text: #FFFFFF;
  --text-muted: #9CA3AF;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 4rem;
  transition: background 0.3s, border 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
html.dark .site-header.scrolled {
  background: rgba(28,28,30,0.92);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.logo-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--blue), #0066CC);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,71,171,0.3);
}
.logo-icon svg { width: 1.25rem; height: 1.25rem; color: #fff; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy);
}
html.dark .logo-text { color: #fff; }
.logo-text span { color: var(--blue); }
html.dark .logo-text span { color: var(--blue-light); }

.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--blue); }
html.dark .nav-links a:hover { color: var(--blue-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: none;
  background: #F3F4F6;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
html.dark .icon-btn { background: #2C2C2E; }
.icon-btn:hover { background: #E5E7EB; }
html.dark .icon-btn:hover { background: #3A3A3C; }
.icon-btn svg { width: 1rem; height: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,71,171,0.25);
}
.btn-primary:hover { background: var(--blue-hover); }

.btn-lg {
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
}
.btn-lg svg { width: 1.25rem; height: 1.25rem; }

.btn-outline {
  background: var(--bg-card);
  border: 2px solid #E5E7EB;
  color: var(--text);
}
html.dark .btn-outline { background: #2C2C2E; border-color: #3A3A3C; }
.btn-outline:hover { border-color: var(--blue); }
html.dark .btn-outline:hover { border-color: var(--blue-light); }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.25);
}
.btn-wa:hover { background: var(--wa-hover); }

.btn-demo-nav { display: none; }

@media (min-width: 640px) {
  .btn-demo-nav { display: inline-flex; }
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 24rem; height: 24rem; background: rgba(0,71,171,0.3); top: 5rem; left: -8rem; }
.orb-2 { width: 20rem; height: 20rem; background: rgba(52,199,89,0.2); top: 10rem; right: 0; animation-delay: 2s; }
.orb-3 { width: 16rem; height: 16rem; background: rgba(255,149,0,0.15); bottom: 5rem; left: 33%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-24px) scale(1.08); opacity: 0.75; }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(0,71,171,0.08), transparent 70%);
}
html.dark .hero-gradient {
  background: radial-gradient(ellipse at top, rgba(0,71,171,0.15), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: var(--blue-soft);
  border: 1px solid rgba(0,71,171,0.2);
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
html.dark .badge {
  background: rgba(0,71,171,0.2);
  color: var(--blue-light);
}
.badge svg { width: 1rem; height: 1rem; }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
html.dark .hero h1 { color: #fff; }

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hero-trust svg { width: 1rem; height: 1rem; color: var(--green); flex-shrink: 0; }

/* Dashboard mockup */
.mockup-wrap { position: relative; }
.mockup-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(90deg, rgba(0,71,171,0.2), rgba(52,199,89,0.2));
  border-radius: var(--radius-xl);
  filter: blur(32px);
}
.mockup {
  position: relative;
  background: #0A1628;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #0D1F3C;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.dot-r { background: rgba(239,68,68,0.8); }
.dot-y { background: rgba(251,191,36,0.8); }
.dot-g { background: rgba(52,211,153,0.8); }
.mockup-title { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-left: 0.5rem; font-family: monospace; }

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
}
.mockup-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.75rem;
  padding: 0.75rem;
}
.mockup-stat label { font-size: 0.625rem; color: rgba(255,255,255,0.4); display: block; margin-bottom: 0.25rem; }
.mockup-stat strong { font-size: 1.125rem; font-weight: 900; }
.c-emerald { color: #34d399; }
.c-sky { color: #38bdf8; }
.c-amber { color: #fbbf24; }

.mockup-rows { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}
.mockup-row-left { display: flex; align-items: center; gap: 0.5rem; }
.mockup-row-left svg { width: 0.875rem; height: 0.875rem; color: rgba(255,255,255,0.3); }
.mockup-plate { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.8); }
.mockup-service { font-size: 0.625rem; color: rgba(255,255,255,0.3); display: none; }
@media (min-width: 640px) { .mockup-service { display: inline; } }
.status-pill {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.status-sky { background: rgba(14,165,233,0.2); color: #7dd3fc; }
.status-green { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.status-amber { background: rgba(245,158,11,0.2); color: #fcd34d; }

/* ── Stats bar ── */
.stats-bar {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-value {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 0.25rem;
}
html.dark .stat-value { color: var(--blue-light); }
.stat-label { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }

/* ── Sections ── */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
html.dark .section-label { color: var(--blue-light); }
.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 1rem;
}
html.dark .section-header h2 { color: #fff; }
.section-header p { color: var(--text-muted); max-width: 42rem; margin: 0 auto; }

/* Features */
.features-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,71,171,0.1);
}
.feature-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.fi-blue { background: linear-gradient(135deg, #0047AB, #0066CC); }
.fi-green { background: linear-gradient(135deg, #34C759, #2DA44E); }
.fi-orange { background: linear-gradient(135deg, #FF9500, #E68600); }
.fi-wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.fi-purple { background: linear-gradient(135deg, #7C3AED, #5B21B6); }
.fi-navy { background: linear-gradient(135deg, #002D62, #0047AB); }

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
html.dark .feature-card h3 { color: #fff; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* Steps */
.section-dark {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
html.dark .section-dark { background: #0D1F3C; }
.section-dark .section-label { color: var(--blue-light); }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(191,219,254,0.7); }

.steps-grid {
  display: grid;
  gap: 1.5rem;
  position: relative;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.step-num-bg {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 2.25rem;
  font-weight: 900;
  color: rgba(255,255,255,0.1);
}
.step-num {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.125rem; font-weight: 900; color: #fff; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; color: rgba(191,219,254,0.6); line-height: 1.6; }

/* Why us */
.why-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
html.dark .why-list li { color: #D1D5DB; }
.why-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
html.dark .why-icon { background: rgba(0,71,171,0.2); }
.why-icon svg { width: 1rem; height: 1rem; color: var(--blue); }
html.dark .why-icon svg { color: var(--blue-light); }

.quote-card {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,71,171,0.3);
}
.quote-card > svg { width: 3rem; height: 3rem; opacity: 0.8; margin-bottom: 1.5rem; }
.quote-card blockquote {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.quote-author { display: flex; align-items: center; gap: 0.75rem; }
.quote-avatar {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 900;
}
.quote-author strong { display: block; font-size: 0.875rem; }
.quote-author span { font-size: 0.75rem; color: rgba(191,219,254,0.6); }

/* Contact */
.section-contact {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.contact-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.badge-green {
  background: rgba(52,199,89,0.1);
  border-color: rgba(52,199,89,0.2);
  color: var(--green);
}
.contact-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .contact-btns { flex-direction: row; justify-content: center; }
  .contact-btns .btn-lg { width: auto; }
}
.contact-btns .btn-lg { width: 100%; }

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }
.footer-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--blue); }
html.dark .footer-link:hover { color: var(--blue-light); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WhatsApp Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  padding: 1.75rem;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s;
}
.modal.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
}
html.dark .modal-header h3 { color: #fff; }
.modal-header p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

.modal-close {
  padding: 0.375rem;
  border: none;
  background: #F3F4F6;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
}
html.dark .modal-close { background: #2C2C2E; }
.modal-close:hover { background: #E5E7EB; }
html.dark .modal-close:hover { background: #3A3A3C; }
.modal-close svg { width: 1.25rem; height: 1.25rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid #E5E7EB;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
html.dark .form-group input {
  background: #2C2C2E;
  border-color: #3A3A3C;
}
.form-group input:focus {
  outline: none;
  border-color: var(--blue);
}
html.dark .form-group input:focus { border-color: var(--blue-light); }

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

.modal-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--wa-green);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}
.modal-submit:hover { background: var(--wa-hover); }
.modal-submit:active { transform: scale(0.98); }
.modal-submit svg { width: 1.25rem; height: 1.25rem; }
