/* ==========================================================================
   RESET & BASE STYLING
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --inkor-blue: #001A70;
  --inkor-navy: #000c3b;
  --inkor-deep: #000620;
  --font-primary: 'Plus Jakarta Sans', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--inkor-deep);
  color: #ffffff;
  font-family: var(--font-primary);
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  .cursor-dot, .cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
  }
  .cursor-dot {
    width: 5px;
    height: 5px;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
  }
  .cursor-circle {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(1px);
    transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.28s ease,
                border-color 0.28s ease;
  }
  body.hovering .cursor-circle {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.85);
  }
}

/* ==========================================================================
   CANVAS & BACKGROUND LAYER (CALM, VELVETY WEBGL SHADER)
   ========================================================================== */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
  pointer-events: none;
}

/* CSS Gradient Fallback */
.canvas-fallback {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #001A70 0%, #000c3b 65%, #000414 100%);
  z-index: 0;
}

/* Cinematic Film Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Radial Vignette */
.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 40%,
    rgba(0, 5, 25, 0.4) 78%,
    rgba(0, 3, 16, 0.8) 100%
  );
}

/* ==========================================================================
   HERO CENTERPIECE (LOGO & SUBTLE ACTION BUTTON)
   ========================================================================== */
.hero-stage {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  padding: 2rem;
}

/* Interactive 3D Tilt Card (Subtle & Smooth) */
.logo-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Logo Backlight Glow */
.logo-backlight {
  position: absolute;
  width: 130%;
  height: 160%;
  top: -30%;
  left: -15%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 40, 180, 0.22) 0%,
    rgba(0, 26, 112, 0.14) 45%,
    transparent 70%
  );
  filter: blur(65px);
  z-index: -1;
  pointer-events: none;
  transform: translateZ(-20px);
  transition: opacity 0.5s ease;
}

/* Logo SVG Container */
.logo-container {
  width: min(480px, 80vw);
  max-width: 500px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.7))
          drop-shadow(0 0 45px rgba(0, 26, 112, 0.25));
  animation: logoReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: translateZ(25px);
}

.logo-container img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateZ(5px) scale(0.95) translateY(18px);
    filter: blur(8px) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  }
  100% {
    opacity: 1;
    transform: translateZ(25px) scale(1) translateY(0);
    filter: blur(0px) drop-shadow(0 18px 36px rgba(0, 0, 0, 0.7));
  }
}

/* ==========================================================================
   SUBTLE LUXURY BUTTON
   ========================================================================== */
.action-zone {
  margin-top: 2.75rem;
  animation: fadeIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
  position: relative;
}

.magnetic-wrap {
  display: inline-block;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1);
}

.luxury-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    0 10px 28px rgba(0, 4, 20, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button Shimmer Beam */
.luxury-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  transform: rotate(25deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.luxury-btn:hover::before {
  transform: translateX(450%) rotate(25deg);
}

.luxury-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 12px 35px rgba(0, 26, 112, 0.35),
    0 0 24px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.luxury-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Live Pulse Dot */
.btn-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px #60a5fa, 0 0 18px #3b82f6;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.luxury-btn:hover .btn-live-dot {
  background: #60a5fa;
  transform: scale(1.25);
  box-shadow: 0 0 14px #93c5fd;
}

.btn-text-content {
  position: relative;
  display: inline-block;
}

/* Trailing Action Arrow Icon */
.btn-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.luxury-btn:hover .btn-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.btn-icon-wrapper svg {
  width: 11px;
  height: 11px;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.3s ease;
}

.luxury-btn:hover .btn-icon-wrapper svg {
  transform: translate(1px, -1px);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
  .logo-container {
    width: 80vw;
  }
  .action-zone {
    margin-top: 2.25rem;
  }
  .luxury-btn {
    padding: 0.75rem 1.35rem;
    font-size: 0.78rem;
  }
}
