/* ============================================
   Upscales — institutional site
   Pure CSS, mobile-first, modern, responsive.
   ============================================ */

:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --wa: #25d366;
  --wa-2: #128c7e;
  --wa-3: #075e54;
  --primary: #0ea5e9;
  --primary-2: #6366f1;
  --accent: #a855f7;

  --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(37,211,102,.22), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(99,102,241,.22), transparent 55%),
               linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  --grad-brand: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #0ea5e9 100%);
  --grad-text:  linear-gradient(120deg, #25d366 0%, #0ea5e9 60%, #a855f7 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow:    0 4px 12px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.15), 0 8px 20px rgba(15,23,42,.08);

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p  { margin: 0; }

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

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(255,255,255,.7);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-brand);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(37,211,102,.35);
}
.brand-name { font-size: 1.1rem; }
.nav-links {
  display: none;
  gap: 28px;
  font-weight: 500;
  color: var(--text-soft);
}
.nav-links a:hover { color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37,211,102,.35), 0 4px 12px rgba(14,165,233,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(37,211,102,.45), 0 6px 14px rgba(14,165,233,.3); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  border-color: rgba(255,255,255,.18);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  color: #e2e8f0;
  overflow: hidden;
  isolation: isolate;
  padding: 110px 0 90px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: -2;
}
.hero-bg::before, .hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  z-index: -1;
}
.hero-bg::before { width: 420px; height: 420px; background: #25d366; top: -80px; right: -60px; }
.hero-bg::after  { width: 360px; height: 360px; background: #6366f1; bottom: -100px; left: -80px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { color: #f8fafc; margin: 14px 0 18px; }
.lead { color: #cbd5e1; font-size: 1.125rem; max-width: 56ch; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #e2e8f0;
  font-size: .875rem;
  border-radius: 999px;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 0 rgba(37,211,102,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.hero-trust {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #cbd5e1;
  font-size: .92rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--wa); }

/* phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  color: var(--text);
  transform: rotate(-1.5deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: rotate(-1.5deg) translateY(0); }
  50%     { transform: rotate(-1.5deg) translateY(-8px); }
}
.phone-top {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.phone-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.phone-name { font-weight: 700; }
.phone-status { font-size: .8rem; color: var(--text-mute); display: inline-flex; align-items: center; gap: 6px; }
.online { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); display: inline-block; }
.phone-chat {
  margin-top: 14px;
  background: #e6f0e6;
  background-image:
    radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 14px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 280px;
}
.msg {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0,0,0,.06);
  animation: pop .4s ease both;
}
.msg.in  { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msg.out { background: #dcf8c6; align-self: flex-end; border-top-right-radius: 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.typing { align-self: flex-start; background: #fff; padding: 10px 12px; border-radius: 12px; border-top-left-radius: 4px; display: inline-flex; gap: 4px; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .2; } 40% { opacity: 1; transform: translateY(-2px); } }

/* ===== SECTIONS ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-2); }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.section-head p { color: var(--text-soft); margin-top: 14px; font-size: 1.05rem; }
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--wa-2);
  margin-bottom: 12px;
  padding: 6px 12px;
  background: rgba(37,211,102,.1);
  border-radius: 999px;
}

/* ===== GRID ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37,211,102,.15), rgba(14,165,233,.15));
  color: var(--wa-2);
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text-soft); font-size: .95rem; }

/* ===== CHIPS ===== */
.chips .chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.chip-icon { font-size: 1.4rem; }

/* ===== STEPS ===== */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-num {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(37,211,102,.3);
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--text-soft); font-size: .98rem; }

/* ===== BENEFITS ===== */
.benefits .benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefits .benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit-icon { font-size: 1.8rem; margin-bottom: 12px; }
.benefit h3 { margin-bottom: 6px; }
.benefit p { color: var(--text-soft); font-size: .95rem; }

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 96px 0;
  color: #f8fafc;
  isolation: isolate;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 350px at 20% 0%, rgba(37,211,102,.35), transparent 60%),
    radial-gradient(700px 350px at 90% 100%, rgba(14,165,233,.35), transparent 60%),
    linear-gradient(135deg, #0b1220, #0f172a);
}
.cta-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta p { margin: 18px auto 32px; color: #cbd5e1; font-size: 1.08rem; max-width: 56ch; }

/* ===== FOOTER ===== */
.footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 36px 0;
  font-size: .92rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-weight: 700;
}
.footer-legal { margin: 0; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .nav-links { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding: 130px 0 110px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
