/* ==========================================================================
   ARCOGNIS — Premium Dark Neumorphism Design System
   Map Your Arc
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces */
  --bg:            #0A0B0F;
  --surface:       #15171D;
  --surface-2:     #1B1E25;
  --surface-3:     #20232B;

  /* Neumorphic shadow pair (light source: top-left) */
  --sh-dark:  rgba(0, 0, 0, 0.55);
  --sh-light: rgba(255, 255, 255, 0.028);

  /* Accents */
  --cyan:      #05C3A9;
  --cyan-dim:  #049688;
  --blue:      #2B1F5F;
  --blue-glow: #4B3AA8;
  --arc-grad:  linear-gradient(90deg, #05C3A9 0%, #2B1F5F 100%);

  /* Text */
  --text-1: #FFFFFF;
  --text-2: #C9C6DC;
  --text-3: #7A7594;

  /* Borders */
  --border: rgba(255, 255, 255, 0.055);
  --border-hair: rgba(255, 255, 255, 0.09);

  /* Type */
  --f-display: 'Space Grotesk', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle noise/grain for depth on true black */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Site-wide thematic background — soft teal/indigo glow + tech grid, fixed behind all content on every page */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%);
}
.bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(120px); will-change: transform; }
.bg-fx .blob-teal {
  width: 560px; height: 560px; top: -140px; left: -120px;
  background: var(--cyan); opacity: 0.16;
  animation: drift-a 28s ease-in-out infinite alternate;
}
.bg-fx .blob-indigo {
  width: 640px; height: 640px; bottom: -180px; right: -140px;
  background: var(--blue-glow); opacity: 0.30;
  animation: drift-b 32s ease-in-out infinite alternate;
}
.bg-fx .blob-teal-2 {
  width: 400px; height: 400px; top: 42%; right: 8%;
  background: var(--cyan); opacity: 0.08;
  animation: drift-a 36s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { from { transform: translate(0,0); } to { transform: translate(50px, 36px); } }
@keyframes drift-b { from { transform: translate(0,0); } to { transform: translate(-36px, -46px); } }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-1);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--arc-grad);
}

p.lede {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 640px;
}

.text-gradient {
  background: var(--arc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Neumorphic primitives
   ========================================================================== */

.neu {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow:
    9px 9px 20px var(--sh-dark),
    -7px -7px 16px var(--sh-light);
  border: 1px solid var(--border);
}

.neu-flat {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow:
    5px 5px 12px var(--sh-dark),
    -4px -4px 10px var(--sh-light);
  border: 1px solid var(--border);
}

.neu-inset {
  background: var(--surface-2);
  border-radius: var(--r-md);
  box-shadow:
    inset 4px 4px 9px var(--sh-dark),
    inset -3px -3px 8px var(--sh-light);
  border: 1px solid var(--border);
}

.neu-card {
  padding: 36px 32px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.neu-card:hover {
  transform: translateY(-4px);
  box-shadow:
    12px 12px 26px var(--sh-dark),
    -9px -9px 20px var(--sh-light);
  border-color: rgba(34, 211, 238, 0.18);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--r-sm);
  border: none;
  transition: all 0.28s ease;
}

.btn-primary {
  background: var(--arc-grad);
  color: #FFFFFF;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  box-shadow: 6px 6px 16px rgba(5, 195, 169, 0.14), -4px -4px 12px var(--sh-light);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(5,195,169,0.45), 0 8px 26px rgba(5, 195, 169, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border-hair);
  box-shadow: 5px 5px 12px var(--sh-dark), -4px -4px 10px var(--sh-light);
}
.btn-ghost:hover {
  color: var(--cyan);
  border-color: rgba(34,211,238,0.3);
  transform: translateY(-2px);
}

.btn-ghost svg, .btn-primary svg { width: 14px; height: 14px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
}
.logo .mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
}
.logo .mark svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: inset 3px 3px 8px var(--sh-dark), inset -2px -2px 6px var(--sh-light);
}

.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-2);
  padding: 9px 17px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a.active {
  color: #04141A;
  background: var(--arc-grad);
  font-weight: 600;
}

.nav-links a.active {
  color: #04141A;
  background: var(--arc-grad);
  font-weight: 600;
}

/* --- BULLETPROOF DROPDOWN CODE --- */

/* 1. Dropdown Wrapper */
.nav-links .dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* 2. The hidden dropdown menu */
.nav-links .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 9px 9px 20px var(--sh-dark), -7px -7px 16px var(--sh-light);
  padding: 10px 0;
  z-index: 9999;
  flex-direction: column;
}

/* 3. Override the default nav link styles for dropdown items */
.nav-links .dropdown-content a {
  padding: 12px 24px;
  margin: 0;
  border-radius: 0;
  background: transparent !important; /* Forces background override */
  box-shadow: none;
  width: 100%;
  text-align: left;
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--text-2);
  transition: all 0.2s ease;
}

/* 4. Hover effect for dropdown links */
.nav-links .dropdown-content a:hover {
  background: rgba(5, 195, 169, 0.08) !important;
  color: var(--text-1);
}

/* 5. Show the menu when hovering over the parent wrapper */
.nav-links .dropdown:hover .dropdown-content {
  display: flex;
}
/* --- END DROPDOWN CODE --- */
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-1); border-radius: 2px; }

