/* ===== Design tokens ===== */
:root {
  --paper: #f7faf7;
  --paper-alt: #e9f5ec;
  --ink: #0b1f16;
  --ink-muted: #5e6f66;
  --panel: #0b141a;
  --panel-2: #17212b;
  --panel-line: rgba(37, 211, 102, 0.32);
  --wa-1: #dcf8c6;
  --wa-2: #25d366;
  --wa-3: #075e54;
  --wa-grad: linear-gradient(135deg, var(--wa-1) 0%, var(--wa-2) 55%, var(--wa-3) 100%);
  --wa-text-grad: linear-gradient(135deg, #34d399 0%, #16a34a 55%, #0f7a3d 100%);
  --green: #25d366;
  --line: rgba(11, 31, 22, 0.1);
  --card-bg: #ffffff;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-head: "Cabinet Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --container-w: 1080px;
  --shadow-wa: 0 10px 30px rgba(7, 94, 84, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }

.icon {
  width: 1em; height: 1em;
  display: inline-block; flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1040px; }

/* ===== Background grid ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(18, 18, 20, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 18, 20, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black 40%, transparent 90%);
}

/* ===== Nav ===== */
.nav-wrap { padding: 22px 0; }
.nav { display: flex; align-items: center; justify-content: center; }
.logo { display: flex; align-items: center; color: var(--ink); }
.logo-svg { height: 22px; width: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700;
  border-radius: 999px; white-space: nowrap; cursor: pointer; border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity .18s ease;
}
.btn-wa {
  background: var(--wa-grad);
  color: #06210f;
  box-shadow: var(--shadow-wa);
}
.btn-wa:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(7, 94, 84, 0.45); }
.btn-wa:active { transform: translateY(0); }

.btn-dark {
  background: var(--panel);
  color: #fff;
  border: 1px solid var(--panel-line);
}
.btn-dark:hover { background: #1c1c20; }

.btn-whatsapp { background: var(--green); color: #06210f; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35); }
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45); }

.btn-ghost-line {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); padding: 13px 26px;
}
.btn-ghost-line:hover { border-color: var(--ink); background: rgba(18,18,20,0.03); }

.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-md { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-dots { display: none; align-items: center; gap: 6px; }
.btn-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: .35;
  animation: btnDotPulse 1s infinite ease-in-out;
}
.btn-dots span:nth-child(2) { animation-delay: .15s; }
.btn-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes btnDotPulse {
  0%, 80%, 100% { opacity: .35; transform: scale(0.75); }
  40% { opacity: 1; transform: scale(1); }
}
.btn.is-loading { cursor: wait; pointer-events: none; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-dots { display: inline-flex; }

/* ===== Hero / headline ===== */
.hero { text-align: center; padding: 44px 24px 20px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-bg); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 26px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa-2); box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.22); }

.hero-title {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2; letter-spacing: -0.01em;
  max-width: 980px; margin: 0 auto;
}

.hero-title-bold { font-weight: 700; }

.reveal-word { display: inline-block; opacity: 0; transform: translateY(0.35em); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-word.in { opacity: 1; transform: none; }

.hl {
  background: var(--wa-text-grad);
  -webkit-background-clip: text; background-clip: text;
  color: #16a34a;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.hero-sub {
  max-width: 640px; margin: 20px auto 0;
  font-size: 17px; color: var(--ink-muted);
}

.hero-sub-tight { line-height: 1.35; }

.hero-bullets {
  max-width: 560px; margin: 26px auto 0;
  display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.hero-bullets li {
  position: relative; padding-left: 26px;
  font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.hero-bullets li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--wa-grad); box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.hero-cta-line {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px); color: #16a34a;
  max-width: 560px; margin: 20px auto 0;
}

/* ===== Video card ===== */
.video-card {
  position: relative;
  max-width: 760px; margin: 36px auto 0;
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(18,18,20,0.22);
  border: 1px solid var(--panel-line);
}
.video-card video, .video-card img.video-poster {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}
.video-card-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 18px 22px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  color: #fff; text-align: center;
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(13px, 2vw, 16px); line-height: 1.35;
  z-index: 2; pointer-events: none;
}
.video-card-topbar small {
  display: block; font-family: var(--font-body); font-weight: 700;
  letter-spacing: .05em; color: var(--wa-2); font-size: 11px; margin-bottom: 4px;
}
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--wa-grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(7,94,84,0.5);
  cursor: pointer; border: none; z-index: 3;
  transition: transform .18s ease;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.play-btn .icon { width: 26px; height: 26px; color: #06210f; fill: #06210f; stroke: none; margin-left: 4px; }

.video-card-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 18px; display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent);
  z-index: 2; pointer-events: none;
}
.video-tag {
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.14); padding: 4px 10px; border-radius: 999px;
}

.video-cta-wrap { text-align: center; margin: 30px auto 0; }

