/* ==========================================================================
   060 · COGNITRA (كوجنيترا) — 1:1 Industrial Light-Gray (#C5C5C5) + Fixed 3D Geodesic Orb
   #C5C5C5 / #B8B8B8 curtains · #1A1A1A contrast tier & pills · Fixed 3D wireframe plexus window
   ========================================================================== */

:root {
  --cg-surface: #C5C5C5;
  --cg-surface-alt: #B8B8B8;
  --cg-dark: #1A1A1A;
  --cg-card: rgba(255, 255, 255, 0.36);
  --cg-input: rgba(255, 255, 255, 0.52);
  --cg-border: rgba(0, 0, 0, 0.18);
  --cg-ink: #1A1A1A;
  --cg-body: #3A3A3A;
  --cg-lead: #525252;
  --cg-idx: #606060;
  --cg-sans: 'IBM Plex Sans Arabic', 'Readex Pro', 'Helvetica Neue', sans-serif;
  --cg-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--cg-surface);
  color: var(--cg-ink);
  font-family: var(--cg-sans);
  letter-spacing: 0;
}

body {
  background: var(--cg-surface);
  color: var(--cg-ink);
  font-family: var(--cg-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font-family: inherit;
  letter-spacing: 0;
}

/* ======================== FIXED 3D GEODESIC ORB STAGE (z-index: 0) ======================== */
.cg-fixed-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #BFC2C7;
  overflow: hidden;
  pointer-events: none;
}

.cg-fixed-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

#cg-orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ======================== FIXED TOP NAVBAR ======================== */
.cg-navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  background: rgba(197, 197, 197, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cg-border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cg-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--cg-ink);
  white-space: nowrap;
}

.cg-nav-center,
.cg-nav-end {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.cg-nav-center a:hover,
.cg-nav-end a:hover {
  opacity: 0.65;
}

/* Fixed Bottom Overlays */
.cg-scroll-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border-radius: 11px;
  border: 1.5px solid rgba(26, 26, 26, 0.72);
  z-index: 25;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  pointer-events: none;
}

.cg-scroll-bar {
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: var(--cg-ink);
  animation: cgBounce 2s ease-in-out infinite;
}

@keyframes cgBounce {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(10px); opacity: 0.35; }
}

.cg-repost-btn {
  position: fixed;
  bottom: 16px;
  inset-inline-start: 16px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--cg-border);
  background: rgba(197, 197, 197, 0.85);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  color: var(--cg-ink);
  cursor: pointer;
}

/* ======================== 1. HERO (#main) ======================== */
.cg-hero {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.cg-hero-curtain {
  background: var(--cg-surface);
  border-bottom: 1px solid var(--cg-border);
  padding: 92px 32px 32px;
}

.cg-hero-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
}

.cg-hero-col-start {
  width: 38%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cg-h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.16;
  color: var(--cg-ink);
}

.cg-index {
  font-family: var(--cg-mono);
  font-size: 12px;
  color: var(--cg-idx);
}

.cg-hero-col-end {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cg-hero-lead {
  max-width: 440px;
  font-size: 17px;
  color: var(--cg-lead);
  line-height: 1.7;
}

.cg-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cg-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid var(--cg-dark);
  background: var(--cg-dark);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cg-btn-dark:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.cg-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid var(--cg-dark);
  background: transparent;
  color: var(--cg-dark);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cg-btn-outline:hover {
  background: var(--cg-dark);
  color: #FFFFFF;
}

.cg-hero-window {
  flex: 1;
  min-height: 360px;
  position: relative;
}

.cg-window-caption {
  position: absolute;
  bottom: 34px;
  inset-inline-end: 32px;
  max-width: 280px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(26, 26, 26, 0.78);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.65;
}

/* ======================== 2. FULLSCREEN VIDEO/ORB STATEMENT ======================== */
.cg-statement-window {
  position: relative;
  z-index: 1;
  min-height: 86dvh;
  display: flex;
  align-items: center;
  padding: 80px 32px;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.42) 0%, rgba(26, 26, 26, 0.72) 100%);
}

.cg-statement-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.cg-statement-h2 {
  max-width: 740px;
  font-size: clamp(26px, 3.3vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.cg-statement-h2 span.cg-dim-word {
  color: rgba(255, 255, 255, 0.58);
}

/* ======================== SHARED SOLID #C5C5C5 BANDS ======================== */
.cg-section {
  position: relative;
  z-index: 2;
  background: var(--cg-surface);
  border-top: 1px solid var(--cg-border);
  padding: 96px 32px;
}

.cg-section-alt {
  background: var(--cg-surface-alt);
}

.cg-container {
  max-width: 1280px;
  margin: 0 auto;
}

.cg-split-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
  margin: 14px 0 48px;
}

.cg-h2 {
  font-size: clamp(25px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--cg-ink);
}

.cg-sub {
  max-width: 520px;
  font-size: 15px;
  color: var(--cg-body);
  line-height: 1.75;
}

/* 3. Offering 3-Col Relief Cards */
.cg-offering-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cg-relief-card {
  border: 1px solid var(--cg-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cg-relief-canvas {
  width: calc(100% - 32px);
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: #BABDC2;
  display: block;
}

.cg-relief-body {
  padding: 22px 26px 26px;
}

.cg-relief-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cg-relief-body p {
  font-size: 13.5px;
  color: var(--cg-body);
  line-height: 1.7;
}

/* 4. Case Studies Stack */
.cg-case-stack {
  margin-top: 32px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cg-case-card {
  border-radius: 16px;
  padding: 24px 28px;
  background: var(--cg-card);
  border: 1px solid var(--cg-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cg-case-kicker {
  font-family: var(--cg-mono);
  font-size: 11px;
  color: var(--cg-idx);
}

/* 5. Rates 3-Col Grid (Center Inverted #1A1A1A) */
.cg-rates-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cg-rate-card {
  border-radius: 20px;
  padding: 28px;
  background: var(--cg-card);
  border: 1px solid var(--cg-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cg-rate-card.is-featured {
  background: var(--cg-dark);
  color: #FFFFFF;
  border-color: var(--cg-dark);
}

.cg-rate-price {
  font-size: 28px;
  font-weight: 700;
}

.cg-rate-list {
  list-style: disc;
  padding-inline-start: 18px;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.88;
}

/* 6. Crew 4-Col Grid */
.cg-crew-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cg-crew-card {
  border-radius: 16px;
  padding: 24px;
  background: var(--cg-card);
  border: 1px solid var(--cg-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 7. Connect Form */
.cg-form {
  margin-top: 26px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cg-pill-input {
  border-radius: 999px;
  background: var(--cg-input);
  border: 1px solid var(--cg-border);
  padding: 12px 20px;
  font-size: 14px;
  color: var(--cg-ink);
  outline: none;
}

.cg-area-input {
  border-radius: 16px;
  background: var(--cg-input);
  border: 1px solid var(--cg-border);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--cg-ink);
  outline: none;
  resize: vertical;
}

/* Footer */
.cg-footer {
  position: relative;
  z-index: 2;
  background: var(--cg-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 32px 36px;
}

.cg-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.cg-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.cg-footer-links a:hover {
  color: #FFFFFF;
}

@media (max-width: 900px) {
  .cg-crew-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cg-nav-end .cg-hide-md {
    display: none;
  }
}

@media (max-width: 720px) {
  .cg-nav-center {
    display: none;
  }
  .cg-hero-row,
  .cg-split-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .cg-hero-col-start {
    width: 100%;
  }
  .cg-offering-grid,
  .cg-rates-grid,
  .cg-crew-grid {
    grid-template-columns: 1fr;
  }
}
