/* ===================================================================
   Kurade — Modern 3D Luxury Brand
   ===================================================================
   Dark theme · 3D elements · Glass morphism · Inter font
   =================================================================== */

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

/* ── Tokens ── */
:root {
  --bg: #060608;
  --surface: #0d0d10;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #f0ece6;
  --text-dim: #787470;
  --text-muted: #4a4744;
  --accent: #c9a96e;
  --accent-light: #e0c48a;
  --accent-glow: rgba(201, 169, 110, 0.15);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.08);
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.06);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --wm-size: clamp(5.5rem, 12vw, 16rem);

  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Base ── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain; /* Prevents pull-to-refresh on Android but keeps the bounce */
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  cursor: default;
  overflow-y: auto; /* Allows the bounce */
  overflow-x: hidden;
}

/* Radial gradient bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, var(--purple-glow), transparent),
    radial-gradient(ellipse 50% 40% at 70% 60%, var(--blue-glow), transparent),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201, 169, 110, 0.03), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 100%);
  pointer-events: none;
  z-index: 50;
  opacity: 0.7;
}

::selection {
  background: rgba(201, 169, 110, 0.15);
  color: var(--text);
}

/* ── Grain ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  width: 100%;
  height: 100%;
  mix-blend-mode: overlay;
}

/* ══════════════════════════════════════════════════════════════════
   3D FLOATING RING
   ══════════════════════════════════════════════════════════════════ */
.ring-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  perspective: 800px;
}

.ring {
  width: 400px;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  animation: ringFloat 8s ease-in-out infinite;
}

.ring__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.08);
  transform-style: preserve-3d;
}

.ring__orbit--1 {
  animation: orbitSpin1 20s linear infinite;
  border-color: rgba(201, 169, 110, 0.1);
}

.ring__orbit--2 {
  inset: 30px;
  animation: orbitSpin2 25s linear infinite;
  border-color: rgba(139, 92, 246, 0.07);
}

.ring__orbit--3 {
  inset: 60px;
  animation: orbitSpin3 18s linear infinite;
  border-color: rgba(59, 130, 246, 0.06);
}

.ring__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 20px var(--accent-glow),
    0 0 60px var(--accent-glow);
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes ringFloat {
  0%, 100% { transform: rotateX(60deg) rotateZ(0deg) translateY(0); }
  25%      { transform: rotateX(65deg) rotateZ(90deg) translateY(-10px); }
  50%      { transform: rotateX(55deg) rotateZ(180deg) translateY(5px); }
  75%      { transform: rotateX(62deg) rotateZ(270deg) translateY(-5px); }
}

@keyframes orbitSpin1 {
  to { transform: rotateZ(360deg); }
}
@keyframes orbitSpin2 {
  to { transform: rotateX(360deg) rotateZ(-360deg); }
}
@keyframes orbitSpin3 {
  to { transform: rotateY(360deg); }
}

@keyframes corePulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
}

/* ── Ambient Blobs ── */
.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

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

.blob--1 {
  width: 500px;
  height: 500px;
  top: 20%;
  left: 15%;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  animation: blobMove1 25s ease-in-out infinite alternate;
}

.blob--2 {
  width: 400px;
  height: 400px;
  top: 50%;
  right: 10%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  animation: blobMove2 30s ease-in-out infinite alternate;
  opacity: 0.6;
}

.blob--3 {
  width: 350px;
  height: 350px;
  bottom: 15%;
  left: 40%;
  background: radial-gradient(circle, var(--blue-glow), transparent 70%);
  animation: blobMove3 20s ease-in-out infinite alternate;
  opacity: 0.5;
}

@keyframes blobMove1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.2); }
}
@keyframes blobMove2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 30px) scale(1.15); }
}
@keyframes blobMove3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -50px) scale(1.1); }
}

/* ── Particles ── */
.scene-particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.scene-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
}

/* ── Cursor Glow ── */
.glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(201, 169, 110, 0.01) 0%,
    rgba(139, 92, 246, 0.005) 30%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
  will-change: left, top;
}

/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem;
  gap: 0;
}

/* ── Welcome Text ── */
.hero__welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.8s var(--expo) 0.1s forwards;
}

