/* ============================================================
   NODECYPHER — SHARED STYLESHEET v2
   Raleway (headings) + Noto Sans (body)
   Blue palette | Mixed dark/light theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800;900&family=Noto+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Blue brand palette */
  --blue-900:   #0A1628;
  --blue-800:   #0D2140;
  --blue-700:   #0F3460;
  --blue-600:   #1565C0;
  --blue-500:   #1976D2;
  --blue-400:   #2196F3;
  --blue-300:   #64B5F6;
  --blue-200:   #90CAF9;
  --blue-100:   #BBDEFB;
  --blue-50:    #E3F2FD;

  /* Cyan accent (from logo) */
  --cyan:       #00B4D8;
  --cyan-light: #48CAE4;
  --cyan-dim:   #0096C7;

  /* Dark theme */
  --dark-bg:      #080E1A;
  --dark-surface: #0D1B2E;
  --dark-card:    #101F35;
  --dark-border:  rgba(33, 150, 243, 0.15);
  --dark-border-hover: rgba(33, 150, 243, 0.4);
  --dark-text:    #E8F1FB;
  --dark-muted:   #6E8FAF;

  /* Light theme */
  --light-bg:      #F4F7FC;
  --light-surface: #FFFFFF;
  --light-border:  #D6E4F7;
  --light-text:    #0A1628;
  --light-muted:   #4A6380;

  /* Mid theme */
  --mid-bg:    #EAF1FB;

  /* Typography */
  --font-display: 'Raleway', sans-serif;
  --font-body:    'Noto Sans', sans-serif;

  /* Spacing */
  --section-pad: 100px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md:     0 8px 28px rgba(10, 22, 40, 0.12);
  --shadow-lg:     0 16px 48px rgba(10, 22, 40, 0.18);
  --shadow-blue:   0 8px 32px rgba(21, 101, 192, 0.25);
  --shadow-blue-lg:0 16px 48px rgba(21, 101, 192, 0.35);
  --glow-blue:     0 0 28px rgba(33, 150, 243, 0.18);

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--light-text);
  background: var(--light-bg);
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { font-weight: 300; line-height: 1.75; }

.accent-blue { color: var(--blue-300); }
.accent-cyan { color: var(--cyan-light); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.section-label i { font-size: 0.75rem; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header p { margin-top: 14px; font-size: 1.05rem; color: var(--light-muted); }
.section-header.dark h2 { color: var(--dark-text); }
.section-header.dark p  { color: var(--dark-muted); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.section-light   { background: var(--light-bg);      padding: var(--section-pad) 0; }
.section-white   { background: var(--light-surface);  padding: var(--section-pad) 0; }
.section-mid     { background: var(--mid-bg);          padding: var(--section-pad) 0; }
.section-dark    { background: var(--dark-bg);         padding: var(--section-pad) 0; }
.section-surface { background: var(--dark-surface);    padding: var(--section-pad) 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: var(--shadow-blue-lg);
  transform: translateY(-2px);
}
.btn-cyan {
  background: var(--cyan-dim);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,150,199,0.3);
}
.btn-cyan:hover {
  background: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,150,199,0.4);
}
.btn-outline-dark {
  background: transparent;
  color: var(--dark-text);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.btn-outline-dark:hover {
  border-color: var(--blue-300);
  color: var(--blue-200);
  background: rgba(33,150,243,0.06);
}
.btn-outline-light {
  background: transparent;
  color: var(--light-text);
  border: 1.5px solid var(--light-border);
}
.btn-outline-light:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: rgba(33,150,243,0.04);
}
.btn i { font-size: 0.85em; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-blue-dark {
  background: rgba(33,150,243,0.12);
  color: var(--blue-200);
  border: 1px solid rgba(33,150,243,0.25);
}
.badge-cyan-dark {
  background: rgba(0,180,216,0.12);
  color: var(--cyan-light);
  border: 1px solid rgba(0,180,216,0.25);
}
.badge-blue-light {
  background: rgba(21,101,192,0.08);
  color: var(--blue-700);
  border: 1px solid rgba(21,101,192,0.18);
}
.badge-tag {
  background: var(--mid-bg);
  color: var(--light-muted);
  border: 1px solid var(--light-border);
  font-size: 0.72rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease-spring);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(21,101,192,0.3);
  transform: translateY(-5px);
}
.card-dark {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease-spring);
}
.card-dark:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), var(--glow-blue);
  border-color: rgba(33,150,243,0.4);
  transform: translateY(-5px);
}
.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(33,150,243,0.1);
  border: 1px solid rgba(33,150,243,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
  font-size: 1.15rem;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-spring);
}
.card:hover .card-icon,
.card-dark:hover .card-icon {
  background: rgba(33,150,243,0.2);
  border-color: rgba(33,150,243,0.5);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 16px rgba(33,150,243,0.2);
}
.card h3         { font-size: 1.15rem; margin-bottom: 10px; color: var(--light-text); }
.card p          { font-size: 1rem; color: var(--light-muted); }
.card-dark h3    { font-size: 1.15rem; margin-bottom: 10px; color: var(--dark-text); }
.card-dark p     { font-size: 1rem; color: var(--dark-muted); }

