/* ============================================
   Alorny - cosmos.so inspired layout
   Floating cards with parallax + hero center
   ============================================ */

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

:root {
  --color-bg: #0d0d0d;
  --color-text: #e4e4e7;
  --color-text-muted: #71717a;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-accent: #10b981;
  --color-accent-light: #34d399;
  --border-radius-card: 16px;
  --transition-smooth: 0.6s cubic-bezier(0.35, 0.755, 0.42, 0.95);
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  overflow: hidden;
  color: var(--color-text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
}

.nav__left,
.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text);
  cursor: default;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: default;
}

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-text);
  padding: 8px 20px;
  border-radius: 100px;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  background: #fff;
  transform: scale(1.05);
}

/* === Hero Section === */
.hero {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  pointer-events: none;
}

.hero > * {
  pointer-events: auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: default;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero__badge:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--color-accent-light);
}

.hero__title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 480px;
  line-height: 1.5;
  margin: 0;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: 100px;
  background: #fff;
  color: var(--color-bg);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  margin-top: 8px;
}

.hero__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

/* === Floating Cards === */
.floating-cards {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.float-card {
  position: absolute;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  will-change: transform;
  transition: transform 0.1s linear;
  pointer-events: auto;
  cursor: default;
}

.float-card__inner {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-card:hover .float-card__inner {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.08);
  transform: scale(1.04);
}

/* Autonomous floating animation - each card gets a unique one via JS */
@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(var(--fx), calc(var(--fy) * -1)); }
  50% { transform: translate(calc(var(--fx) * -0.5), var(--fy)); }
  75% { transform: translate(calc(var(--fx) * 0.8), calc(var(--fy) * -0.6)); }
}

/* === Contact Modal === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal__content {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: var(--color-text);
}

.modal__title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.modal__text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.modal__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.modal__value {
  font-size: 13px;
  color: var(--color-text);
  text-align: right;
  margin-left: 16px;
}

.modal__actions {
  display: flex;
  gap: 12px;
}

.modal__btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
  border: none;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal__btn:hover {
  transform: scale(1.03);
}

.modal__btn--primary {
  background: #fff;
  color: #0d0d0d;
}

.modal__btn--primary:hover {
  background: #f0f0f0;
}

.modal__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Toast notification for copy */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #18181b;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-accent);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .nav {
    padding: 12px 16px;
  }

  .nav__left,
  .nav__right {
    gap: 12px;
  }

  .nav__link {
    display: none;
  }

  .nav__cta {
    font-size: 12px;
    padding: 6px 14px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__subtitle {
    font-size: 15px;
    padding: 0 16px;
  }

  .hero__cta {
    padding: 12px 28px;
    font-size: 14px;
  }

  .float-card {
    opacity: 0.6;
  }
}

@media (max-width: 480px) {
  .float-card {
    opacity: 0.4;
    transform: scale(0.7) !important;
  }

  .hero__title {
    font-size: 32px;
  }
}
