/* =============================================
   PROFITIZE.AGENCY — Premium Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --dark:       #0F172A;
  --dark-2:     #1E293B;
  --dark-3:     #334155;
  --blue:       #2563EB;
  --blue-l:     #3B82F6;
  --blue-d:     #1D4ED8;
  --cyan:       #00BFFF;
  --gray:       #CBD5E1;
  --gray-m:     #94A3B8;
  --white:      #F1F5F9;

  --grad:       linear-gradient(135deg, #2563EB 0%, #00BFFF 100%);
  --grad-r:     linear-gradient(135deg, #00BFFF 0%, #2563EB 100%);
  --grad-dark:  linear-gradient(160deg, #1E293B 0%, #0F172A 100%);
  --grad-card:  linear-gradient(135deg, rgba(37,99,235,.08), rgba(0,191,255,.04));

  --card-bg:    rgba(30, 41, 59, 0.55);
  --card-b:     rgba(0, 191, 255, 0.12);
  --card-bh:    rgba(0, 191, 255, 0.32);

  --sh-sm:  0 2px 10px rgba(0,0,0,.35);
  --sh-md:  0 10px 35px rgba(0,0,0,.4);
  --sh-lg:  0 25px 70px rgba(0,0,0,.5);

  --font:    'Inter', sans-serif;
  --font-h:  'Space Grotesk', sans-serif;

  --r-s:  6px;
  --r-m:  12px;
  --r-l:  18px;
  --r-xl: 24px;
  --r-f:  999px;

  --t:    all 0.3s cubic-bezier(0.4,0,0.2,1);
  --t-s:  all 0.65s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--gray);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--cyan)); border-radius:3px; }
::selection { background: rgba(37,99,235,.35); color: var(--white); }

a { text-decoration: none; color: inherit; transition: var(--t); }
img { max-width: 100%; }
button { font-family: var(--font); cursor: pointer; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-h);
  color: var(--white);
  line-height: 1.14;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { line-height: 1.78; }

.g-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LAYOUT ===== */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.container-w{ max-width: 1380px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6.5rem 0; }

/* ===== NAVBAR ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#nav.stuck {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--card-b);
  padding: 0.65rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 56px;
}

/* ===== LOGO ===== */
.logo-img {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.logo-img:hover img { opacity: 0.85; }

/* Footer logo */
.logo-img.footer-logo img { height: 46px; }

/* Nav links */
.n-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.n-menu a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--gray-m);
  border-radius: var(--r-f);
  transition: var(--t);
}

.n-menu a:hover,
.n-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,.06);
}

/* Nav CTA */
.n-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--grad);
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  border-radius: var(--r-f);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  white-space: nowrap;
  transition: var(--t);
}

.n-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,191,255,.45);
}

/* Hamburger */
.n-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.n-ham span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t);
}

.n-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.n-ham.open span:nth-child(2) { opacity: 0; }
.n-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--r-f);
  font-weight: 600;
  font-size: 0.94rem;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.btn-p {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 22px rgba(37,99,235,.4);
}
.btn-p:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 38px rgba(0,191,255,.45);
}

.btn-o {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(203,213,225,.2);
}
.btn-o:hover {
  background: rgba(0,191,255,.06);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}

.btn-lg { padding: 1.05rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }

/* ===== CHIP LABELS ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0,191,255,.07);
  border: 1px solid rgba(0,191,255,.18);
  padding: 0.28rem 0.9rem;
  border-radius: var(--r-f);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.chip::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ===== SECTION HEADER ===== */
.s-hd { margin-bottom: 3.5rem; }
.s-hd.c { text-align: center; }
.s-hd.c .s-desc { margin: 0.8rem auto 0; }
.s-title { margin-bottom: 0.5rem; }
.s-desc { color: var(--gray-m); font-size: 1rem; max-width: 560px; line-height: 1.82; margin-top: 0.7rem; }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-b);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: var(--t);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card:hover {
  border-color: var(--card-bh);
  transform: translateY(-6px);
  box-shadow: var(--sh-md), 0 0 40px rgba(0,191,255,.07);
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: var(--t);
}
.card:hover::after { opacity: 1; }

/* ===== ICON BOX ===== */
.ib {
  width: 52px; height: 52px;
  border-radius: var(--r-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(0,191,255,.08));
  border: 1px solid rgba(0,191,255,.18);
  color: var(--cyan);
  margin-bottom: 1.2rem;
  transition: var(--t);
}

.card:hover .ib {
  background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(0,191,255,.15));
  box-shadow: 0 0 20px rgba(0,191,255,.2);
}

