/* ═══════════════════════════════════════════════════════════
   SKYRAVN — Public Site Styles
   Loaded only on public pages via <link> in SiteApp
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   BASE RESET + GLOBAL
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0a0a14;
  color: #e2e2e8;
  overflow-x: hidden;
  cursor: none;
}

a,
button {
  cursor: none;
}

::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a14;
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

html.fullscreen-mode ::-webkit-scrollbar,
html.fullscreen-mode::-webkit-scrollbar {
  display: none;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════ */
.cursor-outer {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(165, 180, 252, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background 0.3s ease,
    opacity 0.2s ease;
}
.cursor-outer.hovering {
  width: 52px;
  height: 52px;
}
.cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background: #a5b4fc;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: background 0.3s ease,
    opacity 0.2s ease;
}

/* ═══════════════════════════════════════════
   KEYFRAMES — Basic
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-15px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.05); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════
   KEYFRAMES — Advanced
   ═══════════════════════════════════════════ */
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20%      { transform: translate(-2px, 2px); }
  40%      { transform: translate(2px, -1px); }
  60%      { transform: translate(-1px, -2px); }
  80%      { transform: translate(1px, 1px); }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(0, 0, 0, 0.15); box-shadow: 0 0 0px rgba(99, 102, 241, 0); }
  50%      { border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 0 30px rgba(99, 102, 241, 0.08); }
}
@keyframes gradientRotate {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes slideReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%      { border-radius: 50% 40% 60% 50% / 40% 50% 60% 50%; }
  75%      { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes transitionLogoPulse {
  0%   { opacity: 0; transform: scale(0.8); }
  50%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes textGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatComplex {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25%      { transform: translateY(-12px) rotate(1deg); }
  50%      { transform: translateY(-20px) rotate(0deg); }
  75%      { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ═══ Rocket Launch Keyframes ═══ */
@keyframes countdownPop {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.15); opacity: 1; }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes rocketFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes crashShake {
  0%, 100% { transform: translate(0, 0); }
  10%      { transform: translate(-12px, 6px); }
  20%      { transform: translate(10px, -8px); }
  30%      { transform: translate(-8px, 4px); }
  40%      { transform: translate(6px, -3px); }
  50%      { transform: translate(-4px, 2px); }
  60%      { transform: translate(3px, -1px); }
  70%      { transform: translate(-2px, 1px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   PAGE CONTENT TRANSITIONS — Cinematic Warp
   ═══════════════════════════════════════════ */
.page-content {
  will-change: transform, opacity, filter;
}
.page-content.page-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0px) brightness(1);
  animation: pageFirstReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-content.page-idle {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0px) brightness(1);
}
.page-content.page-closing {
  animation: pageSlideOut 0.42s cubic-bezier(0.55, 0, 1, 0.3) both;
  pointer-events: none;
}
.page-content.page-hidden {
  opacity: 0;
  transform: translateX(-80vw);
  filter: blur(20px);
  pointer-events: none;
}
.page-content.page-opening {
  animation: pageSlideIn 0.72s cubic-bezier(0.22, 1.02, 0.36, 1) both;
}

@keyframes pageFirstReveal {
  0%   { opacity: 0; transform: translateY(25px) scale(0.98); filter: blur(5px) brightness(0.6); }
  55%  { filter: blur(0px) brightness(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px) brightness(1); }
}
@keyframes pageSlideOut {
  0%   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0px) brightness(1); }
  20%  { opacity: 1; transform: translateX(-5vw) scale(0.98); filter: blur(1px) brightness(1.08); }
  50%  { opacity: 0.85; transform: translateX(-20vw) scale(0.94); filter: blur(6px) brightness(1.2); }
  100% { opacity: 0; transform: translateX(-55vw) scale(0.88); filter: blur(16px) brightness(1.5); }
}
@keyframes pageSlideIn {
  0%   { opacity: 0; transform: translateX(65vw) scale(0.9); filter: blur(20px) brightness(1.5); }
  30%  { opacity: 0.9; transform: translateX(10vw) scale(0.985); filter: blur(4px) brightness(1.12); }
  55%  { opacity: 1; transform: translateX(-1.2vw) scale(1.004); filter: blur(0.5px) brightness(1.03); }
  75%  { opacity: 1; transform: translateX(0.5vw) scale(1.001); filter: blur(0px) brightness(1.01); }
  90%  { transform: translateX(-0.15vw) scale(1); filter: blur(0px) brightness(1); }
  100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0px) brightness(1); }
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL CLASSES
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
.reveal-rotate {
  opacity: 0;
  transform: translateY(40px) rotate(-3deg);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-rotate.visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.scrolled {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 3rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: none;
  transition: transform 0.3s ease;
}
.nav-logo:hover {
  transform: scale(1.05);
}
.nav-logo span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
  cursor: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after {
  width: 100%;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary {
  padding: 0.65rem 1.75rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: none;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::before {
  transform: translateX(100%);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.45);
}
.btn-primary::after {
  display: none !important;
}

.btn-outline {
  padding: 0.65rem 1.75rem;
  background: transparent;
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: none;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.btn-outline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn-outline:hover::before {
  width: 300px;
  height: 300px;
}
.btn-outline:hover {
  border-color: #6366f1;
  color: #fff;
  transform: translateY(-3px) scale(1.02);
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  padding: 7rem 2rem;
  position: relative;
}
.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #818cf8 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradientShift 6s ease-in-out infinite;
}
.section-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 520px;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   CARDS — with mouse-tracking glow
   ═══════════════════════════════════════════ */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.1) 0%,
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.25) 0%,
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}
.card:hover::before {
  opacity: 1;
}
.card:hover::after {
  opacity: 1;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}
.card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   MAGNETIC CARD (used via hook)
   ═══════════════════════════════════════════ */
.magnetic-card {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ═══════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════ */
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #a5b4fc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}

/* Orbiting deco elements in hero */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: morphBlob 12s ease-in-out infinite, floatComplex 8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   PAGE HEADER (sub-pages)
   ═══════════════════════════════════════════ */
.page-header {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   HAMBURGER
   ═══════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  z-index: 110;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  text-align: center;
}
.footer a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s;
  cursor: none;
}
.footer a:hover {
  color: #818cf8;
}

/* ═══════════════════════════════════════════
   GLOW LINE SEPARATOR
   ═══════════════════════════════════════════ */
.glow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.4) 50%, transparent 100%);
  position: relative;
}
.glow-line::after {
  content: '';
  position: absolute;
  inset: -4px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.1) 50%, transparent 100%);
  filter: blur(4px);
}

