/* ===== Variables ===== */
:root {
  --navy: #1f3a4d;
  --navy-dark: #16293a;
  --teal: #22a884;
  --teal-dark: #1b8d6f;
  --teal-light: #e6f7f2;
  --ink: #1f2d38;
  --muted: #5d6b75;
  --bg: #ffffff;
  --bg-soft: #f5f8f9;
  --border: #e4ebee;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 58, 77, 0.08);
  --shadow-lg: 0 20px 50px rgba(31, 58, 77, 0.15);
  --wa: #25d366;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { width: min(1180px, 92%); margin: 0 auto; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px; font-family: inherit;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 2px solid transparent;
  transition: all .25s ease; white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(34,168,132,.35); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { color: var(--teal); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1eb858; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,211,102,.4); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--navy); }
.logo-icon { height: 44px; width: auto; display: block; }
.logo-light .logo-icon { height: 40px; }
.logo-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff; border-radius: 11px; font-size: 22px; font-weight: 900;
}
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; color: var(--ink); font-size: 15px; position: relative; }
.main-nav a::after {
  content: ''; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px;
  background: var(--teal); transition: width .25s;
}
.main-nav a:hover { color: var(--teal); }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; background: linear-gradient(160deg, #f0f9f6 0%, #eef4f7 60%, #fff 100%); padding: 70px 0 110px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.badge {
  display: inline-block; background: var(--teal-light); color: var(--teal-dark);
  padding: 7px 16px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.25; font-weight: 900; color: var(--navy); margin-bottom: 20px; }
.highlight { color: var(--teal); position: relative; }
.hero-sub { font-size: 18px; color: var(--muted); margin-bottom: 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; color: var(--muted); font-weight: 600; font-size: 14px; }

/* Hero visual */
.hero-visual { position: relative; height: 420px; }
.hero-glass {
  position: absolute; inset: 20px 0 20px 20px; background: #fff; border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.glass-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.glass-row b { color: var(--navy); font-size: 20px; }
.glass-row.small b { font-size: 16px; }
.bars { display: flex; gap: 12px; align-items: flex-end; height: 150px; padding: 10px 0; border-block: 1px solid var(--border); }
.bars i { flex: 1; background: linear-gradient(180deg, var(--teal), var(--teal-dark)); border-radius: 6px 6px 0 0; animation: grow 1s ease; }
@keyframes grow { from { height: 0 !important; } }
.hero-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; z-index: 3;
  animation: float 4s ease-in-out infinite;
}
.hero-card strong { display: block; font-size: 14px; color: var(--navy); }
.hero-card span { font-size: 12px; color: var(--teal); font-weight: 700; }
.mini-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--teal-light); border-radius: 10px; font-size: 20px; }
.card-1 { top: -10px; left: -10px; }
.card-2 { bottom: 10px; right: -20px; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%); }

/* ===== Trusted ===== */
.trusted { padding: 40px 0; border-bottom: 1px solid var(--border); text-align: center; }
.trusted p { color: var(--muted); margin-bottom: 18px; }
.trusted p strong { color: var(--teal); }
.trusted-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.trusted-logos span { font-weight: 800; font-size: 18px; color: #aeb9c0; transition: color .25s; }
.trusted-logos span:hover { color: var(--navy); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 55px; }
.eyebrow { color: var(--teal); font-weight: 800; font-size: 14px; letter-spacing: .5px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; color: var(--navy); margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ===== Modules ===== */
.modules { background: var(--bg-soft); }
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.module-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: all .25s; cursor: default;
}
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.m-icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px;
  background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 14px; margin-bottom: 16px;
}
.module-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.module-card p { font-size: 14px; color: var(--muted); }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { padding: 30px; border-radius: var(--radius); background: var(--bg-soft); transition: .25s; border: 1px solid transparent; }
.feature:hover { background: #fff; border-color: var(--border); box-shadow: var(--shadow); }
.f-ico { font-size: 34px; margin-bottom: 14px; }
.feature h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* ===== Industries ===== */
.industries { background: var(--navy); color: #fff; }
.industries .section-head h2 { color: #fff; }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.industry {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 26px 16px; text-align: center; font-size: 32px;
  display: flex; flex-direction: column; gap: 12px; align-items: center; transition: .25s;
}
.industry span { font-size: 15px; font-weight: 600; color: #d7e1e6; }
.industry:hover { background: var(--teal); transform: translateY(-5px); }
.industry:hover span { color: #fff; }

/* ===== Packages ===== */
.packages { background: var(--bg-soft); }
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.package {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px 30px;
  display: flex; flex-direction: column; position: relative; transition: .3s;
}
.package:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.package.featured { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.package.featured:hover { transform: scale(1.03) translateY(-4px); }
.pkg-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; padding: 5px 18px; border-radius: 50px; font-size: 13px; font-weight: 700;
}
.package h3 { font-size: 23px; color: var(--navy); margin-bottom: 8px; }
.pkg-desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; min-height: 42px; }
.pkg-list { list-style: none; margin-bottom: 28px; flex: 1; }
.pkg-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); color: var(--ink); font-size: 15px; }
.pkg-list li:last-child { border: none; }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; text-align: center; }
.cta-content { max-width: 720px; margin: 0 auto; }
.cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 16px; }
.cta p { font-size: 18px; color: #c4d2da; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.cta-phone { font-size: 15px; color: #aebcc5; }
.cta-phone strong { color: #fff; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #c4d2da; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 45px; }
.logo-light { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 320px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-bottom p { font-size: 14px; text-align: center; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed; bottom: 26px; left: 26px; z-index: 200;
  width: 60px; height: 60px; background: var(--wa); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.5); transition: transform .25s;
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===== Module detail page ===== */
.mod-hero { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, #fff), #fff); padding: 50px 0 70px; }
.back-link { display: inline-block; color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 26px; transition: color .2s; }
.back-link:hover { color: var(--teal); }
.mod-hero-inner { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.mod-hero-icon { width: 130px; height: 130px; display: grid; place-items: center; font-size: 64px; background: color-mix(in srgb, var(--c) 14%, #fff); border-radius: 30px; box-shadow: var(--shadow); }
.mod-hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; color: var(--navy); margin: 8px 0 16px; }
.mod-hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin-bottom: 26px; }
.module-card[href] { display: block; }
@media (max-width: 720px) {
  .mod-hero-inner { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .mod-hero-icon { margin: 0 auto; width: 100px; height: 100px; font-size: 50px; }
  .mod-hero .hero-cta { justify-content: center; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .modules-grid, .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .packages-grid { grid-template-columns: 1fr; }
  .packages-grid { max-width: 460px; margin: 0 auto; }
  .package.featured { transform: none; }
  .package.featured:hover { transform: translateY(-4px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .header-actions { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; right: 0; left: 0;
    background: #fff; padding: 20px; gap: 16px; box-shadow: var(--shadow); border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }
  .modules-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 80px; }
}