/* ── Grids ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Checklist ────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--light-muted); }
.check-list li i { color: var(--blue-400); margin-top: 4px; flex-shrink: 0; font-size: 0.8rem; }

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--dark-border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 14, 26, 0.97);
  box-shadow: 0 4px 28px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
  transition: filter 0.25s, opacity 0.25s;
}
.logo:hover img {
  filter: drop-shadow(0 0 10px rgba(33,150,243,0.5));
  opacity: 0.9;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a, .nav-dropdown > a {
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark-muted);
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-links > a:hover, .nav-links > a.active, .nav-dropdown:hover > a {
  color: var(--dark-text);
  background: rgba(33,150,243,0.08);
}
.nav-dropdown { position: relative; }
.nav-dropdown > a i { font-size: 0.6rem; transition: transform 0.22s; }
.nav-dropdown:hover > a i { transform: rotate(180deg); }
.dropdown-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 230px;
  box-shadow: var(--shadow-lg), var(--glow-blue);
  transition: opacity 0.22s var(--ease), visibility 0s linear 0.55s;
}
/* Transparent bridge fills the 10px gap so mouse doesn't exit hover while moving down */
.dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.18s var(--ease), visibility 0s linear 0s;
  animation: dropIn 0.18s var(--ease) both;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.87rem;
  color: var(--dark-muted);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover { background: rgba(33,150,243,0.08); color: var(--dark-text); }
.dropdown-menu a i { color: var(--blue-400); width: 14px; font-size: 0.8rem; }
.dropdown-divider { height: 1px; background: var(--dark-border); margin: 6px 0; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 9px 20px; font-size: 0.86rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--dark-text);
  font-size: 1rem;
  padding: 7px 10px;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
  padding: 16px 28px 24px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 0; font-size: 0.95rem; color: var(--dark-muted); border-bottom: 1px solid var(--dark-border); }
.mobile-nav a:hover { color: var(--blue-300); }

/* ── Scroll-to-top ────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 900;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s;
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--blue-500); transform: translateY(-3px); box-shadow: var(--shadow-blue-lg); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer { background: var(--dark-bg); border-top: 1px solid var(--dark-border); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 52px; padding-bottom: 60px; }
.footer-brand p { margin-top: 18px; font-size: 0.88rem; color: var(--dark-muted); max-width: 260px; line-height: 1.75; }
.footer-logo { height: 34px; width: auto; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--dark-muted); padding: 5px 0; transition: color 0.18s, padding-left 0.2s; }
.footer-col a:hover { color: var(--blue-300); padding-left: 4px; }
.footer-offices { display: flex; flex-direction: column; gap: 18px; }
.footer-office { display: flex; gap: 10px; font-size: 0.84rem; color: var(--dark-muted); line-height: 1.55; }
.footer-office i { color: var(--blue-400); margin-top: 3px; flex-shrink: 0; font-size: 0.8rem; }
.footer-office strong { display: block; color: var(--dark-text); font-weight: 600; font-size: 0.82rem; margin-bottom: 2px; }
.footer-bottom { border-top: 1px solid var(--dark-border); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p, .footer-bottom a { font-size: 0.82rem; color: var(--dark-muted); }
.footer-bottom a:hover { color: var(--blue-300); }
.footer-links { display: flex; gap: 24px; }

/* ════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ════════════════════════════════════════════════════════════ */
.page-hero { background: var(--dark-bg); padding: 148px 0 100px; position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 72% 38%, rgba(33,150,243,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 18% 78%, rgba(0,180,216,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 { color: var(--dark-text); }
.page-hero p { color: var(--dark-muted); max-width: 600px; margin-top: 16px; font-size: 1.05rem; }
.page-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.page-hero .badge { margin-bottom: 20px; }

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.stagger > *:nth-child(1) { transition-delay: 0.04s; }
.stagger > *:nth-child(2) { transition-delay: 0.11s; }
.stagger > *:nth-child(3) { transition-delay: 0.18s; }
.stagger > *:nth-child(4) { transition-delay: 0.25s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.39s; }
.stagger > *:nth-child(7) { transition-delay: 0.46s; }
.stagger > *:nth-child(8) { transition-delay: 0.53s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .header-cta .btn-outline-dark { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .scroll-top { bottom: 20px; right: 20px; }
}
