/* =========================================================
   COSMIC THEME DESIGN SYSTEM - STYLESHEET
   ========================================================= */

:root {
  /* Color Tokens */
  --bg-space: #060813;
  --bg-space-deep: #020307;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 69, 0.8);
  
  --color-cyan: #00f0ff;
  --color-violet: #8a2be2;
  --color-pink: #ff007f;
  --color-amber: #ff9900;
  --color-emerald: #00ff88;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-cyan-glow: rgba(0, 240, 255, 0.35);
  
  /* Typography */
  --font-heading: 'Unbounded', 'Space Grotesk', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  /* Transitions & Shadows */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.4);
  --glow-violet: 0 0 30px rgba(138, 43, 226, 0.45);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-space);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #111827 0%, var(--bg-space) 60%, var(--bg-space-deep) 100%);
  overflow-x: hidden;
}

/* Canvas Background */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Glowing Ambient Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  will-change: transform;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #00f0ff 0%, rgba(0,240,255,0) 70%);
  top: 10%;
  left: -100px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #8a2be2 0%, rgba(138,43,226,0) 70%);
  top: 40%;
  right: -150px;
  animation-delay: -6s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ff007f 0%, rgba(255,0,127,0) 70%);
  bottom: 5%;
  left: 20%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 80px) scale(0.9); }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* =========================================================
   HEADER & LOGOS
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 8, 19, 0.7);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s var(--ease-spring), opacity 0.2s ease;
}

.logo-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.logo-main {
  height: 36px;
}

.logo-fsi {
  height: 34px;
}

.logo-kadry {
  height: 24px;
}

.divider-vertical {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: #e2e8f0;
  white-space: nowrap;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulseLight 1.8s infinite;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.badge-glitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.35);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #d8b4fe;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cosmic-glow {
  text-shadow: 0 0 35px rgba(0, 240, 255, 0.35);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Cosmic Button */
.btn-cosmic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, #00f0ff 0%, #7928ca 100%);
  color: #ffffff;
  padding: 20px 48px;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45), 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.35s var(--ease-spring);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.btn-cosmic:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.7), 0 15px 35px rgba(0, 0, 0, 0.6);
}

.btn-cosmic:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-content {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.btn-arrow {
  transition: transform 0.3s var(--ease-spring);
}

.btn-cosmic:hover .btn-arrow {
  transform: translateX(6px);
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: left 0.75s ease;
}

.btn-cosmic:hover .btn-shine {
  left: 150%;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  padding: 8px 20px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
}

.date-badge strong {
  color: var(--color-cyan);
}

.quick-chips {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #cbd5e1;
  backdrop-filter: blur(6px);
}

/* =========================================================
   ARCHETYPES (ROLES) SECTION
   ========================================================= */
.roles-section {
  padding: 70px 0;
  position: relative;
  z-index: 10;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #ffffff;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Roles Grid */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.role-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s var(--ease-spring);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.role-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Specific Card Themes */
.role-wolf:hover::before { background: var(--color-cyan); }
.role-wolf:hover { box-shadow: 0 15px 35px rgba(0, 240, 255, 0.2); }

.role-gardener:hover::before { background: var(--color-emerald); }
.role-gardener:hover { box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2); }

.role-voice:hover::before { background: var(--color-pink); }
.role-voice:hover { box-shadow: 0 15px 35px rgba(255, 0, 127, 0.2); }

.role-architect:hover::before { background: var(--color-amber); }
.role-architect:hover { box-shadow: 0 15px 35px rgba(255, 153, 0, 0.2); }

.role-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.role-emoji {
  font-size: 2rem;
  z-index: 2;
  transition: transform 0.3s var(--ease-spring);
}

.role-card:hover .role-emoji {
  transform: scale(1.15) rotate(6deg);
}

.role-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.role-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 14px;
}

.role-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #cbd5e1;
}

/* =========================================================
   TEASER & RADAR SECTION
   ========================================================= */
.teaser-section {
  padding: 60px 0 90px;
  position: relative;
  z-index: 10;
}

.teaser-box {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(138, 43, 226, 0.35);
  border-radius: 28px;
  padding: 50px 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(138, 43, 226, 0.15);
}

.teaser-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.badge-mini {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 12px;
}

.teaser-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 16px;
}

.teaser-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.timeline-inline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.time-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #475569;
  margin-bottom: 6px;
}

.step-dot.active {
  background: var(--color-cyan);
  box-shadow: 0 0 12px var(--color-cyan);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.step-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.time-line-bar {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, #475569 0%, var(--color-cyan) 100%);
  max-width: 90px;
}

.teaser-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* Radar HUD Animation */
.radar-hud {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.ring-1 { width: 45px; height: 45px; border-color: rgba(0, 240, 255, 0.6); }
.ring-2 { width: 90px; height: 90px; }
.ring-3 { width: 135px; height: 135px; border-style: dashed; }

.hud-line {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.4) 0deg, transparent 60deg);
  animation: radarSpin 3s linear infinite;
}

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

.hud-center {
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 1px;
}

.btn-pulse-huge {
  width: 100%;
  max-width: 280px;
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 45px rgba(0, 240, 255, 0.8), 0 0 20px rgba(138, 43, 226, 0.5); }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: rgba(3, 4, 9, 0.9);
  border-top: 1px solid var(--border-glass);
  padding: 40px 0 30px;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.partners-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-logo-kadry {
  height: 24px;
}

.footer-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-link {
  font-size: 0.85rem;
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE (MOBILE OPTIMIZATION)
   ========================================================= */
@media (max-width: 860px) {
  .site-header {
    padding: 10px 0;
  }

  .header-container {
    flex-direction: column;
    gap: 12px;
  }

  .brand-group {
    justify-content: center;
    gap: 12px;
  }

  .brand-logo {
    height: 28px;
  }

  .teaser-box {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    text-align: center;
    gap: 32px;
  }

  .timeline-inline {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 50px 0 40px;
  }

  .btn-cosmic {
    width: 100%;
    padding: 18px 24px;
    font-size: 1rem;
  }

  .roles-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    padding: 24px 20px;
  }
}
