/* ===== Tokens ===== */
:root{
  --bg:#F8F9FB;
  --surface:#FFFFFF;
  --text:#1A1D23;
  --text-muted:#5B6270;
  --border:#E7E9EE;
  --accent:#4F46E5;
  --accent-dark:#3E37C4;
  --accent-soft:#EEEDFD;
  --shadow-sm:0 1px 2px rgba(20,20,43,.04), 0 1px 1px rgba(20,20,43,.03);
  --shadow-md:0 8px 24px rgba(20,20,43,.08);
  --shadow-lg:0 24px 60px rgba(20,20,43,.14);
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;
  --container:1160px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}

/* ===== Page loader ===== */
.loader{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  background:var(--bg);
  transition:opacity .4s ease, visibility .4s ease;
}
.loader-mark{
  font-weight:800;
  font-size:1.6rem;
  letter-spacing:-.02em;
  animation:loader-pulse 1.1s ease-in-out infinite;
}
.loader-mark-css{color:var(--accent);}
.loader-mark-hr{color:var(--text);}
.loader-bar{
  width:120px;
  height:4px;
  border-radius:999px;
  background:var(--border);
  overflow:hidden;
}
.loader-bar-fill{
  width:40%;
  height:100%;
  border-radius:999px;
  background:var(--accent);
  animation:loader-slide 1.1s ease-in-out infinite;
}
.loader.loader-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
@keyframes loader-pulse{
  0%, 100%{opacity:1;}
  50%{opacity:.45;}
}
@keyframes loader-slide{
  0%{transform:translateX(-120%);}
  50%{transform:translateX(60%);}
  100%{transform:translateX(220%);}
}
@media (prefers-reduced-motion: reduce){
  .loader-mark, .loader-bar-fill{animation:none;}
}
a{color:inherit;text-decoration:none;}
h1,h2,h3{line-height:1.15;margin:0 0 .5em;font-weight:700;letter-spacing:-.02em;}
p{margin:0 0 1em;color:var(--text-muted);}

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

.eyebrow{
  display:inline-block;
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:12px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:600;
  font-size:1rem;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--accent);
  color:#fff;
  box-shadow:var(--shadow-md);
}
.btn-primary:hover{background:var(--accent-dark); transform:translateY(-2px);}
.btn-ghost{
  background:transparent;
  color:var(--text);
  border:1.5px solid var(--border);
}
.btn-ghost:hover{border-color:var(--accent); color:var(--accent); transform:translateY(-2px);}
.btn-sm{padding:10px 20px; font-size:.9rem;}
.btn-lg{padding:16px 34px; font-size:1.05rem;}

/* ===== Nav ===== */
.nav{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(248,249,251,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.nav.scrolled{
  background:rgba(255,255,255,.9);
  border-bottom-color:var(--border);
  box-shadow:var(--shadow-sm);
}
.nav-inner{
  display:flex;
  align-items:center;
  gap:24px;
  height:72px;
}
.brand{
  display:flex;
  align-items:baseline;
  gap:2px;
  font-weight:800;
  font-size:1.25rem;
  margin-right:auto;
}
.brand-mark{color:var(--accent);}
.nav-menu{
  display:flex;
  align-items:center;
  gap:24px;
}
.nav-links{
  display:flex;
  gap:28px;
  align-items:center;
}
.nav-links a{
  font-weight:500;
  font-size:.95rem;
  color:var(--text-muted);
  transition:color .15s ease;
}
.nav-links a:hover{color:var(--text);}
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px;
  height:38px;
  background:none;
  border:none;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px;
  background:var(--text);
  border-radius:2px;
}

/* ===== Hero ===== */
.hero{
  padding:72px 0 88px;
  min-height:calc(100vh - 72px);
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
  width:100%;
}
.hero h1{
  font-size:clamp(2.1rem, 4vw, 3.2rem);
}
.hero-sub{
  font-size:1.1rem;
  max-width:52ch;
}
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:28px 0 24px;
}
.hero-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:.85rem;
  color:var(--text-muted);
  font-weight:500;
}

