/* ============================================================
   CYRTIX PUBLIC HOME — PROFESSIONAL LANDING CSS (LOCKED)
   Covers:
   - Hero
   - Divisions
   - Pillars
   - CTA Strip

   Depends on:
   - core/css/tokens.css
   - core/css/typography.css
   - core/css/layout.css
============================================================ */

/* ============================================================
   HERO CONTAINER
============================================================ */

.cx-public-hero {
  position: relative;
  padding: clamp(4.5rem, 7vw, 7.5rem) 0;
  background: linear-gradient(
    to bottom,
    rgba(10,26,63,0.05),
    rgba(0,224,255,0.04)
  );
  overflow: hidden;
}

.cx-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}


/* ============================================================
   BACKGROUND SYSTEM
============================================================ */

.cx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,26,63,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,26,63,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
}

.cx-scanline {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0,224,255,0.1),
    transparent
  );
  animation: cxScan 9s linear infinite;
}

@keyframes cxScan {
  0% { transform: translateY(-40%); }
  100% { transform: translateY(160%); }
}

/* ============================================================
   HERO CONTENT
============================================================ */

.cx-hero-content {
  max-width: 640px;
}

.cx-hero-badge {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: var(--cx-text-xs);
  font-weight: 600;
  border-radius: 999px;
  background: rgba(210,13,111,0.12);
  color: var(--cx-crimson-500);
  margin-bottom: var(--cx-space-6);
}

.cx-hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--cx-blue-900);
}

.cx-text-gradient-crimson {
  background: linear-gradient(
    90deg,
    var(--cx-crimson-500),
    var(--cx-cyan-500)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cx-hero-subtitle {
  margin-top: var(--cx-space-6);
  font-size: var(--cx-text-lg);
  color: var(--cx-steel-900);
  line-height: 1.6;
}

.cx-hero-support {
  margin-top: var(--cx-space-4);
  font-size: var(--cx-text-base);
  color: var(--cx-slate-500);
}

/* ============================================================
   ACTIONS & STATS
============================================================ */

.cx-hero-actions {
  display: flex;
  gap: var(--cx-space-4);
  margin-top: var(--cx-space-7);
  flex-wrap: wrap;
}

.cx-hero-stats {
  display: flex;
  gap: var(--cx-space-6);
  margin-top: var(--cx-space-10);
  flex-wrap: wrap;
}

.cx-stat strong {
  font-size: var(--cx-text-lg);
  font-weight: 700;
  color: var(--cx-blue-900);
  display: block;
}

.cx-stat span {
  font-size: var(--cx-text-sm);
  color: var(--cx-slate-500);
}

/* ============================================================
   HERO VISUAL ORB
============================================================ */


.cx-hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 420px;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}


.cx-orb-shell {
  width: min(320px, 80vw);
  height: min(320px, 80vw);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(
    circle,
    rgba(0,224,255,0.18),
    transparent 70%
  );
}



.cx-orb-core {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(210,13,111,0.32),
    rgba(0,224,255,0.14)
  );
  position: absolute;
  inset: 0;
  margin: auto;
  animation: cxPulse 3.6s ease-in-out infinite;
}

.cx-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,224,255,0.25);
  animation: cxSpin 12s linear infinite;
}

@keyframes cxPulse {
  0%,100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes cxSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   FLOATING PILLS
============================================================ */

.cx-floating-pill {
  position: absolute;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: var(--cx-text-sm);
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,224,255,0.25);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  animation: cxFloat 4s ease-in-out infinite;
}

@keyframes cxFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.cx-pill-1 { top: 8%; left: 4%; }
.cx-pill-2 { top: 18%; right: 6%; }
.cx-pill-3 { bottom: 18%; left: 6%; }
.cx-pill-4 { bottom: 8%; right: 4%; }


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
  .cx-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cx-hero-actions,
  .cx-hero-stats {
    justify-content: center;
  }

  .cx-hero-visual {
    margin-top: 3rem;
    height:320px;
  }

  .cx-floaring-pill {
    display:none;
}



/*============================================================ 
 * DEVISION SECTION
 ===========================================================*/

.cx-public-divisions {
  padding: var(--cx-space-16) 0;
}

.cx-division-grid {
  margin-top: var(--cx-space-10);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--cx-space-8);
}

.cx-division-card {
  padding: var(--cx-space-10);
  border-radius: var(--cx-radius-xl);
  background: white;
  border: 1px solid rgba(10, 26, 63, 0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.05);
}

.cx-division-card h3 {
  font-size: var(--cx-text-xl);
  font-weight: var(--cx-weight-bold);
  margin-bottom: var(--cx-space-4);
  color: var(--cx-blue-950);
}

.cx-division-card p {
  color: var(--cx-steel-700);
  line-height: 1.6;
  margin-bottom: var(--cx-space-6);
}

.cx-division-dark {
  background: rgba(10, 26, 63, 0.95);
}

.cx-division-dark h3,
.cx-division-dark p {
  color: white;
}


/* ============================================================
   PILLARS SECTION
============================================================ */

.cx-public-pillars {
  padding: var(--cx-space-16) 0;
  background: rgba(10, 26, 63, 0.03);
}

.cx-pillars-grid {
  margin-top: var(--cx-space-10);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--cx-space-6);
}

.cx-pillar-card {
  padding: var(--cx-space-8);
  border-radius: var(--cx-radius-xl);
  background: white;
  border: 1px solid rgba(0, 224, 255, 0.14);
  transition: transform 0.25s ease;
}

.cx-pillar-card:hover {
  transform: translateY(-6px);
}

.cx-pillar-card h4 {
  font-weight: var(--cx-weight-bold);
  margin-bottom: var(--cx-space-3);
  color: var(--cx-blue-950);
}

.cx-pillar-card p {
  font-size: var(--cx-text-sm);
  line-height: 1.5;
  color: var(--cx-steel-600);
}


/* ============================================================
   CTA STRIP
============================================================ */

.cx-public-cta {
  padding: var(--cx-space-16) 0;
}

.cx-cta-box {
  text-align: center;
  padding: var(--cx-space-14);
  border-radius: var(--cx-radius-xl);
  background: linear-gradient(
    90deg,
    rgba(220, 38, 38, 0.08),
    rgba(0, 224, 255, 0.06)
  );
  border: 1px solid rgba(0, 224, 255, 0.18);
}

.cx-cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: var(--cx-weight-black);
  color: var(--cx-blue-950);
}

.cx-cta-box p {
  margin-top: var(--cx-space-5);
  max-width: 650px;
  margin-inline: auto;
  color: var(--cx-steel-700);
  line-height: 1.6;
}

.cx-cta-box .cx-btn {
  margin-top: var(--cx-space-7);
}


/* ============================================================
   RESPONSIVE RULES
============================================================ */

@media (max-width: 980px) {

  .cx-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cx-hero-actions {
    justify-content: center;
  }

  .cx-hero-stats {
    justify-content: center;
  }

  .cx-floating-pill {
    display: none;
  }

  .cx-division-grid {
    grid-template-columns: 1fr;
  }

  .cx-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .cx-pillars-grid {
    grid-template-columns: 1fr;
  }

  .cx-cta-box {
    padding: var(--cx-space-10);
  }
}