/* ===== BADGES ===== */
.bdg {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--r-f);
  font-size: 0.68rem;
  font-weight: 600;
}
.bdg-blue  { background: rgba(37,99,235,.12); color: #60A5FA; border: 1px solid rgba(37,99,235,.25); }
.bdg-cyan  { background: rgba(0,191,255,.1);  color: var(--cyan); border: 1px solid rgba(0,191,255,.2); }
.bdg-green { background: rgba(34,197,94,.1);  color: #4ADE80;  border: 1px solid rgba(34,197,94,.25); }
.bdg-amber { background: rgba(245,158,11,.1); color: #FCD34D;  border: 1px solid rgba(245,158,11,.2); }

/* ===== GRID PATTERN BG ===== */
.grid-bg {
  background-image:
    linear-gradient(rgba(0,191,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,191,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ===== GLOW ORBS ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-blue { background: rgba(37,99,235,.22); }
.orb-cyan { background: rgba(0,191,255,.14); }

/* ===== DIVIDER ===== */
.div { height: 1px; background: linear-gradient(90deg, transparent, var(--card-b) 50%, transparent); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

@keyframes float  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes spin   { to{transform:rotate(360deg)} }
@keyframes glow-p { 0%,100%{box-shadow:0 0 20px rgba(0,191,255,.3)} 50%{box-shadow:0 0 40px rgba(0,191,255,.6)} }

/* ===== MARQUEE ===== */
.mq-outer {
  overflow: hidden;
  position: relative;
}
.mq-outer::before,
.mq-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 110px;
  z-index: 2;
}
.mq-outer::before { left: 0;  background: linear-gradient(90deg, var(--dark), transparent); }
.mq-outer::after  { right: 0; background: linear-gradient(-90deg, var(--dark), transparent); }

.mq-track {
  display: flex;
  gap: 1rem;
  animation: mq 24s linear infinite;
  width: max-content;
}
@keyframes mq { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.mq-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-b);
  border-radius: var(--r-f);
  white-space: nowrap;
  color: var(--gray-m);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.mq-pill i { color: var(--cyan); font-size: 0.78rem; }

/* ===== STAT BOX ===== */
.stat-n {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-l { color: var(--gray-m); font-size: 0.85rem; margin-top: 0.4rem; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 11rem 0 6rem;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

/* ===== FOOTER ===== */
#footer {
  background: var(--dark-2);
  border-top: 1px solid var(--card-b);
  padding: 5rem 0 2.5rem;
}

.ft-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--card-b);
  margin-bottom: 2.5rem;
}

.ft-brand-txt {
  color: var(--gray-m);
  font-size: 0.87rem;
  line-height: 1.8;
  margin: 1rem 0 1.8rem;
  max-width: 265px;
}

.socials { display: flex; gap: 0.6rem; }

.soc-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-m);
  background: rgba(0,191,255,.05);
  border: 1px solid var(--card-b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-m);
  font-size: 0.92rem;
  transition: var(--t);
}
.soc-btn:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.ft-col h5 {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray-m);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
}
.ft-col ul { list-style: none; }
.ft-col ul li + li { margin-top: 0.55rem; }
.ft-col ul li a { color: var(--gray-m); font-size: 0.86rem; }
.ft-col ul li a:hover { color: var(--cyan); padding-left: 4px; }

.ft-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.ft-bot p { color: var(--gray-m); font-size: 0.78rem; }
.ft-bot .cy { color: var(--cyan); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: #fff;
  z-index: 9998;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: var(--t);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 36px rgba(37,211,102,.6); }
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.4);
  animation: wa-ring 2s ease-out infinite;
}
@keyframes wa-ring { 0%{transform:scale(1);opacity:1} 100%{transform:scale(1.7);opacity:0} }

/* ===== RESPONSIVE ===== */

/* TABLET */
@media (max-width: 1024px) {
  .n-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: 285px;
    background: rgba(15,23,42,.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    border-left: 1px solid var(--card-b);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    padding: 2rem;
    z-index: 999;
  }
  .n-menu.open { transform: translateX(0); }
  .n-menu a { font-size: 1.05rem; padding: 0.7rem 1rem; }
  .n-ham { display: flex; }

  /* Logo — Tablet */
  .logo-img img { height: 34px; }

  .ft-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ft-top .ft-brand { grid-column: 1 / -1; }
  section { padding: 5rem 0; }
}

/* MOBILE */
@media (max-width: 640px) {
  .container, .container-w { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
  .ft-top { grid-template-columns: 1fr; gap: 2rem; }
  .ft-bot { flex-direction: column; text-align: center; }
  .wa-float { bottom: 18px; right: 18px; width: 50px; height: 50px; font-size: 1.4rem; }
  .btn-lg { padding: 0.9rem 1.8rem; font-size: 0.92rem; }

  /* Logo — Mobile */
  .logo-img img { height: 28px; }
  .nav-inner { gap: 0.75rem; min-height: 50px; }
}
