/* ============================================================
   NexReady — styles.css
   Design language mirrors CognitiaX
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

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

:root {
  /* Brand — NexReady uses blue → green like CognitiaX */
  --blue:       #0052CC;
  --blue-dark:  #0747A6;
  --green:      #36B37E;
  --green-dark: #2A9D66;
  --orange:     #FF991F;
  --red:        #FF5630;

  /* Surface */
  --ink:        #0A0F1E;
  --ink-2:      #111827;
  --ink-3:      #1a2236;
  --card-bg:    #131c2e;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);

  /* Text */
  --text-hi:    #FFFFFF;
  --text-mid:   rgba(255,255,255,0.72);
  --text-lo:    rgba(255,255,255,0.42);

  /* Gradients */
  --grad:       linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  --grad-glow:  rgba(0,82,204,0.35);

  --nav-h: 72px;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--ink);
  color: var(--text-mid);
  overflow-x: hidden;
  line-height: 1.65;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Gradient text ── */
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section labels ── */
.sec-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(54,179,126,0.1);
  border: 1px solid rgba(54,179,126,0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.sec-label.light { color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--text-hi);
  line-height: 1.15;
  margin-bottom: 16px;
}

.sec-sub {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto 56px;
  text-align: center;
  line-height: 1.7;
}

.sec-sub.light { color: var(--text-lo); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 6px 24px rgba(0,82,204,0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green), var(--blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,82,204,0.5); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary > * { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-hi);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid var(--border-2);
  transition: all 0.3s var(--ease);
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: rgba(0,82,204,0.06); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-hi);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }

/* ── Fade-up animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.75s var(--ease) forwards;
}

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.22s; }
.d3 { animation-delay: 0.34s; }
.d4 { animation-delay: 0.46s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(10,15,30,0.94);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Nav brand — clip the 2000×2000 square to just show logo content (38px tall) */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  height: 38px;
  flex-shrink: 0;
}

.nav-logo {
  /* Image is 2000×2000px, logo content spans y:660–1114 (22.7% of height)          */
  /* Scale so that 22.7% = 38px → full image = 167px. Negative margins hide the rest */
  height: 167px;
  width: auto;
  display: block;
  flex-shrink: 0;
  margin-top: -55px;
  margin-bottom: -74px;
  /* Black canvas blends seamlessly into the dark site background */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text-hi); }
.nav-links a:hover::after { width: 100%; }

.nav-btn {
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 14px rgba(0,82,204,0.35);
  margin-left: 8px;
}

.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,82,204,0.5); }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: rgba(10,15,30,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 24px 28px 32px;
}

.nav-mobile.open { display: block; }

.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.nav-mobile a {
  display: block;
  padding: 12px 0;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: color 0.25s ease;
}

.nav-mobile a:hover { color: var(--text-hi); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
  padding-top: var(--nav-h);
}

/* Noise overlay — same as CognitiaX */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Gradient blobs */
.hero-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,82,204,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(54,179,126,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(54,179,126,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: gradShift 12s ease-in-out infinite alternate;
}

@keyframes gradShift {
  0%   { opacity: 0.8; }
  100% { opacity: 1.0; }
}

.hero-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 28px 60px;
}

/* ── Hero text ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(54,179,126,0.1);
  border: 1px solid rgba(54,179,126,0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(54,179,126,0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(54,179,126,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(54,179,126,0); }
}

.hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 400;
  color: var(--text-hi);
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  color: var(--text-lo);
  transition: all 0.3s ease;
}

.hero-tags span:hover { color: var(--text-hi); border-color: rgba(54,179,126,0.4); background: rgba(54,179,126,0.06); }

/* ── Hero visual card ── */
.hero-visual { display: flex; justify-content: center; }

.hero-card-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 44px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.hero-card-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}

/* Hero logo: clip 2000px square to 52px apparent logo height */
.hero-logo-wrap {
  overflow: hidden;
  height: 52px;
  margin-bottom: 32px;
  display: block;
}
.hero-logo {
  height: 229px;
  width: auto;
  display: block;
  margin-top: -76px;
  margin-bottom: -101px;
}

.hero-stats {
  display: grid;
  gap: 20px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.hero-stat:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(0,82,204,0.3);
}

.hero-stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-lo);
  letter-spacing: 0.3px;
}

/* ── Ticker ── */
.ticker {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  flex-shrink: 0;
}

.ticker-track {
  display: flex;
  gap: 40px;
  align-items: center;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  width: max-content;
}

.ticker-track span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-lo);
}

.ticker-track .dot {
  color: var(--green);
  font-size: 8px;
  opacity: 0.6;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   MISSION / PROBLEM
   ============================================================ */
.mission {
  padding: 120px 0;
  background: var(--ink);
  text-align: center;
}

.m-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.m-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.m-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,82,204,0.04), rgba(54,179,126,0.04));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.m-card:hover { transform: translateY(-8px); border-color: rgba(0,82,204,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.m-card:hover::before { opacity: 1; }

.m-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: 16px;
  position: absolute;
  top: 20px; right: 24px;
}

.m-ico {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.m-ico svg { width: 28px; height: 28px; }

.m-card:hover .m-ico { background: rgba(0,82,204,0.12); border-color: rgba(0,82,204,0.3); }

.m-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 12px;
}

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

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  padding: 80px 0;
  background: var(--ink-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.s-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
}

.s-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 7vw, 80px);
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
}

