/* ============================================================
   APRICUS SYSTEMS — Design System
   Palette: deep navy, glass panels, electric blue, slate
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (data)
============================================================ */

:root {
  /* Brand palette sampled from the Apricus Infotech logo:
     deep navy #0A1E40 + teal #0E8B7F, with a brighter teal accent. */
  --navy-900: #04101F;
  --navy-800: #071A33;
  --navy-700: #0A1E40;
  --navy-600: #122c54;
  --line: rgba(148, 178, 184, 0.14);
  --line-strong: rgba(148, 178, 184, 0.28);

  --blue-500: #0E8B7F;   /* legacy token names retained -> mapped to teal */
  --blue-400: #16A99A;
  --cyan: #1CC2B0;       /* bright teal accent */
  --teal-deep: #0E8B7F;
  --glow: rgba(28, 194, 176, 0.40);

  --white: #F4F8F8;
  --slate-300: #C8D6D7;
  --slate-400: #8FA6A8;
  --slate-500: #5F7577;

  --glass-bg: rgba(10, 30, 56, 0.55);
  --glass-border: rgba(148, 178, 184, 0.18);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-800);
  color: var(--slate-300);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient gradient field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 78% -5%, rgba(14,139,127,0.18), transparent 60%),
    radial-gradient(700px 500px at 8% 12%, rgba(28,194,176,0.10), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800) 40%, var(--navy-900));
  z-index: -2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 14px 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--teal-deep), var(--cyan));
  color: #04141A;
  box-shadow: 0 10px 30px -10px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--glow); }
.btn-ghost {
  background: rgba(148,163,184,0.06);
  border-color: var(--line-strong);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(4, 16, 31, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.brand-name b { color: var(--cyan); font-weight: 600; }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 14px !important;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--slate-300);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 16px; }
.section-head p { font-size: 1.08rem; color: var(--slate-400); }

/* ---------- Glass panel ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(6,13,26,0.6);
  padding: 72px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-grid h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 20px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { font-size: 0.92rem; color: var(--slate-400); transition: color 0.25s; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { font-size: 0.92rem; color: var(--slate-400); max-width: 320px; margin-top: 16px; }
.footer-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--slate-500);
}
.footer-codes span b { color: var(--slate-300); font-weight: 500; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    background: rgba(4,16,31,0.97);
    backdrop-filter: blur(20px);
    padding: 30px 28px;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 84px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
