/* ==========================================================================
   AiSEAN | One Vision. Shaping Tomorrow.
   Design tokens: Void Navy base, Signal Cyan accent, mosaic accents sparing.
   Display: Bricolage Grotesque (distinctive grotesque, restrained) / Body: Public Sans / Data: IBM Plex Mono
   ========================================================================== */

:root{
  --navy:      #0A1128;
  --navy-2:    #101a3a;
  --navy-3:    #16214d;
  --cyan:      #05BCF4;
  --cyan-dim:  #0288D1;
  --cyan-glow: rgba(5,188,244,0.35);
  --ice:       #F7F9FC;
  --white:     #FFFFFF;
  --slate:     #8793B0;
  --slate-d:   #5B6478;
  --line:      #E3E8F2;
  --line-dark: rgba(255,255,255,0.14);
  --orange:    #F5841F;
  --coral:     #E8443C;
  --green:     #2FAE66;

  --font-display: 'Bricolage Grotesque', 'Cambria', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container-max: 1240px;
  --container-pad: clamp(32px, 8vw, 120px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 12px 32px -12px rgba(10,17,40,0.18);
  --shadow-card-dark: 0 16px 40px -16px rgba(0,0,0,0.55);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.12; letter-spacing: -0.01em; }
p{ margin:0; }

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}
@media (min-width: 560px){
  .container{ padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 900px){
  .container{ padding-left: 64px; padding-right: 64px; }
}
@media (min-width: 1280px){
  .container{ padding-left: 96px; padding-right: 96px; }
}
@media (min-width: 1600px){
  .container{ padding-left: 130px; padding-right: 130px; }
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before{
  content:'';
  width: 22px; height: 1px;
  background: var(--cyan-dim);
  display:inline-block;
}
section.on-dark .eyebrow, .on-dark .eyebrow{ color: var(--cyan); }
.on-dark .eyebrow::before{ background: var(--cyan); }

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 8px 24px -8px var(--cyan-glow);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--cyan-glow); }
.btn-ghost-dark{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-dark:hover{ border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-ghost-light{
  background: transparent;
  color: var(--navy);
  border-color: rgba(10,17,40,0.2);
}
.btn-ghost-light:hover{ border-color: var(--navy); transform: translateY(-2px); }
.btn-block{ width: 100%; }
.btn-lg{ padding: 16px 32px; font-size: 15.5px; }

/* ---------------- Header ---------------- */
.site-header{
  position: fixed;
  top: 0; left:0; right:0;
  z-index: 500;
  padding: 18px 0;
  transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.scrolled{
  background: rgba(10,17,40,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6);
}
.brand{ display:flex; align-items:center; }
.brand img{ height: clamp(36px, 4.2vw, 46px); width:auto; }

.main-nav{ display:flex; align-items:center; gap: 6px; }
.main-nav a{
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
  position: relative;
}
.main-nav a:hover{ color: var(--white); background: rgba(255,255,255,0.08); }
.main-nav a.active{ color: var(--cyan); }

.header-actions{ display:flex; align-items:center; gap: 14px; }

.hamburger{
  display:none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 0;
}
.hamburger span{
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s ease;
}
.hamburger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--navy);
  display:flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open{ transform: translateY(0); }
.mobile-nav a{
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--white);
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display:block;
}
.mobile-nav a.active{ color: var(--cyan); }
.mobile-nav .btn{ margin-top: 24px; }
.mobile-nav .mobile-contact{
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav .mobile-contact a{ font-family: var(--font-mono); font-size: 13px; padding: 2px 0; border:none; color: var(--slate); }

@media (max-width: 980px){
  .main-nav, .header-actions .btn-ghost-dark{ display:none; }
  .hamburger{ display:flex; }
}

/* ---------------- Footer ---------------- */
.site-footer{
  background: var(--navy);
  color: var(--slate);
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand img{ height: 40px; margin-bottom: 20px; }
.footer-brand p{ font-size: 14px; line-height: 1.7; max-width: 320px; color: var(--slate); }
.footer-managed-by{ margin-top: 28px; }
.managed-label{
  display:block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-d);
  margin-bottom: 12px;
}
.nexus-logo{ height: 34px; width:auto; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul{ display:flex; flex-direction:column; gap: 12px; }
.footer-col a{ font-size: 14px; color: var(--slate); transition: color .2s ease; }
.footer-col a:hover{ color: var(--cyan); }
.footer-contact li{ font-size: 14px; color: var(--slate); line-height: 1.6; }
.footer-contact a{ color: var(--slate); }
.footer-contact a:hover{ color: var(--cyan); }
.footer-bottom{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding-top: 28px;
  font-size: 12.5px;
  color: var(--slate-d);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .socials{ display:flex; gap: 14px; }
.footer-bottom .socials a{
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display:flex; align-items:center; justify-content:center;
  color: var(--slate);
  transition: all .2s ease;
}
.footer-bottom .socials a:hover{ color: var(--navy); background: var(--cyan); border-color: var(--cyan); }
.footer-bottom .socials svg{ width:16px; height:16px; }

@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand{ grid-column: 1 / -1; }
}

/* ---------------- Back to top ---------------- */
.to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  border: 1px solid var(--line-dark);
  display:flex; align-items:center; justify-content:center;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.5);
}
.to-top.visible{ opacity:1; visibility:visible; transform: translateY(0); }
.to-top:hover{ background: var(--cyan); color: var(--navy); }
.to-top svg{ width: 18px; height: 18px; }

/* ---------------- Section rhythm ---------------- */
section{ position: relative; }
.section-pad{ padding: 120px 0; }
@media (max-width: 780px){ .section-pad{ padding: 80px 0; } }
.on-dark{ background: var(--navy); color: var(--white); }
.section-head{ max-width: 720px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; }
.section-head p{ margin-top:16px; font-size: 17px; color: var(--slate-d); line-height:1.7; }
.on-dark .section-head p{ color: var(--slate); }

/* ---------------- Cards ---------------- */
.card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover{ transform: translateY(-5px); box-shadow: 0 20px 40px -16px rgba(10,17,40,0.22); }
.card-dark{
  background: var(--navy-2);
  color: var(--white);
  box-shadow: var(--shadow-card-dark);
}
.icon-badge{
  width: 52px; height:52px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--navy);
  color: var(--cyan);
  flex-shrink: 0;
}
.icon-badge svg{ width: 24px; height:24px; }
.icon-badge i{ font-size: 20px; }
.on-dark .icon-badge, .card-dark .icon-badge{ background: var(--cyan); color: var(--navy); }