.s-pct {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--green);
  margin-left: 2px;
  display: inline-block;
}

/* Row wrapper for num + pct inline */
.s-item { position: relative; }

.s-item .s-num { display: inline; }
.s-item .s-pct { display: inline; vertical-align: super; font-size: 22px; }

.s-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-lo);
  text-align: center;
  letter-spacing: 0.3px;
  margin-top: 8px;
}

.s-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   FEATURES / PRODUCT
   ============================================================ */
.product {
  padding: 120px 0;
  background: var(--ink);
  text-align: center;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
  transform-origin: left;
}

.feat-card:hover { transform: translateY(-7px); border-color: rgba(54,179,126,0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.feat-card:hover::after { transform: scaleX(1); }

.feat-ico {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  transition: all 0.3s ease;
}

.feat-ico svg { width: 24px; height: 24px; }

.feat-card:hover .feat-ico {
  background: rgba(0,82,204,0.15);
  border-color: rgba(0,82,204,0.4);
  color: white;
}

.feat-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 10px;
}

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

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: 120px 0;
  background: var(--ink-2);
  text-align: center;
  border-top: 1px solid var(--border);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 16px;
}

.step {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
}

.step:hover { transform: translateY(-6px); border-color: rgba(54,179,126,0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.step-n {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 10px;
}

.step p {
  font-size: 13px;
  color: var(--text-lo);
  line-height: 1.65;
}

.step-arrow {
  font-size: 22px;
  color: var(--text-lo);
  padding: 0 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 20px;
  opacity: 0.4;
}

/* ============================================================
   IMPACT
   ============================================================ */
.impact {
  padding: 120px 0;
  background: var(--ink);
  border-top: 1px solid var(--border);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.impact-left .sec-label { margin-bottom: 20px; }

.impact-left h2 { margin-bottom: 20px; }

.impact-left p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
}

.impact-right {
  display: grid;
  gap: 16px;
}

.i-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: all 0.35s var(--ease);
}

.i-card:hover { transform: translateX(8px); border-color: rgba(0,82,204,0.3); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }

.i-n {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  flex-shrink: 0;
  min-width: 100px;
  line-height: 1;
}

.i-d {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: 140px 0;
  background: var(--ink-2);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.cta-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,82,204,0.2) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* CTA logo: clip 2000px square to 56px apparent logo height */
.cta-logo-wrap {
  overflow: hidden;
  height: 56px;
  margin-bottom: 36px;
  display: block;
}
.cta-logo {
  height: 247px;
  width: auto;
  display: block;
  margin-top: -82px;
  margin-bottom: -109px;
}

.cta-inner h2 { margin-bottom: 18px; }

.cta-inner p {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 44px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #070b14;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.foot-brand { max-width: 360px; }

/* Footer logo: clip 2000px square to 34px apparent logo height */
.foot-logo-wrap {
  overflow: hidden;
  height: 34px;
  margin-bottom: 18px;
  display: block;
}
.foot-logo {
  height: 150px;
  width: auto;
  display: block;
  margin-top: -50px;
  margin-bottom: -66px;
}

.foot-brand p {
  font-size: 14px;
  color: var(--text-lo);
  line-height: 1.7;
  margin-bottom: 16px;
}

.foot-brand > a {
  font-size: 14px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.foot-brand > a:hover { color: var(--text-hi); }

.foot-powered {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.foot-powered span {
  font-size: 12px;
  color: var(--text-lo);
  font-weight: 600;
}

/* CognitiaX footer logo: clip 2000px square to 18px apparent */
.foot-cognx-wrap {
  overflow: hidden;
  height: 18px;
  display: inline-block;
}
.foot-cognx {
  height: 60px;
  width: auto;
  display: block;
  margin-top: -22px;
  margin-bottom: -20px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.foot-cognx-wrap:hover .foot-cognx { opacity: 1; }

.foot-col h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-hi);
  margin-bottom: 20px;
}

.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.foot-col a {
  font-size: 14px;
  color: var(--text-lo);
  text-decoration: none;
  transition: color 0.25s ease;
}

.foot-col a:hover { color: var(--green); }

.foot-bar {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.foot-bar p {
  font-size: 13px;
  color: var(--text-lo);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 48px; padding-bottom: 40px; }
  .hero-visual { display: none; }
  .m-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; gap: 52px; }
  .steps-row { flex-direction: column; gap: 16px; }
  .step-arrow { transform: rotate(90deg); align-self: center; padding: 0; }
}

@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .burger { display: flex; }
  .stats-grid { flex-direction: column; }
  .s-divider { width: 80px; height: 1px; }
  .feat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
