:root{
  --w: 1100px;
  --nav-bg: #0f172a;
  --page-dark: #0b1220;
  --panel: #020617;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #334155;
  --brand: #2563eb;
  --brand-hover: 1.05;
  --radius: 14px;
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.7;
  color: #111;
  background: #fff;
}

section[id]{
  scroll-margin-top: 90px;
}

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

/* ---------------- Nav ---------------- */
.nav{
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.nav__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  min-height: 64px;
}

.nav__links{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__links a{
  color: var(--text);
  text-decoration: none;
  opacity: .95;
  transition: opacity .2s ease;
}

.nav__links a:hover{
  opacity: 1;
}

.nav__links a.active{
  text-decoration: underline;
}

.desktop-only{
  display: flex;
}

.mobile-only{
  display: none;
}

/* ---------------- Brand / Logo ---------------- */
.nav .brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav .brand__logo{
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav .brand__text{
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  font-weight: 800;
}

/* ---------------- Language Dropdown ---------------- */
.lang{
  position: relative;
}

.lang__btn{
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.lang__menu{
  position: absolute;
  right: 0;
  top: 110%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: none;
  min-width: 110px;
  overflow: hidden;
}

.lang__menu a{
  display: block;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
}

.lang__menu a:hover{
  background: #1e293b;
}

.lang:hover .lang__menu{
  display: block;
}

/* ---------------- Hamburger ---------------- */
.hamburger{
  background: none;
  border: none;
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span{
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ---------------- Mobile menu + overlay ---------------- */
.mobile-menu{
  display: none;
}

.menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 900;
}

.menu-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* ---------------- Hero ---------------- */
.hero{
  padding: 80px 0;
  background: var(--page-dark);
  color: #fff;
}

.hero h1{
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
}

.hero p{
  margin: 0 0 18px;
  opacity: .85;
  max-width: 70ch;
}

.hero__cta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------- Sections ---------------- */
.section{
  padding: 70px 0;
}

.section--alt{
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 28%),
    radial-gradient(circle at top right, rgba(34,197,94,.07), transparent 24%),
    radial-gradient(circle at bottom right, rgba(251,191,36,.08), transparent 28%),
    #f7f8fb;
}

.lead{
  max-width: 70ch;
  opacity: .9;
}

.section__head{
  margin-bottom: 28px;
}

.section__head h2{
  margin: 0 0 10px;
}

.section__head p{
  margin: 0;
  color: #444;
}

/* ---------------- Grid / Cards ---------------- */
.grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.card{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  padding: 18px;
  height: 100%;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
  backdrop-filter: blur(4px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #22c55e 40%,
    #f59e0b 75%,
    #ef4444 100%
  );
  opacity: .9;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.22);
}

.section:not(.section--alt) .card{
  background: #fbfcfe;
}

.card h3{
  margin: 0 0 8px;
}

.card p{
  margin: 0;
  opacity: .9;
}

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}

.btn:hover{
  filter: brightness(var(--brand-hover));
}

.btn--ghost{
  background: transparent;
  border: 1px solid rgba(226,232,240,.8);
  color: #fff;
}

.btn--small{
  padding: 8px 10px;
  border-radius: 10px;
}

/* ---------------- Forms ---------------- */
.form{
  max-width: 520px;
}

.form__row{
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

input,
textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;
  font: inherit;
}

input:focus,
textarea:focus{
  border-color: #999;
}

.muted{
  color: var(--muted);
  font-size: .9em;
}

/* ---------------- Alerts ---------------- */
.alert{
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.alert--error{
  background: #ffe7e7;
  border: 1px solid #ffb3b3;
}

.alert--success{
  background: #e9ffe7;
  border: 1px solid #b8ffb3;
}

/* ---------------- Footer ---------------- */
.footer{
  background: var(--panel);
  color: var(--text);
  padding: 32px 0 18px;
}

.footer__inner{
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer__left p,
.footer__left h3{
  margin-top: 0;
  margin-bottom: 10px;
}

.footer a{
  color: var(--text);
  text-decoration: none;
}

.footer a:hover{
  text-decoration: underline;
}

.footer__small{
  opacity: .8;
}

.footer__copyright{
  text-align: center;
  margin: 36px 0 0;
  width: 100%;
}

/* ---------------- WhatsApp floating ---------------- */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #22c55e;
  color: #0b0b0b;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  z-index: 999;
}

.wa-float:hover{
  filter: brightness(1.05);
}

/* ---------------- Pricing ---------------- */
section#pricing .container{
  max-width: 1100px;
}

section#pricing .pricing-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

/* pricing note flag */
.pricing-note{
  display: inline-block;
  margin: 14px 0 22px;
  padding: 14px 18px 14px 20px;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(37,99,235,.10) 0%,
    rgba(34,197,94,.10) 35%,
    rgba(245,158,11,.10) 70%,
    rgba(239,68,68,.10) 100%
  );
  color: #0f172a !important;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 700;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  backdrop-filter: blur(4px);
  animation: flagWiggle 3.2s ease-in-out infinite;
  transform-origin: left center;
  overflow: hidden;
}

