/* ============================================
   COGNIVA SYSTEMS — STYLESHEET
   ============================================ */

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

html { scroll-behavior: smooth; }

:root {
  --bg: #0A0F1E;
  --bg-card: #0D1525;
  --bg-card-2: #111827;
  --accent: #2D6FFF;
  --accent-2: #00C2FF;
  --text: #FFFFFF;
  --muted: #94A3B8;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --t: 0.3s ease;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { color: var(--muted); line-height: 1.75; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-cyan { color: var(--accent-2); }
.text-muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(135deg, #2D6FFF, #00C2FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(45,111,255,0.1);
  border: 1px solid rgba(45,111,255,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; max-width: 600px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: #1a57ee;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,111,255,0.45);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--t);
}
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover { color: #fff; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all var(--t);
}
#navbar.scrolled {
  background: rgba(10,15,30,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--t);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--muted);
  transition: color var(--t);
}
.mobile-menu a:hover, .mobile-menu a.active { color: #fff; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,111,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,111,255,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 25s linear infinite;
}
.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(45,111,255,0.13) 0%, transparent 70%);
  top: -300px;
  right: -200px;
  animation: glowPulse 7s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,194,255,0.07) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: glowPulse 9s ease-in-out infinite reverse;
}

.hero-content { position: relative; z-index: 1; }

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-sub-cta {
  margin-top: 18px;
}
.hero-sub-cta a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color var(--t);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-sub-cta a:hover { color: #fff; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--t);
}
.card:hover {
  border-color: rgba(45,111,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.card-icon {
  width: 46px;
  height: 46px;
  background: rgba(45,111,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.9rem; }

/* Vertical (large clickable) cards */
.v-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  cursor: pointer;
  transition: all var(--t);
  display: block;
  min-height: 260px;
}
.v-card:hover {
  border-color: rgba(45,111,255,0.4);
  background: rgba(45,111,255,0.04);
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.4);
}
.v-card .v-tag {
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.v-card h3 { font-size: 1.7rem; margin-bottom: 12px; }
.v-card p { margin-bottom: 24px; }

/* Case study cards */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--t);
}
.case-card:hover {
  border-color: rgba(45,111,255,0.3);
  transform: translateY(-4px);
}
.case-card .cs-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}
.case-card .cs-result {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin: 14px 0;
}
.case-card p { font-size: 0.9rem; margin-bottom: 6px; }
.case-card .cs-footer { margin-top: 24px; }

/* Service detail cards */
.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: all var(--t);
}
.svc-card:hover { border-color: rgba(45,111,255,0.3); }
.svc-card .svc-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.svc-card h3 { font-size: 1.35rem; margin-bottom: 16px; }
.svc-card .svc-meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.meta-row { display: flex; flex-direction: column; gap: 3px; }
.meta-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}
.meta-val { color: var(--muted); font-size: 0.88rem; }

/* ── Grids ── */
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ── Steps ── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, rgba(45,111,255,0.5), rgba(0,194,255,0.3));
  z-index: 0;
}

.step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 54px;
  height: 54px;
  background: rgba(45,111,255,0.1);
  border: 1px solid rgba(45,111,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-2);
  margin: 0 auto 18px;
}
.step h3 { margin-bottom: 10px; }

/* ── Trust items ── */
.trust-item {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
}
.trust-item:hover {
  border-color: rgba(45,111,255,0.3);
  background: rgba(45,111,255,0.03);
}
.trust-item .ti-icon { font-size: 1.4rem; margin-bottom: 12px; }
.trust-item h4 { margin-bottom: 8px; }
.trust-item p { font-size: 0.88rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(45,111,255,0.1), rgba(0,194,255,0.05));
  border: 1px solid rgba(45,111,255,0.2);
  border-radius: var(--radius);
  padding: 80px 60px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 20px; max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-banner p { margin-bottom: 32px; font-size: 1.05rem; }

/* ── Guarantee ── */
.guarantee-box {
  background: linear-gradient(135deg, rgba(45,111,255,0.07), rgba(0,194,255,0.04));
  border: 1px solid rgba(45,111,255,0.22);
  border-radius: var(--radius);
  padding: 52px;
  text-align: center;
}
.guarantee-box h2 { margin-bottom: 16px; }

/* ── Process Phases ── */
.phase {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.phase:last-child { border-bottom: none; }
.phase-label { position: sticky; top: 100px; }
.phase-num {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(45,111,255,0.12);
  line-height: 1;
  margin-bottom: 8px;
}
.phase-label h3 { font-size: 1.25rem; margin-bottom: 6px; }
.phase-timing { font-size: 0.8rem; color: var(--accent-2); font-weight: 700; }

.phase-content h4 { margin-bottom: 14px; font-size: 1.05rem; }
.phase-content p { margin-bottom: 0; }
.phase-content ul { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.phase-content li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.phase-content li::before { content: '→'; color: var(--accent-2); flex-shrink: 0; margin-top: 1px; }

/* ── Timeline ── */
.timeline {
  display: flex;
  align-items: flex-start;
  padding: 32px 0;
  overflow-x: auto;
}
.tl-item {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 110px;
}
.tl-item::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(45,111,255,0.5), transparent);
}
.tl-item:last-child::after { display: none; }
.tl-dot {
  width: 38px;
  height: 38px;
  background: rgba(45,111,255,0.12);
  border: 2px solid rgba(45,111,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-2);
}
.tl-item p { font-size: 0.75rem; text-align: center; line-height: 1.3; }

/* ── Values ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.value-item {
  background: var(--bg-card);
  padding: 40px;
  transition: background var(--t);
}
.value-item:hover { background: rgba(45,111,255,0.04); }
.value-num {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(45,111,255,0.2);
  margin-bottom: 8px;
}
.value-item h4 { margin-bottom: 10px; font-size: 1.1rem; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.what-to-expect ul { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.what-to-expect li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.what-to-expect li .check {
  width: 22px;
  height: 22px;
  background: rgba(45,111,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-2);
  font-size: 0.7rem;
  margin-top: 1px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--t), background var(--t);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(45,111,255,0.5);
  background: rgba(45,111,255,0.04);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: #0D1525; }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }

.fallback-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}
.fallback-divider::before,
.fallback-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.fallback-divider span { color: var(--muted); font-size: 0.82rem; }

/* ── Footer ── */
footer {
  background: #060A14;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { display: block; margin-bottom: 14px; font-size: 1.2rem; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--muted); font-size: 0.88rem; transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-bottom p, .footer-bottom a { font-size: 0.83rem; color: var(--muted); transition: color var(--t); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Animations ── */
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 60px; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .phase { grid-template-columns: 180px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 120px 0 80px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 28px; }
  .guarantee-box { padding: 36px 24px; }
  .phase { grid-template-columns: 1fr; gap: 20px; }
  .phase-label { position: static; }
  .phase-num { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .v-card { padding: 32px; }
  .v-card h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 100px 0 60px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
}
