:root {
  --bg-dark: #040407;
  --teal-bright: #5ce1e6;
  --teal-base: #4FB5AD;
  --teal-deep: #1e6b65;
  --indigo: #4f46e5;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dark: rgba(255, 255, 255, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.015);
  --glass-border: rgba(255, 255, 255, 0.05);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg-dark);
  color: var(--white);
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100dvh;
}

/* —— Custom Magnetic Cursor —— */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  display: none;
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--teal-bright);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  will-change: left, top;
  z-index: 2;
}

.cursor-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(92, 225, 230, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out-expo), height 0.35s var(--ease-out-expo), border-color 0.3s, background-color 0.3s;
  will-change: left, top;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button,
  .logo-card,
  .social-link {
    cursor: none !important;
  }

  .custom-cursor {
    display: block;
  }
}

/* —— Ambient Dynamic Blobs —— */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  will-change: transform;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, var(--teal-bright) 0%, transparent 70%);
  animation: float-blob-1 25s ease-in-out infinite;
}

.blob-2 {
  bottom: -15%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--indigo) 0%, transparent 70%);
  animation: float-blob-2 30s ease-in-out infinite;
}

.blob-3 {
  top: 35%;
  left: 30%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--teal-deep) 0%, transparent 70%);
  animation: float-blob-3 20s ease-in-out infinite;
}

@keyframes float-blob-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(8vw, 6vh) scale(1.1);
  }

  66% {
    transform: translate(-4vw, 12vh) scale(0.95);
  }
}

@keyframes float-blob-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-8vw, -8vh) scale(1.15);
  }
}

@keyframes float-blob-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(6vw, -6vh) scale(0.9);
  }
}

/* —— Canvas & Interactive Lights —— */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 225, 230, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: left, top;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

/* —— Layout Container —— */
.container {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem clamp(2rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* —— Header / Logo —— */
.header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(-20px);
  animation: fade-in-down 1.2s var(--ease-out-expo) forwards;
  animation-delay: 0.15s;
}

.logo-container {
  perspective: 800px;
}

.logo-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, border-color 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
  overflow: hidden;
}

.logo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.logo-card:hover::after {
  opacity: 1;
}

.logo-card:hover {
  border-color: rgba(92, 225, 230, 0.25);
  box-shadow: 0 30px 60px rgba(92, 225, 230, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo-img {
  width: clamp(70px, 15vw, 90px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(92, 225, 230, 0.25));
  border-radius: 14px;
  transition: transform 0.8s var(--ease-out-expo);
  transform: translateZ(20px);
}

.logo-card:hover .logo-img {
  transform: translateZ(35px) scale(1.03);
}

/* —— Main Content —— */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 800px;
  padding: 3rem 0;
}

/* —— Eyebrow —— */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  animation: fade-in-up 1s var(--ease-out-expo) forwards;
  animation-delay: 0.4s;
}

.eyebrow span {
  color: var(--teal-bright);
  text-shadow: 0 0 15px rgba(92, 225, 230, 0.25);
}

/* —— Headline & Glitch Effect —— */
.headline {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
  position: relative;
}

.headline .letter-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.05em;
}

.headline .letter {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 1.4s var(--ease-out-expo), opacity 1.4s var(--ease-out-expo);
  font-style: var(--fs, normal);
}

.headline .letter.animate-in {
  transform: translateY(0);
  opacity: 1;
}

.headline .space {
  display: inline-block;
  width: 0.26em;
}

/* Interactive Glitch Styling */
.headline-glitch {
  position: relative;
  cursor: default;
}

.glitch-active {
  animation: auto-glitch 6s infinite;
}