/* ==========================================================================
   Hero / Arc signature motif
   ========================================================================== */

.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}

.arc-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.arc-field svg { width: 100%; height: 100%; }
.arc-path {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.arc-glow {
  filter: drop-shadow(0 0 10px rgba(34,211,238,0.35));
}

@keyframes arc-draw {
  from { stroke-dashoffset: var(--len); }
  to { stroke-dashoffset: 0; }
}
@keyframes arc-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 40px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 620px;
}
.stat { padding: 22px 20px; }
.stat .num {
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cyan);
}
.stat .label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section { position: relative; padding: 110px 0; }
section.tight { padding: 70px 0; }
.section-head { max-width: 620px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hair) 20%, var(--border-hair) 80%, transparent);
  margin: 0;
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  box-shadow: inset 3px 3px 7px var(--sh-dark), inset -2px -2px 6px var(--sh-light);
  margin-bottom: 22px;
}
.icon-badge svg { width: 24px; height: 24px; stroke: var(--cyan); }

.card-title { margin-bottom: 12px; }
.card-body { color: var(--text-2); font-size: 0.96rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* Numbered index style for genuine sequences (process steps) */
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 40px 0;
}
.step-index {
  font-family: var(--f-mono);
  font-size: 2.4rem;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(34,211,238,0.4);
}
.step + .step { border-top: 1px solid var(--border); }

/* ==========================================================================
   Panel band (contrast section)
   ========================================================================== */

.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-family: var(--f-body);
  font-size: 0.95rem;
  padding: 15px 18px;
}
.field-wrap { border-radius: var(--r-sm); }
.field textarea { resize: vertical; min-height: 120px; }

/* ==========================================================================
   Logo strip (Partners)
   ========================================================================== */

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.logo-tile {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.logo-tile:hover { filter: grayscale(0); opacity: 1; transform: translateY(-3px); }
.logo-tile span {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--text-2);
  font-size: 1.05rem;
}
.logo-tile:hover span { color: var(--cyan); }

/* ==========================================================================
   Insights / cards with meta
   ========================================================================== */

.insight-card { display: flex; flex-direction: column; height: 100%; }
.insight-meta {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.insight-meta .cat { color: var(--cyan); }
.insight-card .read-more {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 8px;
}

.featured-insight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
}
.featured-insight .fi-visual {
  background: var(--surface-2);
  position: relative;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.featured-insight .fi-content { padding: 48px; display: flex; flex-direction: column; justify-content: center; }

/* ==========================================================================
   Team (About)
   ========================================================================== */

.team-card { text-align: center; padding: 34px 24px; }
.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--surface-2);
  box-shadow: inset 3px 3px 8px var(--sh-dark), inset -2px -2px 7px var(--sh-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--cyan);
  font-size: 1.3rem;
}
.team-card h4 { margin-bottom: 4px; }
.team-role { font-family: var(--f-mono); font-size: 0.74rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

.value-item { display: flex; gap: 18px; padding: 26px 0; }
.value-item + .value-item { border-top: 1px solid var(--border); }
.value-num { font-family: var(--f-mono); color: var(--cyan); font-size: 0.85rem; flex-shrink: 0; padding-top: 4px; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band { text-align: center; padding: 100px 0; }
.cta-band h2 { max-width: 720px; margin: 0 auto 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: 70px 0 34px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-3); font-size: 0.88rem; max-width: 280px; }
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer-col a, .footer-col li { display: block; }
.footer-col a { color: var(--text-2); font-size: 0.9rem; padding: 6px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-3);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 15px; height: 15px; stroke: var(--text-2); }
.footer-social a:hover svg { stroke: var(--cyan); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

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

/* ==========================================================================
   Page hero (secondary pages)
   ========================================================================== */

.page-hero { padding: 170px 0 90px; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { max-width: 780px; }
.page-hero .lede { margin-top: 22px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-insight { grid-template-columns: 1fr; }
  .hero { padding: 160px 0 100px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* --- GLOBAL HOVER DROPDOWN FIX --- */
.nav-links { overflow: visible !important; }

.nav-links .dropdown {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  padding-bottom: 20px !important;
  margin-bottom: -20px !important;
}

.nav-links .dropdown-content {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 0 !important;
  min-width: 260px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  box-shadow: 9px 9px 20px var(--sh-dark), -7px -7px 16px var(--sh-light) !important;
  padding: 10px 0 !important;
  z-index: 99999 !important;
  flex-direction: column;
}

.nav-links .dropdown:hover .dropdown-content {
  display: flex !important;
}

.nav-links .dropdown-content a {
  padding: 12px 24px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  text-align: left !important;
  font-family: var(--f-body) !important;
  font-size: 0.9rem !important;
  color: var(--text-2) !important;
  transition: all 0.2s ease !important;
}

.nav-links .dropdown-content a:hover {
  background: rgba(5, 195, 169, 0.08) !important;
  color: var(--text-1) !important;
}

/* --- NAVIGATION LINKEDIN ICON STYLING --- */
.nav-social-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #0A66C2 !important; /* Official LinkedIn Blue */
  margin-left: 10px;
  transition: opacity 0.2s ease;
}

.nav-social-icon:hover {
  opacity: 0.8;
}
