/* ── SHARED.CSS — CODE AND SYSTEMS LTD ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #ffffff;
  color: #0f172a;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --bg:       #ffffff;
  --bg2:      #f8fafc;
  --bg3:      #f1f5f9;
  --border:   #e2e8f0;
  --border2:  #cbd5e1;
  --purple:   #6d28d9;
  --purple-l: #7c3aed;
  --purple-xl:#ede9fe;
  --blue:     #1d4ed8;
  --text:     #0f172a;
  --muted:    #64748b;
  --muted2:   #475569;
  --grad:     linear-gradient(135deg, #6d28d9, #1d4ed8);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
@media(max-width:600px){ .container { padding: 0 20px; } }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 1px 20px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 40px; height: 80px;
  display: flex; align-items: center; gap: 32px;
}
@media(max-width:600px){ .nav-inner { padding: 0 20px; } }

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  height: 45px;
  width: auto;
  display: block;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  background: transparent !important;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)) brightness(1.1) contrast(1.15);
}

.footer-logo {
  height: 45px;
  width: auto;
  display: block;
  background: transparent !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none !important;
}
.brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text); line-height: 1.15;
}
.brand-sub { font-size: 9.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }

.nav-links { display: flex; list-style: none; gap: 2px; flex: 1; }
.nav-links a {
  font-size: 13.5px; font-weight: 400; color: var(--muted2);
  text-decoration: none; padding: 7px 13px; border-radius: 7px; transition: all 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-links a.active { color: var(--purple-l); background: var(--purple-xl); font-weight: 500; }

.nav-btn { margin-left: auto; flex-shrink: 0; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; background: none; border: none; cursor: pointer; margin-left: auto;
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--muted2); border-radius: 2px; }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 12px 20px 20px; border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 14px; color: var(--muted2); text-decoration: none; padding: 10px 14px; border-radius: 8px; transition: all 0.15s; }
.mobile-menu a:hover { background: var(--bg3); color: var(--text); }

@media(max-width:760px){
  .nav-links { display: none !important; }
  .nav-btn { display: none !important; }
  .hamburger { display: flex !important; flex-direction: column; }
  .nav-brand { flex: 1; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--grad); color: #fff;
  font-size: 13.5px; font-weight: 600; padding: 10px 22px;
  border-radius: 8px; text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em; white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(109,40,217,0.25); }
.btn-primary.btn-lg { font-size: 15px; padding: 14px 28px; border-radius: 10px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--muted2);
  font-size: 13.5px; font-weight: 500; padding: 10px 22px;
  border-radius: 8px; text-decoration: none; border: 1px solid var(--border2);
  transition: all 0.2s; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--purple-l); color: var(--purple-l); background: var(--purple-xl); }
.btn-ghost.btn-lg { font-size: 15px; padding: 14px 28px; border-radius: 10px; }

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--purple-l); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before { content: ''; display: block; width: 18px; height: 1.5px; background: var(--purple-l); flex-shrink: 0; }

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -0.02em; color: var(--text); line-height: 1.1;
}
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }

/* ── PAGE HERO ── */
.page-hero {
  padding: 154px 0 76px; border-bottom: 1px solid var(--border);
  background: var(--bg2); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -80px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(36px, 5vw, 58px); font-weight: 800;
  letter-spacing: -0.025em; color: var(--text); line-height: 1.05;
  max-width: 640px; margin-bottom: 20px;
}
.page-hero p { font-size: 17px; color: var(--muted); font-weight: 300; max-width: 520px; line-height: 1.75; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 0; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 52px; }
@media(max-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media(max-width:500px){ .footer-grid { grid-template-columns: 1fr; } }


.footer-brand-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 12px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 240px; font-weight: 300; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li, .footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.15s; font-weight: 300; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
/* Hero elements always visible - no animation needed above fold */
.hero .fade-up { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


