/* ==========================================================================
   Causara Solutions — Global Styles
   ========================================================================== */

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

:root {
  --pink: #ff2ea6;
  --purple: #a020f0;
  --dark: #0b0b16;
  --dark-card: #111124;
  --dark-border: #1f1f35;
  --text: #e2e2f0;
  --text-muted: #8888a8;
  --gradient: linear-gradient(135deg, var(--pink), var(--purple));
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Network Background Canvas ---------- */
#network-bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#network-bg-wrapper canvas {
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* Content sits above the canvas */
.page-content {
  position: relative;
  z-index: 1;
}

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-border);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.logo span { color: var(--pink); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* Mobile burger */
.burger { display: none; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 46, 166, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 46, 166, 0.45);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--pink);
  background: rgba(255, 46, 166, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 80px 0;
}

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

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Floating glow */
.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,46,166,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-centered .section-header { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid-5 { grid-template-columns: repeat(5, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: rgba(17, 17, 36, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(255, 46, 166, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 46, 166, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 50%;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Step connector line */
.steps-grid .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -16px;
  width: calc(100% - 40px);
  height: 1px;
  background: linear-gradient(90deg, var(--pink), transparent);
  opacity: 0.3;
  transform: translateX(50%);
}

/* ---------- Two-Column Layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-text h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 16px;
}

.split-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ---------- Stats Row ---------- */
.stats-row {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 60px 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.stat { text-align: center; }
.stat-value {
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.cta-banner h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.cta-banner p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
}

.cta-banner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255,46,166,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--dark-border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ---------- Team Cards ---------- */
.team-card {
  text-align: center;
}

.team-card .card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,46,166,0.15), rgba(160,32,240,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  padding: 16px;
}

/* ---------- Platform Features ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-row:nth-child(even) .feature-visual { order: -1; }

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(17, 17, 36, 0.5);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  min-height: 280px;
}

.feature-visual img {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 20px rgba(255,46,166,0.3));
}

.feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.feature-text ul {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.feature-text ul li {
  font-size: 15px;
  color: var(--text-muted);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.feature-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid .step::after { display: none; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
}

@media (max-width: 768px) {
  .cards-grid-5, .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 60px 0; }
  .section { padding: 60px 0; }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    flex-direction: column;
    background: rgba(11, 11, 22, 0.97);
    backdrop-filter: blur(20px);
    padding: 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav-links.open { transform: translateX(0); }
  .burger { display: block; }

  .stats-row { gap: 32px; }
  .stat-value { font-size: 36px; }
}

@media (max-width: 480px) {
  .cards-grid-5, .cards-grid-4, .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

/* ---------- Scroll animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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