/* ═══════════════════════════════════════════════
   INTAN NETWORKS — Global Stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --ink: #0A0A12;
  --ink-mid: #111120;
  --ink-soft: #16182a;
  --blue: #3B52D4;
  --blue-l: #5B72F4;
  --blue-glow: rgba(59,82,212,.28);
  --grey: #878787;
  --grey-l: #B0B0B8;
  --paper: #F5F5F7;
  --white: #fff;
  --bd: rgba(255,255,255,.07);
  --bdl: rgba(0,0,0,.09);
  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --fm: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: var(--ink); color: var(--white); line-height: 1.6; overflow-x: hidden; }
::selection { background: var(--blue); color: #fff; }
img { max-width: 100%; height: auto; }

/* ── TYPE UTILITIES ── */
.ds  { font-family: var(--fd); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.di  { font-family: var(--fd); font-style: italic; font-weight: 700; line-height: 1.1; }
.tag { font-family: var(--fm); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; display: inline-block; }

/* ── CURSOR ── */
.cursor {
  position: fixed; width: 10px; height: 10px; background: var(--blue);
  border-radius: 50%; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%); transition: width .2s, height .2s; mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px; border: 1.5px solid rgba(91,114,244,.5);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%); transition: width .25s, height .25s, border-color .25s;
}
.cursor.hov  { width: 18px; height: 18px; }
.cursor-ring.hov { width: 52px; height: 52px; border-color: var(--blue); }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ── GRAIN TEXTURE ── */
.grain { position: relative; }
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 2; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; will-change: transform; }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0; transition: background .4s, padding .4s, box-shadow .4s;
}
.site-nav.scrolled {
  background: rgba(10,10,18,.96); backdrop-filter: blur(14px);
  padding: 11px 0; box-shadow: 0 1px 0 var(--bd);
}
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7);
  text-decoration: none; transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--blue-l); transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.btn-ncta {
  background: var(--blue); color: #fff !important; padding: 9px 20px;
  border-radius: 6px; font-weight: 600 !important; font-size: 13px !important;
  transition: background .2s, transform .15s !important;
}
.btn-ncta:hover {
  background: var(--blue-l) !important; transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--blue-glow) !important;
}
.hamburger {
  display: none; background: none; border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 7px 11px; border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 1;
}
.mobile-menu { display: none; background: rgba(10,10,18,.99); border-top: 1px solid var(--bd); padding: 16px 0; }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 13px 24px; color: rgba(255,255,255,.8);
  text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s, padding-left .2s;
}
.mobile-menu a:hover { color: #fff; padding-left: 30px; }
@media (max-width: 991px) { .nav-links { display: none; } .hamburger { display: block; } }

/* ── FOOTER ── */
.site-footer { background: var(--ink); padding: 68px 0 28px; }
.footer-logo { height: 32px; width: auto; }
.ft-tag { font-size: 13px; color: var(--grey-l); max-width: 270px; line-height: 1.65; margin-top: 14px; }
.ft-h { font-family: var(--fm); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }
.ft-links a { display: block; font-size: 13.5px; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 9px; transition: color .2s, padding-left .2s; }
.ft-links a:hover { color: #fff; padding-left: 4px; }
.ft-div {
  border-top: 1px solid var(--bd); padding-top: 22px; margin-top: 46px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.ft-copy { font-size: 12px; color: var(--grey); }
@media (max-width: 767px) { .ft-div { flex-direction: column; text-align: center; } }

/* ── WA FAB ── */
.wa-fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 999;
  display: flex; align-items: center; gap: 10px; background: #25D366; color: #fff;
  border-radius: 50px; padding: 13px 16px; text-decoration: none; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 24px rgba(37,211,102,.4); overflow: hidden; max-width: 52px;
  transition: max-width .35s ease, padding .3s ease; white-space: nowrap;
}
.wa-fab:hover { max-width: 220px; padding: 13px 22px; color: #fff; }
.wa-fab i { font-size: 22px; flex-shrink: 0; }
.wa-txt { max-width: 0; overflow: hidden; transition: max-width .35s ease; }
.wa-fab:hover .wa-txt { max-width: 160px; }
@media (max-width: 767px) { .wa-fab:hover { max-width: 52px; padding: 13px 16px; } .wa-fab:hover .wa-txt { max-width: 0; } }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.fl { transform: translateX(-24px); }
.reveal.fr { transform: translateX(24px); }
.reveal.vis { opacity: 1; transform: none; }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }
.rd4 { transition-delay: .4s; }

/* ── KEYFRAMES ── */
@keyframes slideUp   { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes orbFloat  { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-18px); } }
@keyframes spin      { to { transform:rotate(360deg); } }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .cursor, .cursor-ring { display: none; }
}

/* ── FLASH ALERTS ── */
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #4ade80; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; font-size: 14px; }
.alert-error   { background: rgba(220,50,50,.1);  border: 1px solid rgba(220,50,50,.3);  color: #f87171; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; font-size: 14px; }