.hero__welcome-text {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: none;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════════════════════════════════════════
   COMPANY NAME — Clean & Premium Brand
   ══════════════════════════════════════════════════════════════════ */
.company-name {
  font-family: var(--font);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: companyFadeUp 1s var(--expo) 0.2s forwards;
  position: relative;
  z-index: 5;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 0 60px var(--accent-glow);
  will-change: transform, opacity;
  transition: transform 0.3s ease;
}

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

/* ══════════════════════════════════════════════════════════════════
   3D HUMAN
   ══════════════════════════════════════════════════════════════════ */
.human-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
  z-index: -1; /* Behind wordmark */
  pointer-events: none;
  opacity: 0;
  animation: humanFadeIn 2s var(--expo) 0.5s forwards, humanFloat 6s ease-in-out infinite alternate;
  will-change: transform, opacity;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.human-3d img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.2)) drop-shadow(0 0 20px rgba(201, 169, 110, 0.15));
  mix-blend-mode: screen;
}

@keyframes humanFadeIn {
  to { opacity: 0.85; }
}

@keyframes humanFloat {
  0%   { transform: translate(-50%, -50%) translateY(0); }
  100% { transform: translate(-50%, -50%) translateY(-15px); }
}



/* ══════════════════════════════════════════════════════════════════
   GLASS CARD — 3D floating glass morphism card
   ══════════════════════════════════════════════════════════════════ */
.glass-card {
  margin-top: 2.5rem;
  perspective: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--expo) 0.5s forwards;
}

.glass-card__inner {
  width: 200px;
  height: 56px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--expo), box-shadow 0.5s ease;
  cursor: default;
  display: flex;
  align-items: center;
  padding: 0 18px;
}

.glass-card__inner:hover {
  transform: rotateY(-5deg) rotateX(3deg) translateZ(10px);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    0 0 60px rgba(201, 169, 110, 0.05);
  border-color: rgba(201, 169, 110, 0.1);
}

/* Shine sweep on card */
.glass-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.04) 50%,
    transparent 70%
  );
  animation: cardShine 6s ease-in-out infinite;
}

@keyframes cardShine {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}

.glass-card__content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.glass-card__icon {
  font-size: 1.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(201, 169, 110, 0.5));
  animation: iconFloat 4s ease-in-out infinite alternate;
}

@keyframes iconFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.glass-card__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.glass-card__line {
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.glass-card__line--short {
  width: 50px;
}

/* ── Bottom Accent ── */
.hero__accent {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 1s var(--expo) 0.7s forwards;
}

.hero__accent-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
}

.hero__accent-dot {
  font-size: 0.4rem;
  color: var(--accent);
  opacity: 0.4;
}

/* ── Corner Marks ── */
.mark {
  position: fixed;
  z-index: 55;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--text-muted);
  opacity: 0;
  animation: markIn 1s var(--expo) 0.8s forwards;
  user-select: none;
}

.mark--tl { top: 24px; left: 24px; }
.mark--tr { top: 24px; right: 24px; }
.mark--bl { bottom: 24px; left: 24px; }
.mark--br { bottom: 24px; right: 24px; }

@keyframes markIn {
  to { opacity: 0.2; }
}

/* ── Shared ── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root {
    --wm-size: clamp(4rem, 11vw, 9rem);
  }

  .ring {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 640px) {
  :root {
    --wm-size: clamp(3.2rem, 16vw, 6rem);
  }

  .ring-container { display: none; }
  .glow { display: none; }
  .scene-particles { display: none; }
  .mark { display: none; }

  .company-name {
    font-size: clamp(1.5rem, 7vw, 2.8rem);
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 500;
  }

  .hero__welcome-text {
    font-size: clamp(0.75rem, 3vw, 1rem);
    text-transform: none;
    letter-spacing: 0.1em;
  }

  .glass-card { display: none; }

  .hero__accent { margin-top: 2rem; }

  .blob { filter: blur(70px); }
}

@media (max-width: 380px) {
  :root {
    --wm-size: clamp(2.6rem, 15vw, 4.5rem);
  }
}

@media (min-height: 900px) and (min-width: 1400px) {
  :root {
    --wm-size: clamp(9rem, 13vw, 20rem);
  }

  .ring {
    width: 500px;
    height: 500px;
  }

  .glass-card__inner {
    width: 240px;
    height: 64px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .wordmark__char {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero__welcome,
  .glass-card,
  .hero__accent,
  .human-3d {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .mark { opacity: 0.2; }
  .ring-container { display: none; }
  .scene-particle { display: none; }
}
