/* Appsy · shared styles across all pages */
:root {
  --bg:        #0e0d10;
  --bg-soft:   #141318;
  --bg-card:   #181720;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.13);
  --line-3:    rgba(255,255,255,0.22);
  --ink:       #f4f1ea;
  --ink-dim:   #a9a499;
  --ink-faint: #6b675e;
  --c-blue:   #2E7CE4;
  --c-purple: #7A3F9E;
  --c-red:    #E63946;
  --grad: linear-gradient(90deg, var(--c-blue) 0%, var(--c-purple) 50%, var(--c-red) 100%);
  --maxw: 1320px;
  --edge: 40px;
}
@media (max-width: 720px) { :root { --edge: 22px; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; color: var(--ink); }
html { background: var(--bg); }
body { background: transparent; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content:""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--edge); }

em.grad {
  font-style: normal; font-weight: 600;
  background: var(--grad);
  background-clip: text; -webkit-background-clip: text; color: transparent;
}

/* ====== NAV ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(14,13,16,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: var(--line); padding: 14px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; font-size: 13px; color: var(--ink-dim); }
.nav-links a:hover, .nav-links a.current { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .nav-links { display:none; } }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
  border: 1px solid transparent;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: #0e0d10; box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 20px -8px rgba(0,0,0,0.5); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 14px 28px -10px rgba(0,0,0,0.6); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,0.03); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-huge { padding: 22px 36px; font-size: 14px; }

/* ====== SECTIONS ====== */
section { position: relative; padding: 120px 0; }
.section-head { display: grid; grid-template-columns: 160px 1fr; gap: 40px; margin-bottom: 60px; }
.section-head .idx { font-family:'JetBrains Mono'; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); padding-top: 10px; }
.section-head h2 { font-size: clamp(36px, 5.6vw, 76px); line-height: 0.98; font-weight: 300; letter-spacing: -0.035em; max-width: 16ch; }
.section-head .lede { color: var(--ink-dim); font-size: 17px; max-width: 480px; margin-top: 24px; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 18px; } }

/* ====== REVEAL ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1){transition-delay:.04s}
.reveal-stagger.in > *:nth-child(2){transition-delay:.10s}
.reveal-stagger.in > *:nth-child(3){transition-delay:.16s}
.reveal-stagger.in > *:nth-child(4){transition-delay:.22s}
.reveal-stagger.in > *:nth-child(5){transition-delay:.28s}
.reveal-stagger.in > *:nth-child(6){transition-delay:.34s}
.reveal-stagger.in > *:nth-child(7){transition-delay:.40s}
.reveal-stagger.in > *:nth-child(8){transition-delay:.46s}

/* ====== PAGE TRANSITION OVERLAY ====== */
.page-transition {
  position: fixed; inset: 0; z-index: 400;
  pointer-events: none;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(0.7, 0, 0.2, 1);
}
.page-transition.entering { transform: translateY(0); pointer-events: auto; }
.page-transition.leaving  { transform: translateY(-100%); }
.page-transition .pt-inner {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.page-transition.entering .pt-inner { opacity: 1; }
.page-transition .pt-wordmark {
  font-family:'Space Grotesk'; font-weight: 300;
  font-size: clamp(60px, 16vw, 220px);
  letter-spacing: -0.05em;
  background: var(--grad);
  background-clip: text; -webkit-background-clip: text; color: transparent;
}

/* ====== PAGE HEADER ====== */
.page-header {
  position: relative; padding: 180px 0 100px; border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-header::before {
  content:""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(46,124,228,0.16), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(230,57,70,0.12), transparent 55%);
  filter: blur(40px);
}
.page-header .container { position: relative; z-index: 1; }
.page-header .crumbs { display: flex; gap: 8px; color: var(--ink-faint); font-family:'JetBrains Mono'; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 32px; }
.page-header .crumbs a:hover { color: var(--ink); }
.page-header h1 {
  font-size: clamp(48px, 8vw, 128px);
  line-height: 1.02; font-weight: 300; letter-spacing: -0.04em;
  max-width: 16ch;
  padding-right: 0.2em;
  padding-bottom: 0.08em;
}
.page-header .lede {
  margin-top: 36px; max-width: 620px;
  color: var(--ink-dim); font-size: 18px; line-height: 1.6;
}
.page-header .ctas { margin-top: 44px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ====== FOOTER ====== */
footer { background: #0a090c; padding: 80px 0 36px; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.foot-top h5 { font-family:'JetBrains Mono'; font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 20px; font-weight: 500; }
.foot-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-top a { color: var(--ink-dim); font-size: 14px; transition: color .2s; }
.foot-top a:hover { color: var(--ink); }
.foot-brand img { height: 28px; margin-bottom: 22px; }
.foot-brand p { color: var(--ink-dim); font-size: 14px; max-width: 340px; line-height: 1.6; }
.foot-bottom { padding-top: 28px; display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 12px; gap: 20px; flex-wrap: wrap; }
.foot-wordmark { font-family:'Space Grotesk'; font-weight: 300; font-size: clamp(80px, 22vw, 340px); line-height: 0.9; letter-spacing: -0.05em; background: var(--grad); background-clip: text; -webkit-background-clip: text; color: transparent; padding: 60px 0 40px; user-select: none; display: block; }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } }

/* ====== WHATSAPP FLOAT ====== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -4px rgba(37,211,102,0.5);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 24px; height: 24px; }

/* ====== CTA BLOCK ====== */
.cta-block { padding: 140px 0; text-align: center; border-top: 1px solid var(--line); }
.cta-block h2 { font-size: clamp(36px, 6vw, 86px); line-height: 0.96; font-weight: 300; letter-spacing: -0.035em; max-width: 18ch; margin: 0 auto; }
.cta-block p { margin: 28px auto 0; color: var(--ink-dim); max-width: 560px; font-size: 17px; }
.cta-block .ctas { margin-top: 44px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
