/* =========================================
   CognitiaX — styles.css
   ========================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { text-decoration: none; }

:root {
  --dark:   #08090D;
  --dark2:  #0F1117;
  --dark3:  #161820;
  --card:   #1A1C26;
  --border: rgba(255,255,255,.08);
  --white:  #FFFFFF;
  --off:    #F4F6FA;
  --text:   #94A3B8;
  --blue:   #3B82F6;
  --cyan:   #06B6D4;
  --green:  #10B981;

  --grad:      linear-gradient(90deg, #3B82F6, #06B6D4, #10B981);
  --grad-diag: linear-gradient(135deg, #3B82F6 0%, #06B6D4 50%, #10B981 100%);

  --fh: 'DM Serif Display', serif;
  --fb: 'Plus Jakarta Sans', sans-serif;

  --ease:   cubic-bezier(.22,1,.36,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --nav-h:  96px;
}

body {
  font-family: var(--fb);
  color: var(--white);
  background: var(--dark);
  line-height: 1.75;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s var(--ease) both; }
.stagger { animation: fadeUp .7s var(--ease) both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .30s; }
.d4 { animation-delay: .44s; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; width: 100%;
  z-index: 900;
  background: rgba(8,9,13,.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background .4s, backdrop-filter .4s, border-color .4s, box-shadow .4s;
}
nav.scrolled {
  background: rgba(8,9,13,.95);
  backdrop-filter: blur(20px) saturate(1.6);
  border-color: var(--border);
  box-shadow: 0 1px 40px rgba(0,0,0,.4);
}

.nav-wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

.nav-logo {
  height: 82px;
  width: 272px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity .2s;
}
.nav-brand:hover .nav-logo { opacity: .85; }

.nav-links { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: center; }
.nav-links a {
  font-family: var(--fb); font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.85); letter-spacing: .2px;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--grad);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-btn {
  font-family: var(--fb); font-size: 14px; font-weight: 700;
  color: var(--dark); background: var(--white);
  padding: 11px 24px; border-radius: 8px; white-space: nowrap;
  transition: opacity .2s, transform .25s var(--spring);
}
.nav-btn:hover { opacity: .92; transform: translateY(-1px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .25s; }
.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: var(--dark2); border-top: 1px solid var(--border); overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.nav-mobile.open { display: block; max-height: 400px; }
.nav-mobile ul { padding: 12px 32px 24px; }
.nav-mobile li { border-bottom: 1px solid var(--border); }
.nav-mobile a { display: block; padding: 13px 0; font-family: var(--fb); font-weight: 600; font-size: 16px; color: rgba(255,255,255,.85); transition: color .2s, padding-left .2s; }
.nav-mobile a:hover { color: var(--white); padding-left: 6px; }

/* ===== HERO ===== */
.hero { background: var(--dark); position: relative; overflow: hidden; padding-top: var(--nav-h); min-height: 100vh; display: flex; flex-direction: column; }
.hero-noise { position: absolute; inset: 0; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-grad { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 70% 60% at 80% 20%, rgba(59,130,246,.15) 0%, transparent 60%), radial-gradient(ellipse 50% 50% at 20% 80%, rgba(16,185,129,.12) 0%, transparent 60%), radial-gradient(ellipse 40% 40% at 60% 60%, rgba(6,182,212,.08) 0%, transparent 60%); pointer-events: none; }

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

.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25); color: #93C5FD; padding: 7px 16px; border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 24px; }

.hero-text h1 { font-family: var(--fh); font-size: clamp(48px, 6vw, 80px); font-weight: 400; line-height: 1.1; color: var(--white); margin-bottom: 24px; }
.hero-sub { font-size: 18px; color: var(--text); line-height: 1.8; max-width: 480px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span { font-size: 12px; font-weight: 500; color: var(--text); padding: 6px 14px; border-radius: 100px; border: 1px solid var(--border); background: rgba(255,255,255,.04); }

.hero-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px;
}

.hero-logo {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  object-position: center center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 60px rgba(59,130,246,.25)) drop-shadow(0 0 120px rgba(16,185,129,.15));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Clean stat cards below the logo */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.hero-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(12px);
  transition: background .25s, border-color .25s, transform .3s var(--spring);
}
.hero-stat:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(59,130,246,.35);
  transform: translateY(-3px);
}
.hero-stat-num {
  font-family: var(--fh);
  font-size: 28px;
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  letter-spacing: .3px;
}