/* ═══════════════════════════════════════════
   STAGGER
   ═══════════════════════════════════════════ */
.stagger-item {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  .nav.scrolled {
    padding: 0.75rem 1.5rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70vw;
    max-width: 300px;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 2rem;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-links.open {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .section {
    padding: 3.5rem 1.25rem;
  }
  .page-header {
    min-height: 35vh;
    padding: 5rem 1.25rem 2.5rem;
  }
  .cursor-outer,
  .cursor-dot {
    display: none;
  }
  body {
    cursor: auto;
  }
  a,
  button {
    cursor: auto;
  }

  /* Hero title */
  h1 {
    font-size: clamp(2rem, 9vw, 3.5rem) !important;
    line-height: 1.2 !important;
  }

  /* Section titles responsive */
  .section-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
  }
  .section-desc {
    font-size: 1rem !important;
    padding: 0;
    max-width: 100% !important;
    line-height: 1.6 !important;
  }
  .section-label {
    font-size: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* Stat numbers */
  .stat-number {
    font-size: clamp(2.25rem, 11vw, 3rem) !important;
  }

  /* Buttons */
  .btn-primary,
  .btn-outline {
    font-size: 0.875rem !important;
    padding: 0.8rem 1.75rem !important;
    width: 100%;
    max-width: 100%;
    display: block;
  }

  /* Cards */
  .card {
    padding: 1.75rem 1.5rem !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }
  .page-header {
    padding: 4.5rem 1rem 2rem;
  }
  h1 {
    font-size: clamp(1.75rem, 10vw, 2.75rem) !important;
  }
  .section-title {
    font-size: clamp(1.5rem, 9vw, 2rem) !important;
  }
  .section-desc {
    font-size: 0.9rem !important;
  }
  .btn-primary,
  .btn-outline {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.85rem !important;
  }
  .stat-number {
    font-size: clamp(2rem, 12vw, 2.5rem) !important;
  }
}