/* ---------------- Stat grid ---------------- */
.stat .num{
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
  display:block;
}
.stat .label{
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--white);
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
.light-stat .num{ color: var(--navy); }
.light-stat .label{ color: var(--slate-d); }

/* ---------------- Chips ---------------- */
.chip-row{ display:flex; flex-wrap:wrap; gap: 10px; }
.chip{
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.on-dark .chip{ border-color: var(--line-dark); color: var(--white); background: rgba(255,255,255,0.04); }

/* ---------------- Utility ---------------- */
.grid{ display:grid; gap: 24px; }
.g-2{ grid-template-columns: repeat(2,1fr); }
.g-3{ grid-template-columns: repeat(3,1fr); }
.g-4{ grid-template-columns: repeat(4,1fr); }
.g-5{ grid-template-columns: repeat(5,1fr); }
@media (max-width: 980px){ .g-4{ grid-template-columns: repeat(2,1fr);} .g-5{ grid-template-columns: repeat(3,1fr);} .g-3{grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .g-2,.g-3,.g-4,.g-5{ grid-template-columns: 1fr; } }

.reveal{ opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform: translateY(0); }

.divider-fade{ height:1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.on-dark .divider-fade{ background: linear-gradient(90deg, transparent, var(--line-dark), transparent); }

::selection{ background: var(--cyan); color: var(--navy); }

/* Page hero offset (fixed header) */
.page-hero{ padding-top: 168px; padding-bottom: 90px; }
@media (max-width: 780px){ .page-hero{ padding-top: 140px; padding-bottom: 60px; } }