.ticker { width: 100%; overflow: hidden; border-top: 1px solid var(--border); background: rgba(255,255,255,.025); padding: 14px 0; position: relative; z-index: 1; margin-top: auto; }
.ticker-track { display: inline-flex; animation: tickerScroll 28s linear infinite; white-space: nowrap; }
.ticker-track span { font-size: 13px; font-weight: 500; color: var(--text); padding: 0 24px; }
.ticker-track .dot { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; padding: 0 4px; font-size: 10px; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== BUTTONS ===== */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--grad-diag); color: #fff; padding: 13px 28px; border-radius: 8px; font-family: var(--fb); font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: transform .3s var(--spring), box-shadow .3s; box-shadow: 0 8px 32px rgba(59,130,246,.3); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 48px rgba(59,130,246,.4); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: rgba(255,255,255,.85); padding: 13px 28px; border-radius: 8px; font-family: var(--fb); font-weight: 700; font-size: 15px; border: 1px solid rgba(255,255,255,.25); cursor: pointer; transition: border-color .25s, color .25s, transform .3s var(--spring); }
.btn-outline:hover { border-color: rgba(255,255,255,.5); color: var(--white); transform: translateY(-1px); }
.btn-white { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--dark); padding: 15px 36px; border-radius: 8px; font-family: var(--fb); font-weight: 700; font-size: 15px; transition: transform .3s var(--spring), box-shadow .3s; box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.btn-white:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 48px rgba(0,0,0,.4); }

