/* ============================================================
   Gemzo Accounting — Design System
   Modern fintech · navy/blue · bold type · whitespace
   ============================================================ */

:root {
  /* Brand palette */
  --navy-900: #061a30;
  --navy-800: #0a2540;
  --navy-700: #103252;
  --navy-600: #1c4a73;

  --blue-700: #1b4fd6;
  --blue-600: #2f6bff;
  --blue-500: #4b82ff;
  --sky-100:  #e9f1ff;
  --sky-50:   #f3f7ff;

  --mint-500: #14b8a6;   /* sparing secondary accent */

  /* Neutrals (cool-toned) */
  --paper:  #ffffff;
  --mist:   #f5f7fb;
  --cloud:  #eef2f8;
  --line:   #e1e8f2;
  --line-strong: #cdd8e8;

  --ink:    #0a2540;
  --slate:  #51617a;
  --slate-light: #7c8aa0;

  /* Effects */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10,37,64,.06), 0 1px 3px rgba(10,37,64,.04);
  --shadow:    0 4px 16px rgba(10,37,64,.08), 0 1px 4px rgba(10,37,64,.05);
  --shadow-lg: 0 18px 50px rgba(10,37,64,.14), 0 6px 18px rgba(10,37,64,.08);
  --shadow-blue: 0 14px 34px rgba(47,107,255,.28);
  --glass-light: rgba(255,255,255,.72);
  --glass-blue: rgba(47,107,255,.08);
  --glass-line: rgba(205,216,232,.72);
  --glass-dark: rgba(255,255,255,.07);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(47,107,255,.08), transparent 62%),
    linear-gradient(180deg, #fff 0%, #f7faff 42%, #fff 100%);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47,107,255,.55);
  outline-offset: 4px;
}

.home-cinematic a:focus-visible,
.home-cinematic button:focus-visible,
.page-hero a:focus-visible,
.page-hero button:focus-visible,
.cta-inner a:focus-visible,
.cta-inner button:focus-visible,
.why a:focus-visible,
.why button:focus-visible {
  outline-color: rgba(255,255,255,.78);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 18px 0 0;
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--slate);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(47,107,255,.36); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-wa {
  background: #25D366;
  color: #07331a;
}
.btn-wa:hover { background: #1fbb59; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37,211,102,.32); }
.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Liquid glass ---------- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.64));
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.82), 0 18px 44px rgba(10,37,64,.08);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  position: relative;
  overflow: hidden;
}
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,0) 38%),
    radial-gradient(420px 180px at 15% 0%, rgba(47,107,255,.1), transparent 70%);
}
.glass-panel > * { position: relative; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.68);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: rgba(205,216,232,.72); box-shadow: var(--shadow-sm); }
.home-cinematic .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}
.home-cinematic .site-header .nav {
  margin-top: 20px;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.home-cinematic .site-header .nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.home-cinematic .brand,
.home-cinematic .nav-links,
.home-cinematic .nav-cta,
.home-cinematic .nav-toggle {
  position: relative;
  z-index: 1;
}
.home-cinematic .brand-name,
.home-cinematic .nav-phone,
.home-cinematic .nav-links a {
  color: rgba(255,255,255,.86);
}
.home-cinematic .brand-sub { color: rgba(255,255,255,.55); }
.home-cinematic .nav-links a:hover,
.home-cinematic .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.home-cinematic .nav-toggle {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}
.home-cinematic .nav-toggle span { background: #fff; }
.home-cinematic .nav-cta .btn-primary {
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--blue-600), var(--navy-800));
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--navy-800);
}
.brand-name span { color: var(--blue-600); }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--slate);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--navy-800); background: var(--cloud); }
.nav-links a.active { color: var(--navy-800); background: var(--sky-100); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-800);
}
.nav-phone svg { width: 16px; height: 16px; color: var(--blue-600); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 28px 28px;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(205,216,232,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.mobile-menu.show { display: flex; }
.mobile-menu a {
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--navy-800);
}
.mobile-menu a:hover { background: var(--mist); }
.mobile-menu .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #c7d3e3;
  padding: 72px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 18px; color: #8ea3bd; max-width: 320px; font-size: 15.5px; }
.footer-col h4 { color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #9fb1c9; font-size: 15.5px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 15.5px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--blue-500); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #7e92ad;
  font-size: 14px;
}

/* ---------- Generic cards / tints ---------- */
.bg-mist {
  background:
    radial-gradient(760px 420px at 84% 0%, rgba(47,107,255,.08), transparent 62%),
    rgba(245,247,251,.78);
}
.bg-navy {
  background:
    radial-gradient(760px 420px at 84% 0%, rgba(47,107,255,.2), transparent 62%),
    var(--navy-800);
  color: #fff;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 60px 0; }
}
