:root {
  --bg: #0d0d10;
  --bg-alt: #131316;
  --card: #18181c;
  --border: #2a2a2f;
  --text: #f2f2f2;
  --text-muted: #a0a0a8;
  --accent: #ff4d4d;
  --accent-dark: #c53030;
  --accent-soft: rgba(255, 77, 77, 0.12);
  --whatsapp: #25d366;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--whatsapp);
  color: #08130c;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 64px;
  background: radial-gradient(circle at top, var(--bg-alt), var(--bg) 70%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: #ff8080;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---------- Section shared ---------- */

section {
  padding: 64px 0;
}

section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.section-note {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
  font-style: italic;
  font-size: 0.95rem;
}

/* ---------- Cases / chat mockups ---------- */

.cases {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.case-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  position: relative;
  word-wrap: break-word;
}

.chat-in {
  align-self: flex-start;
  background: #26262c;
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-out {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-slow {
  background: #3a2a2a;
  color: #d8b4b4;
}

.chat-fast {
  background: #0f4536;
  color: #d8fbe9;
}

.chat-tag {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  opacity: 0.75;
  font-weight: 600;
}

.chat-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.chat-divider {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 10px 0 4px;
  font-weight: 700;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.service-featured {
  position: relative;
  grid-column: 1 / -1;
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--card) 60%);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 20px 40px -20px rgba(255, 77, 77, 0.4);
  padding: 32px 24px;
}

.service-featured h3 {
  font-size: 1.3rem;
}

.service-featured p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  color: #e8c9c9;
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #1a0505;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-featured {
    grid-column: 1 / -1;
  }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-box {
  max-width: 420px;
  margin: 0 auto;
}

.contact-alt {
  margin-top: 20px;
  font-size: 0.95rem;
}

.contact-alt a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-alt a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0 0 4px;
  font-size: 0.85rem;
}

.footer-note {
  color: #6b6b72;
  font-size: 0.78rem;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 50;
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 48px;
  }
  section {
    padding: 48px 0;
  }
}