/* Hero mock dashboard */
.hero-visual{position:relative; padding:36px 20px 64px;}
.hero-glow{
  position:absolute;
  inset:-40px;
  background:radial-gradient(60% 60% at 60% 30%, var(--accent-soft), transparent 70%);
  filter:blur(10px);
  z-index:0;
}
/* Hero entrance animation */
@keyframes rise-up{
  from{opacity:0; transform:translateY(36px);}
  to{opacity:1; transform:translateY(0);}
}
.laptop-mock, .hero-float-card, .phone-mock{
  animation:rise-up .8s cubic-bezier(.16,1,.3,1) both;
}
.laptop-mock{animation-delay:.15s;}
.hero-float-card{animation-delay:.45s;}
.phone-mock{animation-delay:.6s;}
@media (prefers-reduced-motion: reduce){
  .laptop-mock, .hero-float-card, .phone-mock{animation:none;}
}

/* Laptop mockup (photo composite) */
.laptop-mock{
  position:relative;
  z-index:1;
  max-width:620px;
  margin:0 auto;
}
.laptop-photo{
  display:block;
  width:100%;
  height:auto;
}

.hero-float-card{
  position:absolute;
  z-index:2;
  left:-8px;
  bottom:20px;
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg);
  padding:14px 18px;
}
.hero-float-icon{
  width:34px;
  height:34px;
  flex-shrink:0;
  border-radius:50%;
  background:#12B76A;
  color:#fff;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-float-title{font-weight:700; font-size:.9rem;}
.hero-float-sub{font-size:.78rem; color:var(--text-muted);}
.hero-float-icon-blue{background:var(--accent);}
.hero-float-card-top{
  left:auto;
  right:4%;
  bottom:auto;
  top:2%;
  animation-delay:.3s;
}

/* Phone mockup (real iPhone photo + live HTML overlay) */
.phone-mock{
  position:absolute;
  z-index:3;
  right:6%;
  bottom:-56px;
  width:168px;
}
.phone-photo{
  display:block;
  width:100%;
  height:auto;
  position:relative;
  z-index:1;
}
.phone-island{
  position:absolute;
  z-index:3;
  left:38.1%;
  top:4%;
  width:22.3%;
  height:3.5%;
  background:#0B0B0C;
  border-radius:999px;
}
.phone-screen{
  position:absolute;
  z-index:2;
  left:10%;
  top:3.2%;
  width:78.5%;
  height:92.2%;
  padding:9% 8% 6%;
  overflow:hidden;
}
.phone-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.58rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:16px;
}
.phone-status-dots{display:flex; gap:2px;}
.phone-status-dots span{
  width:3px; height:3px; border-radius:50%;
  background:var(--text);
  display:inline-block;
}
.phone-app-title{
  font-size:.72rem;
  font-weight:700;
  margin-bottom:8px;
}
.phone-home-indicator{
  position:absolute;
  bottom:6px;
  left:50%;
  transform:translateX(-50%);
  width:56px;
  height:4px;
  border-radius:3px;
  background:var(--text);
  opacity:.85;
}
.phone-stat-row{
  display:flex;
  gap:6px;
  margin-bottom:10px;
}
.phone-stat{
  flex:1;
  background:var(--accent-soft);
  border-radius:8px;
  padding:6px 8px;
  display:flex;
  flex-direction:column;
}
.phone-stat-value{font-size:.85rem; font-weight:800; color:var(--accent);}
.phone-stat-label{font-size:.56rem; color:var(--text-muted); font-weight:600;}
.phone-list{display:flex; flex-direction:column; gap:6px;}
.phone-list-item{
  display:flex;
  align-items:center;
  gap:6px;
  background:var(--bg);
  border-radius:7px;
  padding:6px 7px;
}
.phone-list-dot{
  width:6px; height:6px; border-radius:50%;
  background:#F59E0B;
  flex-shrink:0;
}
.phone-list-dot-green{background:#12B76A;}
.phone-list-text{font-size:.58rem; font-weight:600; flex:1;}
.phone-tag{
  font-size:.5rem;
  font-weight:700;
  color:#B54708;
  background:#FEF0C7;
  border-radius:999px;
  padding:2px 6px;
}
.phone-tag-green{color:#027A48; background:#D1FADF;}

/* ===== Section head ===== */
.section-head{
  max-width:640px;
  margin:0 auto 48px;
  text-align:center;
}
.section-head h2{font-size:clamp(1.7rem, 3vw, 2.3rem);}
.section-head p{font-size:1.05rem;}

/* ===== Features ===== */
.features{padding:100px 0;}
.feature-category{margin-bottom:44px;}
.feature-category:last-of-type{margin-bottom:0;}
.feature-category-title{
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin:0 0 18px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border);
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.feature-grid-4{grid-template-columns:repeat(4, 1fr);}
.feature-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:28px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.feature-card-highlight{
  background:linear-gradient(160deg, var(--accent-soft), var(--surface) 60%);
  border-color:var(--accent-soft);
}
.feature-icon{
  width:46px;height:46px;
  border-radius:12px;
  background:var(--accent-soft);
  color:var(--accent);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;
}
.feature-icon svg{width:22px;height:22px;}
.feature-card h3{font-size:1.08rem; margin-bottom:8px;}
.feature-card p{font-size:.92rem; margin:0;}

.custom-callout{
  margin-top:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  background:var(--surface);
  border:1px dashed var(--border);
  border-radius:var(--radius-md);
  padding:28px 32px;
}
.custom-callout-text h3{font-size:1.05rem; margin-bottom:4px;}
.custom-callout-text p{font-size:.92rem; margin:0; max-width:54ch;}
.custom-callout .btn{flex-shrink:0;}

/* ===== Trust & Security ===== */
.trust{padding:100px 0; background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.trust-card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:28px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.trust-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.trust-icon{
  width:46px;height:46px;
  border-radius:12px;
  background:#ECFDF3;
  color:#12B76A;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;
}
.trust-icon svg{width:22px;height:22px;}
.trust-card h3{font-size:1.08rem; margin-bottom:8px;}
.trust-card p{font-size:.92rem; margin:0;}

/* ===== Demo ===== */
.demo{padding:100px 0; background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  max-width:900px;
  margin:0 auto 48px;
}
.step{text-align:center; padding:0 12px;}
.step-num{
  width:40px;height:40px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;
}
.step h3{font-size:1.05rem;}
.step p{font-size:.92rem;}
.demo-cta{text-align:center;}

/* ===== Who we are ===== */
.about{padding:80px 0;}
.about-inner{
  max-width:640px;
  margin:0 auto;
  text-align:center;
}
.about-text h2{font-size:clamp(1.5rem, 2.6vw, 2rem);}
.about-text p{font-size:1.02rem; margin-bottom:28px;}
.about-text .btn svg{margin-left:2px;}

/* ===== Book ===== */
.book{
  padding:100px 0;
  text-align:center;
}
.book-inner{max-width:560px; margin:0 auto;}
.book h2{font-size:clamp(1.7rem,3vw,2.3rem);}
.book p{font-size:1.05rem; margin-bottom:32px;}

.book-form{text-align:left;}
.book-form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
.book-field{display:flex; flex-direction:column; gap:6px;}
.book-field-full{margin-bottom:20px;}
.book-field label{font-size:.85rem; font-weight:600; color:var(--text);}
.book-field input,
.book-field textarea{
  font-family:inherit;
  font-size:.95rem;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--surface);
  color:var(--text);
  resize:vertical;
}
.book-field input:focus,
.book-field textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.book-form .btn{width:100%; margin-top:4px;}
.book-form-status{
  margin:14px 0 0;
  font-size:.9rem;
  font-weight:600;
  min-height:1.2em;
}
.book-form-status.success{color:#12B76A;}
.book-form-status.error{color:#D92D20;}
.book-form-recaptcha-note{
  margin:10px 0 0;
  font-size:.76rem;
  color:var(--text-muted);
}
.book-form-recaptcha-note a{color:var(--text-muted); text-decoration:underline;}

/* Google auto-injects a floating "protected by reCAPTCHA" badge (bottom-right,
   fixed position) that overlaps the WhatsApp button. Hiding it is allowed by
   Google's terms as long as the equivalent disclosure text is shown visibly
   elsewhere — which .book-form-recaptcha-note above does. */
.grecaptcha-badge{visibility:hidden;}

/* ===== WhatsApp button ===== */
.whatsapp-btn{
  position:fixed;
  z-index:900;
  right:24px;
  bottom:24px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-lg);
  transition:transform .15s ease;
  animation:whatsapp-breathe 2.6s ease-in-out infinite;
}
.whatsapp-btn:hover{transform:scale(1.08);}
.whatsapp-btn::before,
.whatsapp-btn::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:#25D366;
  z-index:-1;
  pointer-events:none;
  animation:whatsapp-ring 2.6s ease-out infinite;
}
.whatsapp-btn::after{animation-delay:1.3s;}
@keyframes whatsapp-breathe{
  0%, 100%{transform:scale(1);}
  50%{transform:scale(1.06);}
}
@keyframes whatsapp-ring{
  0%{opacity:.45; transform:scale(1);}
  100%{opacity:0; transform:scale(1.9);}
}
@media (prefers-reduced-motion: reduce){
  .whatsapp-btn{animation:none;}
  .whatsapp-btn::before, .whatsapp-btn::after{animation:none; display:none;}
}

/* ===== Footer ===== */
.footer{padding:48px 0; border-top:1px solid var(--border);}
.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
}
.footer .brand{margin:0;}
.footer-contact{font-size:.9rem; margin:0;}
.footer-copy{font-size:.82rem; color:var(--text-muted); margin:0;}
.footer-copy a{color:var(--text); font-weight:600; text-decoration:underline; text-underline-offset:2px;}
.footer-copy a:hover{color:var(--accent);}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .hero{min-height:auto;}
  .hero-inner{grid-template-columns:1fr;}
  .hero-visual{order:-1; margin-bottom:36px;}
  .hero-float-card{left:12px; right:12px; bottom:-20px;}
  .hero-float-card-top{display:none;}
  .phone-mock{display:none;}
  .feature-grid{grid-template-columns:repeat(2,1fr);}
  .trust-grid{grid-template-columns:repeat(2,1fr);}
  .steps{grid-template-columns:1fr; max-width:360px;}
}

@media (max-width: 640px){
  .nav-menu{
    position:absolute;
    top:72px;
    left:0;right:0;
    background:var(--surface);
    border-bottom:1px solid transparent;
    flex-direction:column;
    align-items:flex-start;
    padding:0 24px;
    gap:16px;
    display:flex;
    max-height:0;
    opacity:0;
    overflow:hidden;
    pointer-events:none;
    transition:max-height .35s ease, opacity .25s ease, padding .35s ease, border-color .35s ease;
  }
  .nav-menu.open{
    max-height:420px;
    opacity:1;
    padding:18px 24px;
    border-bottom-color:var(--border);
    pointer-events:auto;
  }
  .nav-links{flex-direction:column; align-items:flex-start; gap:14px;}
  .nav-toggle{display:flex;}
  .feature-grid{grid-template-columns:1fr;}
  .trust-grid{grid-template-columns:1fr;}
  .book-form-row{grid-template-columns:1fr;}
  .hero{padding:56px 0 64px;}
  .features, .trust, .demo, .book{padding:64px 0;}
  .whatsapp-btn{right:16px; bottom:16px; width:50px; height:50px;}
}
