/* Cold Logic Capital — Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #050505;
  --bg2: #0a0a0a;
  --bg3: #0f0f0f;
  --border: #1a1a1a;
  --border2: #222222;
  --navy: #1B3A6B;
  --navy-light: #2B4E8C;
  --cream: #F5F0E8;
  --white: #ffffff;
  --dim: #888888;
  --dimmer: #444444;
  --green: #4caf50;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  backdrop-filter: blur(0px);
}

nav.scrolled {
  background: rgba(5,5,5,0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
  padding: 14px 48px;
}

.nav-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--white);
  color: var(--bg) !important;
  padding: 10px 20px;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-cta:hover { background: var(--cream) !important; color: var(--bg) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 4px 0; transition: all 0.3s; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27,58,107,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,58,107,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(27,58,107,0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--border2);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 40px;
}

.hero-badge span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--dim);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--bg);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover { background: var(--cream); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 1px solid var(--border2);
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: var(--dim); transform: translateY(-1px); }

/* STATS BAR */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 48px;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--dimmer);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* SECTIONS */
section { padding: 100px 48px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-sub {
  font-size: 17px;
  color: var(--dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--navy-light); transform: translateY(-2px); }

.card-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.card p {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
}

/* HOW IT WORKS STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.6% + 12px);
  right: calc(16.6% + 12px);
  height: 1px;
  background: linear-gradient(90deg, var(--border2), var(--navy), var(--border2));
}

.step { padding: 0 32px; text-align: center; }

.step-num {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 24px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--dim); line-height: 1.6; }

/* CASE STUDY TEASER */
.case-study-card {
  border: 1px solid var(--border2);
  border-left: 3px solid var(--navy);
  padding: 40px;
  background: var(--bg2);
}

.case-study-stats {
  display: flex;
  gap: 32px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.cs-stat { font-size: 13px; color: var(--dim); }
.cs-stat strong { color: var(--white); margin-right: 6px; }

blockquote {
  font-size: 17px;
  color: var(--dim);
  font-style: italic;
  line-height: 1.7;
  border-left: 2px solid var(--navy);
  padding-left: 20px;
  margin: 24px 0;
}

/* CTA SECTION */
.cta-section {
  background: var(--navy);
  padding: 100px 48px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand { font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.footer-tagline { font-size: 13px; color: var(--dimmer); }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 13px; color: var(--dimmer); text-decoration: none; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: 12px; color: var(--dimmer); }
.footer-bottom a { color: var(--dimmer); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* PAGE HERO (inner pages) */
.page-hero {
  padding: 160px 48px 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--dim);
  max-width: 540px;
  line-height: 1.7;
}

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); padding: 20px 24px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .hero { padding: 100px 24px 60px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .footer-inner { flex-direction: column; }
  .page-hero { padding: 120px 24px 60px; }
}
