/* === Reset & Tokens === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0D7377;
  --primary-dark: #095557;
  --primary-light: #e8f4f4;
  --accent: #F5A623;
  --accent-light: #fff4e0;
  --bg: #FAFAF7;
  --bg-alt: #F2F1EC;
  --text: #1A1A1A;
  --text-mid: #444;
  --text-light: #666;
  --wa: #25D366;
  --wa-hover: #1ebe57;
  --white: #fff;
  --red-light: #fff0f0;
  --red: #e53e3e;
  --green-light: #f0fdf4;
  --green: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* stagger cards */
.apps-grid .app-card:nth-child(1) { transition-delay: 0.0s; }
.apps-grid .app-card:nth-child(2) { transition-delay: 0.06s; }
.apps-grid .app-card:nth-child(3) { transition-delay: 0.12s; }
.apps-grid .app-card:nth-child(4) { transition-delay: 0.18s; }
.apps-grid .app-card:nth-child(5) { transition-delay: 0.24s; }
.apps-grid .app-card:nth-child(6) { transition-delay: 0.30s; }
.apps-grid .app-card:nth-child(7) { transition-delay: 0.36s; }
.apps-grid .app-card:nth-child(8) { transition-delay: 0.42s; }
.apps-grid .app-card:nth-child(9) { transition-delay: 0.48s; }
.apps-grid .app-card:nth-child(10) { transition-delay: 0.54s; }

/* === Nav === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(250,250,247,0.97);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 50px;
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--wa-hover); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 28px;
  gap: 20px;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}
.mobile-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wa);
  color: var(--white) !important;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  margin-top: 4px;
  font-size: 1rem;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,115,119,0.92) 0%,
    rgba(9,85,87,0.88) 40%,
    rgba(26,26,26,0.80) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 140px 0 80px;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.2);
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #ffd97a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-ctas { margin-bottom: 56px; }

.hero-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-proof-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.hero-proof-item span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.hero-proof-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* === Buttons === */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-wa::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.5s, height 0.5s;
}
.btn-wa:hover::before { width: 300px; height: 300px; }
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,0.35); }
.btn-wa:active { transform: translateY(0); }

.btn-wa-lg { font-size: 1.05rem; padding: 16px 36px; }
.btn-wa-sm { font-size: 0.88rem; padding: 11px 24px; justify-content: center; width: 100%; }
.btn-wa-footer { font-size: 0.9rem; padding: 12px 28px; }

/* === Callout === */
.callout {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.callout-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.04);
}
.callout-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-light);
  color: var(--red);
  border-radius: 50%;
}
.callout-icon-green {
  background: var(--primary-light);
  color: var(--primary);
}
.callout-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.callout-text p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* === Sections === */
.section { padding: 100px 0; }
.section-dark { background: var(--text); }

.section-header { text-align: center; margin-bottom: 56px; }

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-title-light { color: var(--white); }

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.section-sub-light { color: rgba(255,255,255,0.6); }

/* === App Cards === */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.app-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 14px;
}
.app-icon { font-size: 1.5rem; }
.app-badge-once {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 50px;
}
.app-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.app-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.app-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.app-price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  vertical-align: super;
  margin-right: 1px;
}

/* === Comparison === */
.comparison {
  padding: 100px 0;
  background: var(--bg-alt);
}
.comparison-inner { text-align: center; }
.comparison-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.comparison-them, .comparison-us {
  padding: 36px 32px;
  border-radius: var(--radius);
}
.comparison-them {
  background: var(--red-light);
  border: 1px solid rgba(229,62,62,0.15);
}
.comparison-us {
  background: var(--green-light);
  border: 1px solid rgba(22,163,74,0.15);
}
.comparison-them h3, .comparison-us h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comparison-them h3 { color: var(--red); }
.comparison-us h3 { color: var(--green); }

.comparison-them ul, .comparison-us ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comparison-them li, .comparison-us li {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.x-mark {
  font-weight: 800;
  color: var(--red);
  font-size: 1rem;
  flex-shrink: 0;
}
.check-mark {
  font-weight: 800;
  color: var(--green);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.comparison-total {
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 1rem !important;
}

/* === Service Cards === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-img { transform: scale(1.05); }
.service-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.service-body p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

/* === About === */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  pointer-events: none;
}
.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-img-wrap:hover .about-img { transform: scale(1.03); }

.about-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.about-content p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.about-content .btn-wa-lg { margin-top: 12px; }

/* === Footer === */
.footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 56px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; gap: 40px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.5; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.6;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* === Floating WhatsApp === */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  z-index: 90;
  transition: all var(--transition);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.wa-float-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* === Responsive === */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 40px; }
  .about-img { height: 320px; }
  .comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; }
  .hero-inner { padding: 120px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-proof { gap: 20px; }
  .hero-proof-divider { display: none; }
  .hero-proof-item strong { font-size: 1.2rem; }

  .callout { margin-top: -24px; }
  .callout-inner {
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
  }
  .callout-icon { width: 56px; height: 56px; }
  .callout-text h2 { font-size: 1.25rem; }
  .callout-text p { font-size: 0.95rem; }

  .section { padding: 72px 0; }
  .apps-grid { grid-template-columns: 1fr; gap: 16px; }

  .about-img { height: 280px; }
  .about-content h2 { font-size: 1.5rem; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .wa-float { bottom: 16px; right: 16px; width: 56px; height: 56px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-badge { font-size: 0.78rem; padding: 6px 18px; }
  .app-card { padding: 24px 20px; }
  .app-price { font-size: 1.7rem; }
  .btn-wa-lg { padding: 14px 28px; font-size: 0.95rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float-pulse { animation: none; }
  .hero-img, .about-img, .service-img { transition: none; }
}