.headline-glitch:hover {
  animation: hover-glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes auto-glitch {
  0%,
  94%,
  98%,
  100% {
    text-shadow: none;
    transform: skew(0deg);
  }

  95% {
    text-shadow: 3px -1.5px 0 rgba(92, 225, 230, 0.7), -3px 1.5px 0 rgba(255, 0, 197, 0.7);
    transform: skew(1.5deg);
  }

  96% {
    text-shadow: -2.5px 2px 0 rgba(92, 225, 230, 0.7), 2.5px -2px 0 rgba(255, 0, 197, 0.7);
    transform: skew(-2deg);
  }

  97% {
    text-shadow: 1.5px -2.5px 0 rgba(92, 225, 230, 0.7), -1.5px 2.5px 0 rgba(255, 0, 197, 0.7);
    transform: skew(1deg);
  }

  99% {
    text-shadow: -1.5px 1.5px 0 rgba(92, 225, 230, 0.7), 1.5px -1.5px 0 rgba(255, 0, 197, 0.7);
    transform: skew(-1deg);
  }
}

@keyframes hover-glitch {
  0% {
    text-shadow: 0.05em 0 0 rgba(92, 225, 230, 0.75),
      -0.025em -0.05em 0 rgba(255, 0, 197, 0.75),
      0.025em 0.05em 0 rgba(79, 181, 173, 0.75);
  }

  15% {
    text-shadow: -0.05em -0.025em 0 rgba(92, 225, 230, 0.75),
      0.025em 0.025em 0 rgba(255, 0, 197, 0.75),
      -0.05em -0.05em 0 rgba(79, 181, 173, 0.75);
  }

  49% {
    text-shadow: -0.05em -0.025em 0 rgba(92, 225, 230, 0.75),
      0.025em 0.025em 0 rgba(255, 0, 197, 0.75),
      -0.05em -0.05em 0 rgba(79, 181, 173, 0.75);
  }

  50% {
    text-shadow: 0.025em 0.05em 0 rgba(92, 225, 230, 0.75),
      0.05em 0 0 rgba(255, 0, 197, 0.75),
      0 -0.05em 0 rgba(79, 181, 173, 0.75);
  }

  99% {
    text-shadow: 0.025em 0.05em 0 rgba(92, 225, 230, 0.75),
      0.05em 0 0 rgba(255, 0, 197, 0.75),
      0 -0.05em 0 rgba(79, 181, 173, 0.75);
  }

  100% {
    text-shadow: -0.025em 0 0 rgba(92, 225, 230, 0.75),
      -0.025em -0.025em 0 rgba(255, 0, 197, 0.75),
      -0.025em -0.05em 0 rgba(79, 181, 173, 0.75);
  }
}

/* —— Subtitle —— */
.subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 580px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 1.2s var(--ease-out-expo) forwards;
  animation-delay: 0.9s;
}

.subtitle strong {
  color: var(--white);
  font-weight: 500;
}

.subtitle span {
  color: var(--teal-base);
  font-weight: 500;
}

/* —— Footer —— */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 1.2s var(--ease-out-expo) forwards;
  animation-delay: 1.1s;
}

.social-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all 0.4s var(--ease-out-expo);
  text-decoration: none;
}

.social-link:hover {
  color: var(--bg-dark);
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.12);
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  transition: transform 0.4s var(--ease-out-expo);
}

.social-link:hover svg {
  transform: scale(1.08);
}

.copyright {
  font-size: 0.7rem;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.8;
  text-align: center;
}

.copyright-link {
  color: var(--teal-bright);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.copyright-link:hover {
  color: var(--white);
}

.heart-pulse {
  display: inline-block;
  animation: heart-pulse 1.2s infinite;
  vertical-align: middle;
  margin: 0 4px;
}

.heart-icon {
  width: 11px;
  height: 11px;
  fill: #ff2a5f;
  display: block;
  filter: drop-shadow(0 0 4px rgba(255, 42, 95, 0.7));
}

@keyframes heart-pulse {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.15);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.15);
  }

  70% {
    transform: scale(1);
  }
}

/* —— Animation Keyframes —— */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Prefers Reduced Motion —— */
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none !important;
    opacity: 0.1 !important;
  }

  .cursor-glow,
  #bg-canvas,
  .custom-cursor {
    display: none !important;
  }

  .header,
  .eyebrow,
  .subtitle,
  .footer {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .headline .letter {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .headline-glitch {
    animation: none !important;
  }

  .logo-card,
  .social-link {
    transition: none !important;
    transform: none !important;
  }

  .logo-card:hover .logo-img {
    transform: none !important;
  }
}