/* ===== Testimonial screenshot grid ===== */
.testimonial-section { max-width: 760px; margin: 40px auto 0; text-align: center; }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 720px; margin: 0 auto;
}
.testimonial-card {
  background: var(--card-bg); border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 45px rgba(11, 31, 22, 0.16);
}
.testimonial-card img { width: 100%; height: auto; background: var(--paper-alt); display: block; }
.testimonial-card figcaption {
  padding: 14px 16px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-muted); line-height: 1.4; text-align: left;
}

/* Below 700px: swipeable horizontal carousel instead of a stacked grid */
@media (max-width: 700px) {
  .testimonial-grid {
    display: flex; grid-template-columns: none; max-width: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 16px; padding: 4px 32px 10px; margin: 0 -24px;
    scrollbar-width: none;
  }
  .testimonial-grid::-webkit-scrollbar { display: none; }
  .testimonial-card {
    flex: 0 0 78%; scroll-snap-align: center;
  }
}

/* ===== Video placeholder (no video wired up yet) ===== */
.video-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background:
    radial-gradient(60% 90% at 15% 15%, rgba(37,211,102,.22) 0%, rgba(37,211,102,0) 55%),
    linear-gradient(135deg, #17212b 0%, #0b141a 100%);
  display: flex; align-items: center; justify-content: center;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 15, 12, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-card {
  width: 100%; max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  position: relative;
  transform: translateY(16px) scale(.98); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  box-shadow: 0 40px 90px rgba(0,0,0,0.5);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal-close:hover { background: rgba(255,255,255,0.16); }

.modal-title {
  font-family: var(--font-head); font-weight: 500; color: #fff;
  font-size: clamp(20px, 3vw, 24px); line-height: 1.3; text-align: center;
  margin-bottom: 24px;
}
.modal-title .hl { display: inline; }

.field {
  width: 100%; margin-bottom: 12px;
  background: #202c33; border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm); padding: 15px 18px;
  color: #fff; font-size: 15px; font-family: var(--font-body);
}
.field::placeholder { color: #86a39c; }
.field:focus { outline: none; border-color: var(--wa-2); }

.field-error { border-color: #e5484d !important; }
.field-error-msg { color: #ff8a8f; font-size: 12.5px; margin: -6px 0 10px 4px; display: none; }
.field-error-msg.show { display: block; }

.form-note { color: #86868c; font-size: 12.5px; text-align: center; margin-top: 14px; }

/* ===== Phone field with country-code picker ===== */
.phone-field { position: relative; margin-bottom: 12px; }

.country-trigger {
  position: absolute; left: 6px; top: 6px; bottom: 6px;
  display: flex; align-items: center; gap: 6px;
  background: #2a3942; border: none; border-radius: calc(var(--radius-sm) - 4px);
  padding: 0 10px; cursor: pointer; color: #fff; font-size: 14px; font-weight: 600;
  transition: background .15s ease;
}
.country-trigger:hover { background: #34454f; }
.country-flag { font-size: 16px; line-height: 1; }
.country-dial { white-space: nowrap; }
.country-caret { width: 13px; height: 13px; color: #8fa39c; transition: transform .15s ease; }
.country-trigger[aria-expanded="true"] .country-caret { transform: rotate(180deg); }

.phone-field .phone-input { padding-left: 98px; margin-bottom: 0; }

.country-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  width: 270px; max-height: 280px;
  background: #202c33; border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm); box-shadow: 0 20px 45px rgba(0,0,0,.55);
  z-index: 20; display: none; flex-direction: column; overflow: hidden;
}
.country-dropdown.open { display: flex; }

.country-search-wrap { padding: 10px; border-bottom: 1px solid var(--panel-line); flex-shrink: 0; }
.country-search {
  width: 100%; background: #2a3942; border: 1px solid var(--panel-line);
  border-radius: 10px; padding: 9px 12px; color: #fff; font-size: 13.5px; font-family: var(--font-body);
}
.country-search::placeholder { color: #86a39c; }
.country-search:focus { outline: none; border-color: var(--wa-2); }

.country-list { list-style: none; overflow-y: auto; padding: 6px; margin: 0; }
.country-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  color: #eaeaec; font-size: 13.5px;
}
.country-option:hover, .country-option.active { background: #2a3942; }
.country-option .country-flag { font-size: 16px; }
.country-option .country-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-option .country-dial-code { color: #8fa39c; font-size: 12.5px; flex-shrink: 0; }
.country-empty { padding: 16px; text-align: center; color: #86a39c; font-size: 13px; }

/* ===== Sections / cards shared ===== */
.section { padding: 56px 0; }
.section-alt { background: var(--paper-alt); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wa-3); text-align: center; margin-bottom: 10px;
}

/* ===== Footer ===== */
.footer { padding: 30px 0 60px; text-align: center; }
.footer-copy { color: var(--ink-muted); font-size: 13px; margin-top: 12px; }

/* ===== Utility ===== */
.mt-0 { margin-top: 0 !important; }
.hidden { display: none !important; }

@media (max-width: 560px) {
  .video-card { border-radius: var(--radius-md); }
  .modal-card { padding: 28px 22px 24px; }
}
