/* ============================================================
   ALTITUDESOLUTION — Shared design system
   Corporate ERP. Sora + Plus Jakarta Sans. Sky→Royal blue.
   ============================================================ */

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

:root {
  /* Ink & blues */
  --ink:        #081024;
  --navy:       #0b1f4d;
  --navy-2:     #102a63;
  --blue-700:   #1d4ed8;
  --blue-600:   #2563eb;
  --blue-500:   #3b82f6;
  --sky-500:    #0ea5e9;
  --sky-400:    #38bdf8;
  --sky-300:    #7dd3fc;

  /* Brand gradients */
  --grad:        linear-gradient(115deg, #0ea5e9 0%, #2563eb 100%);
  --grad-soft:   linear-gradient(115deg, #38bdf8 0%, #3b82f6 100%);
  --grad-deep:   linear-gradient(150deg, #081024 0%, #0b1f4d 42%, #1d4ed8 78%, #0ea5e9 120%);
  --grad-text:   linear-gradient(100deg, #7dd3fc 0%, #93c5fd 50%, #c7d2fe 100%);

  /* Neutrals (cool) */
  --bg:         #f5f8fd;
  --bg-2:       #eef3fb;
  --surface:    #ffffff;
  --line:       #e5ebf5;
  --line-2:     #d6deec;
  --text:       #131f38;
  --muted:      #5c6884;
  --muted-2:    #8793aa;

  /* Accents */
  --wa:         #1fb157;
  --gold:       #f5a524;
  --green:      #16a34a;
  --red:        #ef4444;

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadow (blue-tinted, layered) */
  --sh-sm:  0 1px 2px rgba(16,42,99,.06), 0 2px 6px rgba(16,42,99,.05);
  --sh:     0 4px 14px rgba(16,42,99,.07), 0 12px 32px rgba(16,42,99,.07);
  --sh-md:  0 8px 24px rgba(16,42,99,.10), 0 24px 60px rgba(16,42,99,.10);
  --sh-lg:  0 18px 50px rgba(11,31,77,.18), 0 40px 90px rgba(11,31,77,.16);
  --sh-blue:0 14px 40px rgba(37,99,235,.34);
  --sh-glow:0 0 0 1px rgba(56,189,248,.18), 0 18px 50px rgba(14,165,233,.28);

  --maxw: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Sora', system-ui, sans-serif;
  letter-spacing: -.02em;
  color: var(--navy);
  line-height: 1.12;
  font-weight: 700;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(37,99,235,.18); }

/* ── Layout helpers ─────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-ink {
  background: var(--ink);
  color: #fff;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--sky-300); }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.s-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 18px;
  text-wrap: balance;
}
.s-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}
.section-head.center .s-sub { margin-left: auto; margin-right: auto; }
.grad-word {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 140% 140%;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 18px 46px rgba(37,99,235,.45); }
.btn-ghost {
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue-500); color: var(--blue-600); }
.btn-on-dark {
  color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
.btn-on-dark:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue-700); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.btn-white:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(31,177,87,.32); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(31,177,87,.42); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ── Navbar ─────────────────────────────────────────── */
.nav-spacer { height: 76px; }
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 76px;
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(16,42,99,.06);
}
.nav-inner {
  max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad-deep);
  display: grid; place-items: center;
  box-shadow: var(--sh-glow);
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.35), transparent 55%);
}
.logo-mark svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.logo-mark svg rect { fill: #fff; }
.logo-word { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.logo-word b { font-weight: 800; }
.logo-word .li { color: var(--blue-600); }
.logo-sub { display: block; font-family: 'Plus Jakarta Sans'; font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--muted-2); text-transform: uppercase; margin-top: 3px; }
.navbar.on-hero:not(.scrolled) .logo-word { color: #fff; }
.navbar.on-hero:not(.scrolled) .logo-word .li { color: #fff; }
.navbar.on-hero:not(.scrolled) .logo-sub { color: rgba(255,255,255,.6); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted); white-space: nowrap;
  font-size: 14.5px; font-weight: 600; padding: 9px 14px; border-radius: var(--r-pill);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--blue-600); }
.nav-links a.active { color: var(--blue-700); background: rgba(37,99,235,.09); }
.navbar.on-hero:not(.scrolled) .nav-links a { color: rgba(255,255,255,.8); }
.navbar.on-hero:not(.scrolled) .nav-links a:hover { color: #fff; }
.navbar.on-hero:not(.scrolled) .nav-links a.active { color: #fff; background: rgba(255,255,255,.14); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.navbar.on-hero:not(.scrolled) .hamburger span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; z-index: 999;
  flex-direction: column; gap: 4px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 18px 28px 24px;
  box-shadow: var(--sh-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--text); font-size: 16px; font-weight: 600; padding: 13px 14px; border-radius: var(--r-sm); }
.mobile-menu a:hover { background: var(--bg-2); color: var(--blue-600); }
.mobile-menu .btn { margin-top: 10px; }

/* ── 3D decor: orbs & glass ─────────────────────────── */
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.orb-glass {
  background:
    radial-gradient(120% 120% at 30% 22%, rgba(255,255,255,.85), rgba(255,255,255,.05) 38%),
    radial-gradient(120% 120% at 72% 80%, #2563eb, #0ea5e9 60%, #081024 130%);
  box-shadow: inset 0 -16px 40px rgba(8,16,36,.5), 0 30px 70px rgba(14,30,75,.45);
  filter: none;
}
.orb-soft {
  background: radial-gradient(circle at 35% 30%, rgba(125,211,252,.55), rgba(37,99,235,.12) 60%, transparent 72%);
}
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes float-y2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(16px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes gridmove { to { background-position: 60px 60px; } }
.float-y  { animation: float-y 7s ease-in-out infinite; }
.float-y2 { animation: float-y2 6s ease-in-out infinite; }

/* ── WhatsApp float ─────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 998;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: var(--wa);
  box-shadow: 0 12px 30px rgba(31,177,87,.42);
  transition: transform .2s;
}
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(31,177,87,.5); animation: wa-ping 2.4s ease-out infinite;
}
@keyframes wa-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; position: relative; z-index: 1; }
.wa-tip {
  position: absolute; right: 70px; white-space: nowrap;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r-pill); box-shadow: var(--sh);
  opacity: 0; transform: translateX(6px); transition: .2s; pointer-events: none;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateX(0); }

/* ── Footer ─────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.66); position: relative; overflow: hidden; }
.footer::before {
  content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%);
  pointer-events: none;
}
.footer-top {
  max-width: var(--maxw); margin: 0 auto; padding: 72px 28px 48px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.3fr; gap: 44px;
  position: relative; z-index: 1;
}
.footer .logo-word { color: #fff; }
.footer .logo-word .li { color: #fff; }
.footer .logo-sub { color: rgba(255,255,255,.45); }
.footer-brand p { margin-top: 18px; font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.6); max-width: 340px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); transition: .2s; }
.footer-social a:hover { background: var(--grad); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
.footer-col h4 { font-family: 'Sora'; color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 18px; letter-spacing: .02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,.6); font-size: 14px; transition: color .15s, padding .15s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact p { display: flex; gap: 10px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.footer-contact svg { width: 17px; height: 17px; stroke: var(--sky-400); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 22px 28px; text-align: center; font-size: 13px; color: rgba(255,255,255,.4);
  position: relative; z-index: 1;
}

/* ── Breadcrumb ─────────────────────────────────────── */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; }
.crumb a { text-decoration: none; opacity: .8; }
.crumb a:hover { opacity: 1; }
.crumb .sep { opacity: .4; }

/* ── Reveal on scroll ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-y, .float-y2, .wa-float::before { animation: none; }
}

/* ── Generic cards / pills used across pages ────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: var(--r-pill);
  background: rgba(37,99,235,.09); color: var(--blue-700);
}
.pill.green { background: rgba(22,163,74,.1); color: var(--green); }
.pill.gold  { background: rgba(245,165,36,.13); color: #b45309; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-sm);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: rgba(37,99,235,.28); }

/* ── Responsive base ────────────────────────────────── */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px 40px; }
}