/* ===== SECTION LABELS & HEADINGS ===== */
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; display: block; }
.sec-label.light { color: rgba(255,255,255,.6); }
.mission h2, .product h2, .impact-left h2, .process h2 { font-family: var(--fh); font-size: clamp(32px, 4.5vw, 52px); font-weight: 400; line-height: 1.2; margin-bottom: 16px; }
.process h2 { color: var(--white); }
.mission h2, .product h2, .impact-left h2 { color: #0F1117; }
.sec-sub { font-size: 17px; color: #64748B; line-height: 1.75; max-width: 600px; margin: 0 auto 72px; text-align: center; }
.sec-sub.light { color: rgba(255,255,255,.55); }

/* ===== MISSION ===== */
.mission { background: var(--off); padding: 100px 0; text-align: center; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.m-card { background: var(--white); border: 1px solid #E8EDF5; border-radius: 20px; padding: 40px 32px; text-align: center; position: relative; overflow: hidden; transition: transform .4s var(--spring), box-shadow .35s, border-color .3s; }
.m-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--grad-diag); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.m-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.10); border-color: #C7D5EE; }
.m-card:hover::before { transform: scaleX(1); }
.m-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #C0C8DC; margin-bottom: 20px; text-align: center; }
.m-ico { font-size: 56px; margin-bottom: 20px; display: block; text-align: center; transition: transform .35s var(--spring); }
.m-card:hover .m-ico { transform: scale(1.15) rotate(-5deg); }
.m-card h3 { font-family: var(--fh); font-size: 20px; font-weight: 400; color: #0F1117; margin-bottom: 10px; text-align: center; }
.m-card p { font-size: 15px; color: #64748B; line-height: 1.75; text-align: center; }

/* ===== STATS ===== */
.stats-section { background: var(--dark2); padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: flex; align-items: center; justify-content: space-around; gap: 32px; }
.s-item { text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; }
.s-num { font-family: var(--fh); font-size: clamp(60px, 8vw, 96px); font-weight: 400; line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline; }
.s-pct { font-family: var(--fh); font-size: clamp(28px, 4vw, 44px); font-weight: 400; line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline; }
.s-lbl { font-size: 13px; font-weight: 500; color: var(--text); letter-spacing: .5px; text-transform: uppercase; margin-top: 10px; }
.s-divider { width: 1px; height: 72px; background: var(--border); flex-shrink: 0; }

/* ===== PRODUCT ===== */
.product { background: var(--white); padding: 100px 0; text-align: center; }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; text-align: left; }
.prod-info h3 { font-family: var(--fh); font-size: clamp(24px, 3vw, 34px); font-weight: 400; color: #0F1117; line-height: 1.2; margin-bottom: 18px; }
.prod-info > p { font-size: 16px; color: #64748B; line-height: 1.8; margin-bottom: 28px; }
.feat { margin-bottom: 36px; }
.feat li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; font-size: 15px; font-weight: 600; color: #1E293B; border-bottom: 1px solid #F1F5F9; }
.feat li:first-child { border-top: 1px solid #F1F5F9; }
.ck { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-diag); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.prod-card { width: 100%; align-self: start; }
.prod-card-inner { background: var(--dark2); border-radius: 20px; border: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.prod-card-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,.12) 0%, transparent 60%); pointer-events: none; }
.prod-logo { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; display: block; filter: drop-shadow(0 4px 20px rgba(59,130,246,.1)); animation: heroFloat 6s ease-in-out infinite; }
.prod-tagline { font-family: var(--fb); font-size: 16px; font-weight: 700; background: linear-gradient(90deg, #3B82F6, #06B6D4, #10B981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 14px; text-align: center; position: relative; z-index: 1; letter-spacing: .3px; padding: 24px 24px 0; }
.prod-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; z-index: 1; padding: 0 24px 24px; }
.prod-pills span { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: #93C5FD; padding: 7px 16px; border-radius: 100px; font-size: 12px; font-weight: 600; transition: background .2s, border-color .2s; }

/* ===== PROCESS ===== */
.process { background: var(--dark); padding: 100px 0; text-align: center; border-top: 1px solid var(--border); }
.steps-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0; align-items: start; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px 24px; text-align: left; transition: border-color .3s, transform .4s var(--spring), box-shadow .3s; }
.step:hover { border-color: rgba(59,130,246,.4); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.step-n { font-family: var(--fh); font-size: 36px; font-weight: 400; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; display: block; line-height: 1; }
.step h4 { font-family: var(--fh); font-size: 18px; font-weight: 400; color: var(--white); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text); line-height: 1.7; }
.step-arrow { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.25); font-size: 20px; padding: 0 12px; padding-top: 48px; }

/* ===== IMPACT ===== */
.impact { background: var(--off); padding: 100px 0; }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.impact-left .sec-label { color: var(--blue); }
.impact-left h2 { margin-bottom: 18px; }
.impact-left p { font-size: 16px; color: #64748B; line-height: 1.8; margin-bottom: 36px; }
.i-card { background: var(--white); border: 1px solid #E8EDF5; border-radius: 16px; padding: 24px 28px; display: flex; align-items: center; gap: 24px; margin-bottom: 16px; transition: transform .35s var(--spring), box-shadow .3s, border-color .3s; }
.i-card:last-child { margin-bottom: 0; }
.i-card:hover { transform: translateX(8px); box-shadow: 0 12px 40px rgba(0,0,0,.08); border-color: #C7D5EE; }
.i-n { font-family: var(--fh); font-size: 44px; font-weight: 400; line-height: 1; flex-shrink: 0; min-width: 105px; }
.i-d { font-size: 15px; font-weight: 600; color: #1E293B; line-height: 1.5; }

/* ===== CTA ===== */
.cta-section { background: var(--dark); padding: 130px 0; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59,130,246,.18) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 30% 100%, rgba(16,185,129,.12) 0%, transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; }
.cta-logo {
  width: 500px;
  height: 200px;
  max-width: 90vw;
  object-fit: cover;
  object-position: center center;
  margin: 0 auto 40px;
  display: block;
  filter: drop-shadow(0 0 40px rgba(59,130,246,.35));
  animation: heroFloat 7s ease-in-out infinite;
}
.cta-section h2 { font-family: var(--fh); font-size: clamp(36px, 5vw, 60px); font-weight: 400; color: var(--white); margin-bottom: 18px; line-height: 1.15; }
.cta-section p { font-size: 18px; color: var(--text); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }

/* ===== FOOTER ===== */
footer { background: var(--dark2); border-top: 1px solid var(--border); padding: 72px 0 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.foot-logo {
  width: 280px;
  height: 120px;
  display: block;
  margin-bottom: 20px;
  object-fit: cover;
  object-position: center center;
  transition: opacity .2s;
}
.foot-logo:hover { opacity: .85; }
.foot-brand p { font-size: 14px; color: var(--text); line-height: 1.75; margin-bottom: 14px; }
.foot-brand a { font-size: 14px; font-weight: 600; color: var(--cyan); transition: opacity .2s; }
.foot-brand a:hover { opacity: .8; }
.foot-col h5 { font-family: var(--fb); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--text); transition: color .2s; }
.foot-col a:hover { color: var(--white); }
.foot-bar { padding: 24px 32px; text-align: center; }
.foot-bar p { font-size: 13px; color: rgba(255,255,255,.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-wrap { grid-template-columns: 1fr; padding: 80px 32px 60px; }
  .hero-visual { order: -1; }
  .hero-logo { max-width: 320px; margin: 0 auto; }
  .m-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .step-arrow { display: none; }
  .impact-grid { grid-template-columns: 1fr; gap: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { flex-wrap: wrap; }
  .s-divider { display: none; }
  .s-item { flex: 1 1 30%; }
}
@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .burger { display: flex; }
  .hero-text h1 { font-size: 44px; }
  .m-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-logo { height: 52px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-outline, .btn-white { text-align: center; justify-content: center; }
  .cta-section { padding: 90px 0; }
}
