:root {
  --color-bg: #ffffff;
  --color-bg-light: #f8fafc;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  
  --color-primary: #0f172a;
  --color-accent: #25D366;
  --color-accent-hover: #20BA59;
  
  --font-sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-diffuse: 0 20px 40px -15px rgba(0,0,0,0.05);

  /* Animation distance tokens — scaled down on mobile */
  --slide-dist: 30px;
  --slide-x-dist: 44px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.text-accent {
  color: var(--color-accent);
}

p {
  color: var(--color-text-muted);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--color-bg-light);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: white;
}

.btn-secondary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-text);
}

.btn-block {
  width: 100%;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
  }
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* Device Mockup Graphic */
.device-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1 / 2;
  background: var(--color-primary);
  border-radius: 2.5rem;
  padding: 0.5rem;
  box-shadow: var(--shadow-diffuse);
  transform: rotate(-5deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-mockup:hover {
  transform: rotate(0deg) scale(1.02);
}

.device-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-inner-content {
  text-align: center;
  color: white;
  opacity: 0.5;
}

.logo-large {
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.device-line {
  height: 4px;
  width: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0.5rem auto;
}

.device-line.short {
  width: 24px;
}

/* Sections */
.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  max-width: 32rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-diffuse);
}

.bento-item.highlight {
  background: var(--color-primary);
  color: white;
}

.bento-item.highlight p {
  color: rgba(255,255,255,0.8);
}

.bento-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.bento-item.highlight .bento-icon {
  background: rgba(255,255,255,0.1);
  color: white;
}

.bento-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Swap Highlight */
.swap-container {
  display: flex;
  justify-content: center;
}

.swap-content {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.swap-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.swap-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-inline: auto;
}

/* Location */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.location-details h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.location-subtitle {
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

.address-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.address-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.address-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.address-card address {
  font-style: normal;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.link-action {
  font-weight: 600;
  color: var(--color-primary);
}

.link-action:hover {
  text-decoration: underline;
}

.contact-card {
  background: var(--color-primary);
  color: white;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand p {
  margin-top: 0.5rem;
}

.footer-info p {
  margin-bottom: 0.25rem;
}

.copyright {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 768px) {
  .copyright {
    text-align: left;
  }
}

/* ═══════════════════════════════════════
   FLOATING WHATSAPP — LOCKED, DO NOT MODIFY
═══════════════════════════════════════ */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  background-color: var(--color-accent);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-soft 3s infinite;
}

.floating-wa svg {
  width: 2rem;
  height: 2rem;
}

.floating-wa:hover {
  transform: scale(1.1);
  animation: none;
}

.floating-tooltip {
  position: absolute;
  right: calc(100% + 1rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: right;
  transform: translateY(-50%) translateX(10px);
}

.floating-wa:hover .floating-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes pulse-soft {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ═══════════════════════════════════════
   ANIMATION SYSTEM
═══════════════════════════════════════ */

/* Mobile-scaled distances */
@media (max-width: 767px) {
  :root {
    --slide-dist: 18px;
    --slide-x-dist: 22px;
  }
}

/* Keyframes — directional variety */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(var(--slide-dist)); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bounce/overshoot: lands into place */
@keyframes slideUpBounce {
  0%   { opacity: 0; transform: translateY(var(--slide-dist)); }
  55%  { opacity: 1; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(calc(var(--slide-x-dist) * -1)); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(var(--slide-x-dist)); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromTop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scale with a subtle pop */
@keyframes scaleInBounce {
  0%   { opacity: 0; transform: scale(0.88); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─────────────────────────────────────────
   HERO ENTRANCE — auto-fires on page load
   animation-fill-mode: backwards keeps each
   element invisible during its delay period
───────────────────────────────────────── */
.hero-badge,
.hero-title-anim,
.hero-sub-anim,
.hero-cta-anim,
.hero-visual-anim {
  animation-fill-mode: backwards;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 1. Badge slides down from above */
.hero-badge {
  animation-name: slideFromTop;
  animation-duration: 0.5s;
  animation-delay: 0ms;
}

/* 2. Heading slides in from the left */
.hero-title-anim {
  animation-name: slideFromLeft;
  animation-duration: 0.65s;
  animation-delay: 90ms;
}

/* 3. Subtitle fades + rises */
.hero-sub-anim {
  animation-name: slideUp;
  animation-duration: 0.6s;
  animation-delay: 210ms;
}

/* 4. CTAs scale in with a small pop */
.hero-cta-anim {
  animation-name: scaleInBounce;
  animation-duration: 0.6s;
  animation-delay: 340ms;
  animation-timing-function: ease-out;
}

/* 5. Visual slides in from the right — opposite to text */
.hero-visual-anim {
  animation-name: slideFromRight;
  animation-duration: 0.75s;
  animation-delay: 160ms;
}

/* ─────────────────────────────────────────
   SCROLL ANIMATIONS
   JS adds .is-in when element enters viewport
   and removes it when it leaves, allowing replay
───────────────────────────────────────── */

/* Hidden until JS marks visible */
.sa { opacity: 0; }

/* Common properties when visible */
.sa.is-in {
  animation-duration: 0.65s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: both;
}

/* Animation type modifiers */
.sa-up.is-in     { animation-name: slideUp; }
.sa-bounce.is-in { animation-name: slideUpBounce; animation-duration: 0.75s; }
.sa-left.is-in   { animation-name: slideFromLeft; }
.sa-right.is-in  { animation-name: slideFromRight; }
.sa-scale.is-in  { animation-name: scaleInBounce; animation-duration: 0.65s; animation-timing-function: ease-out; }
.sa-fade.is-in   { animation-name: fadeIn; }

/* Stagger delay modifiers — desktop */
.sa.is-in.d1 { animation-delay: 100ms; }
.sa.is-in.d2 { animation-delay: 200ms; }
.sa.is-in.d3 { animation-delay: 300ms; }

/* Mobile: tighter stagger, no bento hover lift */
@media (max-width: 767px) {
  .sa.is-in.d1 { animation-delay: 70ms; }
  .sa.is-in.d2 { animation-delay: 140ms; }
  .sa.is-in.d3 { animation-delay: 210ms; }

  .bento-item:hover {
    transform: none;
  }
}

/* ─────────────────────────────────────────
   REDUCED MOTION — content stays visible,
   all directional movement + bounce removed
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-badge,
  .hero-title-anim,
  .hero-sub-anim,
  .hero-cta-anim,
  .hero-visual-anim {
    animation: none !important;
    opacity: 1;
  }

  .sa {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }

  .floating-wa {
    animation: none;
  }
}
