/* ─── DataConscious AI — Shared Design System ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #112233;
  --navy-light: #1A2F45;
  --teal:       #0D9488;
  --teal-light: #14B8A6;
  --teal-pale:  #CCFBF1;
  --teal-faint: #0D948810;
  --gold:       #D4A851;
  --gold-light: #F0C87A;
  --gold-faint: #D4A85115;
  --white:      #FFFFFF;
  --off-white:  #F8FAFC;
  --slate:      #64748B;
  --slate-light:#CBD5E1;
  --slate-faint:#F1F5F9;
  --charcoal:   #1E293B;
  --purple:     #7C3AED;
  --green:      #16A34A;
  --coral:      #E05D44;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:    12px;
  --radius-sm: 6px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.2);
  --shadow-teal: 0 8px 32px rgba(13,148,136,0.2);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 72px;
  background: rgba(13,27,42,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(13,27,42,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem;
  color: white;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem;
  color: white;
}
.nav-logo-text span { color: var(--teal-light); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--slate-light);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active {
  color: white; background: rgba(255,255,255,0.07);
}
.nav-links a.active { color: var(--teal-light); }
.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--teal-light) !important; }
.nav-mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: white; font-size: 1.4rem; padding: 0.5rem;
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: #070F18;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 2.5rem 2rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--slate); font-size: 0.875rem; line-height: 1.7;
  margin: 1rem 0 1.5rem;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-light); font-size: 0.875rem;
  text-decoration: none; transition: var(--transition);
}
.footer-social a:hover { background: var(--teal); color: white; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 1.25rem;
}
.footer-col a {
  display: block; margin-bottom: 0.625rem;
  color: var(--slate-light); text-decoration: none; font-size: 0.875rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--teal-light); padding-left: 4px; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--slate); font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  color: var(--slate); font-size: 0.8rem; text-decoration: none;
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--teal-light); }

/* ─── COMMON COMPONENTS ───────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.section { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 1px;
  background: var(--teal);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.15;
  color: white; margin-bottom: 1.25rem;
}
.section-title em { color: var(--teal-light); font-style: italic; }
.section-subtitle {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--slate-light);
  max-width: 580px;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.925rem;
  text-decoration: none; transition: var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--teal); color: white;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(13,148,136,0.35); }
.btn-secondary {
  background: rgba(255,255,255,0.06); color: white;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--teal-light);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: white; transform: translateY(-2px); }
.btn-gold {
  background: var(--gold); color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.8rem; }

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(13,148,136,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tag {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  color: var(--teal-light); letter-spacing: 0.05em; text-transform: uppercase;
}
.tag-gold {
  background: rgba(212,168,81,0.15);
  border-color: rgba(212,168,81,0.3);
  color: var(--gold);
}
.tag-purple {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  color: #A78BFA;
}

/* ─── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-fade-up {
  opacity: 0; transform: translateY(28px);
  animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Scroll-triggered animations */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── NOISE OVERLAY ───────────────────────────────────────────────────────── */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ─── PAGE HEADER (inner pages) ───────────────────────────────────────────── */
.page-header {
  padding: 10rem 0 5rem;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(13,148,136,0.08) 0%, transparent 70%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.1;
  color: white; margin-bottom: 1rem;
}
.page-header h1 em { color: var(--teal-light); font-style: italic; }
.page-header p {
  font-size: 1.15rem; line-height: 1.75;
  color: var(--slate-light); max-width: 600px;
}

/* ─── DIVIDER ─────────────────────────────────────────────────────────────── */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  margin: 1.5rem 0;
  border-radius: 2px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav.mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; inset: 72px 0 0;
    background: var(--navy);
    padding: 2rem; gap: 0.5rem;
    z-index: 99;
  }
  .nav.mobile-open .nav-links a { font-size: 1.1rem; padding: 0.875rem 1rem; }
  .nav.mobile-open .nav-cta-wrap { display: flex; padding: 0 1rem; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── SHARED SCROLL INDICATOR ─────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 72px; left: 0; right: 0;
  height: 2px; z-index: 99;
  background: rgba(255,255,255,0.06);
}
.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  width: 0%;
  transition: width 0.1s;
}