.pricing-note::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #22c55e 35%,
    #f59e0b 70%,
    #ef4444 100%
  );
}
.pricing-note::after{
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  vertical-align: middle;
  box-shadow: 0 4px 10px rgba(37,99,235,.20);
}

section#pricing .pricing-card{
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96)) !important;
  border: 1px solid rgba(37,99,235,.10) !important;
  border-radius: 16px !important;
  padding: 22px !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.05) !important;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

section#pricing .pricing-card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #22c55e 35%,
    #f59e0b 70%,
    #ef4444 100%
  );
}

section#pricing .pricing-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(37,99,235,.12) !important;
  border-color: rgba(37,99,235,.22) !important;
}

section#pricing .pricing-card h3{
  margin: 0 0 10px !important;
  font-size: 1.35rem !important;
  line-height: 1.35 !important;
}

section#pricing .pricing-card__desc{
  margin: 0 0 14px !important;
  color: #444 !important;
  min-height: 52px !important;
}

section#pricing .price{
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 0 0 16px !important;
}

section#pricing .price__old{
  display: inline-block;
  color: #888;
  font-size: 16px;
  font-weight: 400;
  position: relative;
}

section#pricing .price__old::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #888;
}

section#pricing .price__new{
  display: inline-block !important;
  color: #111 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

section#pricing .pricing-card__list{
  margin: 0 0 22px !important;
  padding-left: 20px !important;
  color: #222 !important;
}

section#pricing .pricing-card__list li{
  margin-bottom: 8px !important;
}

section#pricing .pricing-card .btn{
  margin-top: auto !important;
  align-self: flex-start !important;
}

/* ---------------- Animations ---------------- */
@keyframes flagWiggle{
  0%, 100%{
    transform: rotate(0deg) translateX(0);
  }
  20%{
    transform: rotate(-0.5deg) translateX(0);
  }
  40%{
    transform: rotate(0.7deg) translateX(1px);
  }
  60%{
    transform: rotate(-0.4deg) translateX(0);
  }
  80%{
    transform: rotate(0.3deg) translateX(1px);
  }
}

/* ---------------- Responsive: Tablet ---------------- */
@media (max-width: 980px){
  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section#pricing .pricing-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ---------------- Responsive: Mobile ---------------- */
@media (max-width: 768px){
  .desktop-only{
    display: none !important;
  }

  .mobile-only{
    display: flex !important;
  }

  .hamburger{
    display: flex !important;
  }

  .nav__inner{
    gap: 10px;
    padding: 4px 0;
    min-height: 56px;
  }

  .nav .brand{
    gap: 8px;
  }

  .nav .brand__logo{
    height: 44px;
    width: auto;
  }

  .nav .brand__text{
    display: none;
  }

  .mobile-menu{
    position: fixed;
    top: 0;
    left: 0;
    width: min(72vw, 280px);
    height: 100vh;
    background: var(--panel);
    padding: 18px 16px;
    border-right: 2px solid rgba(226,232,240,.18);
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    transform: translateX(-110%);
    transition: transform .25s ease;
    z-index: 950;
  }

  .mobile-menu.open{
    transform: translateX(0);
  }

  .mobile-menu a,
  .mobile-menu a:visited{
    color: var(--text) !important;
    text-decoration: none !important;
  }

  .mobile-menu a{
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    opacity: .95;
  }

  .mobile-menu a:hover{
    background: #1e293b;
    opacity: 1;
  }

  .mobile-menu .btn{
    width: 100%;
    text-align: center;
    margin-top: 6px;
  }

  #langMobile .lang__menu{
    display: none;
  }

  .pricing-note{
    display: block;
    width: 100%;
    font-size: 14px;
    padding: 12px 14px 12px 16px;
    margin: 12px 0 18px;
  }

  .pricing-note::after{
    display: none;
  }
}

@media (min-width: 769px){
  .hamburger{
    display: none !important;
  }

  .nav__links.desktop-only{
    display: flex !important;
  }

  .mobile-menu{
    display: none !important;
  }

  .menu-overlay{
    display: none !important;
  }
}

/* ---------------- Small mobile ---------------- */
@media (max-width: 640px){
  section#pricing .pricing-grid{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px){
  .container{
    padding: 0 20px;
  }

  .grid{
    grid-template-columns: 1fr;
  }

  .nav .brand__logo{
    height: 38px;
  }
}

.no-scroll{
  overflow: hidden;
}