:root {
  --bg: #08090f;
  --bg-alt: #0c0e18;
  --surface: #12141f;
  --surface-2: #171a28;
  --border: rgba(255,255,255,0.08);
  --text: #eef0f9;
  --text-dim: #9297ab;
  --text-faint: #676c82;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --success: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --shadow-glow: 0 0 60px rgba(124, 92, 255, 0.25);
}

* { 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.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p { color: var(--text-dim); margin: 0; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; margin: 0; }

.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Background decorations */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.bg-glow--1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: #7c5cff;
}
.bg-glow--2 {
  width: 500px; height: 500px;
  top: 400px; right: -150px;
  background: #22d3ee;
  opacity: 0.2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-grad);
  color: #08090f;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,92,255,0.4); }
.btn--ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.16);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8,9,15,0.7);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent-grad);
  color: #08090f;
  font-size: 1rem;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }

.nav__cta-mobile { display: none; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch__btn.is-active {
  background: var(--accent-grad);
  color: #08090f;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero { padding: 110px 0 90px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__subtitle {
  max-width: 640px;
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__stats {
  display: flex;
  gap: 56px;
  margin-top: 72px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  color: var(--text-faint);
  font-size: 0.88rem;
  margin-top: 4px;
  max-width: 160px;
}

/* Sections */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section__head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Demo chat */
.demo {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: center;
}
.phone {
  background: linear-gradient(180deg, #14172400, #14172400);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 16px;
  box-shadow: var(--shadow-glow);
  position: relative;
}
.phone__notch {
  width: 60px; height: 5px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  margin: 0 auto 14px;
}
.phone__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.phone__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.phone__name { font-weight: 600; font-size: 0.92rem; }
.phone__status { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--text-faint); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--online { background: var(--success); box-shadow: 0 0 8px var(--success); }

.phone__chat {
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 6px;
  scrollbar-width: thin;
}
.phone__chat::-webkit-scrollbar { width: 4px; }
.phone__chat::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg--bot {
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg--user {
  background: var(--accent-grad);
  color: #08090f;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.phone__typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  width: fit-content;
  margin-top: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.phone__typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typingBounce 1s infinite ease-in-out;
}
.phone__typing span:nth-child(2) { animation-delay: 0.15s; }
.phone__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.demo__hint { color: var(--text-dim); margin-bottom: 16px; font-size: 0.95rem; }
.demo__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.demo__btn {
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.demo__btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateX(4px);
}
.demo__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(124,92,255,0.6);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p { font-size: 0.9rem; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--featured {
  border-color: rgba(124,92,255,0.5);
  background: linear-gradient(180deg, rgba(124,92,255,0.08), var(--surface) 40%);
  box-shadow: 0 0 40px rgba(124,92,255,0.15);
}
.plan__ribbon {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--accent-grad);
  color: #08090f;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 12px; }
.plan__price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.plan__price span:first-child { font-size: 1rem; color: var(--text-faint); font-family: var(--font-body); font-weight: 500; }
.plan__price-old {
  text-decoration: line-through;
  color: var(--text-faint) !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  margin-right: 8px;
}
.plan__desc { font-size: 0.9rem; margin-bottom: 22px; min-height: 60px; }
.plan__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}
.plan__features li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}
.plan__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}
.pricing__note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.case__icon { font-size: 2rem; margin-bottom: 16px; }
.case h3 { font-size: 1.05rem; margin-bottom: 10px; }
.case p { font-size: 0.9rem; }
.cases__note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__info h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); margin: 14px 0; }
.contact__list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 0.95rem; }
.contact__list li a { color: var(--accent-2); font-weight: 600; transition: color 0.15s ease; }
.contact__list li a:hover { color: var(--text); }
.contact__whatsapp-btn { margin-top: 32px; }
.contact__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__row label { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.form__row input, .form__row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.form__row input:focus, .form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form__hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.logo--footer { justify-content: center; margin-bottom: 12px; }
.footer p { font-size: 0.88rem; margin-top: 6px; }
.footer__copy { color: var(--text-faint); margin-top: 18px; font-size: 0.78rem; }

/* Responsive */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: flex; }
  .demo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .hero { padding: 80px 0 60px; }
  .hero__stats { gap: 32px; }
  .section { padding: 70px 0; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav__actions .btn--primary.btn--sm { display: none; }
  .nav__actions { gap: 10px; }
  .nav__cta-mobile {
    display: block;
    margin-top: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #08090f;
    font-weight: 600;
    text-align: center;
  }
}
