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

:root {
  --ocean-deep:   #0a2e38;
  --ocean-mid:    #0d4a5a;
  --teal:         #1a7a6e;
  --sage:         #4caf85;
  --sand:         #e8d5a3;
  --foam:         #c8f0e8;
  --accent:       #6fdcb8;
  --text:         #e8f8f4;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--ocean-deep);
  font-family: Georgia, 'Times New Roman', serif;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ── Ripple canvas (behind everything) ── */
#ripple-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

/* ── Organic background blobs ── */
.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: drift linear infinite;
}

.blob-1 {
  width: clamp(260px, 45vw, 700px);
  height: clamp(220px, 38vw, 600px);
  background: radial-gradient(circle at 40% 40%, var(--teal), var(--ocean-mid));
  top: -10%;
  left: -12%;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 55%;
  animation-duration: 22s;
  animation-delay: 0s;
}

.blob-2 {
  width: clamp(200px, 35vw, 550px);
  height: clamp(240px, 42vw, 650px);
  background: radial-gradient(circle at 60% 50%, var(--sage), var(--teal));
  bottom: -15%;
  right: -10%;
  border-radius: 40% 60% 30% 70% / 60% 40% 65% 35%;
  animation-duration: 28s;
  animation-delay: -8s;
}

.blob-3 {
  width: clamp(180px, 28vw, 420px);
  height: clamp(180px, 28vw, 420px);
  background: radial-gradient(circle at 50% 50%, var(--accent), var(--teal));
  top: 55%;
  left: 5%;
  border-radius: 55% 45% 65% 35% / 45% 55% 45% 55%;
  animation-duration: 18s;
  animation-delay: -4s;
  opacity: 0.22;
}

.blob-4 {
  width: clamp(150px, 24vw, 380px);
  height: clamp(120px, 20vw, 300px);
  background: radial-gradient(circle at 45% 45%, var(--foam), var(--sage));
  top: 8%;
  right: 5%;
  border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
  animation-duration: 24s;
  animation-delay: -14s;
  opacity: 0.2;
}

.blob-5 {
  width: clamp(300px, 55vw, 800px);
  height: clamp(300px, 55vw, 800px);
  background: radial-gradient(circle at 50% 50%, var(--ocean-mid), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 48% 52% 60% 40% / 52% 48% 52% 48%;
  animation-duration: 32s;
  animation-delay: -6s;
  opacity: 0.4;
}

@keyframes drift {
  0%   { transform: translate(0, 0)      rotate(0deg)   scale(1); }
  25%  { transform: translate(3%, 2%)    rotate(5deg)   scale(1.04); }
  50%  { transform: translate(-2%, 4%)   rotate(-4deg)  scale(0.97); }
  75%  { transform: translate(2%, -3%)   rotate(6deg)   scale(1.02); }
  100% { transform: translate(0, 0)      rotate(0deg)   scale(1); }
}

/* blob-5 override so it stays centred */
.blob-5 {
  animation-name: drift-center;
}
@keyframes drift-center {
  0%   { transform: translate(-50%, -50%) scale(1)    rotate(0deg); }
  33%  { transform: translate(-50%, -50%) scale(1.06) rotate(4deg); }
  66%  { transform: translate(-50%, -50%) scale(0.96) rotate(-3deg); }
  100% { transform: translate(-50%, -50%) scale(1)    rotate(0deg); }
}

/* ── Main stage ── */
.stage {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

/* ── Logo text ── */
.logo {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
  cursor: default;

  /* fluid font: 10vw on mobile up to ~120px on wide screens */
  font-size: clamp(2.6rem, 10vw, 7.5rem);

  /* glass-effect drop shadow */
  filter: drop-shadow(0 0 40px rgba(111, 220, 184, 0.35));
}

.word {
  display: inline;
  transition: color 0.4s ease;
}

.love {
  color: var(--foam);
}

.turtles {
  color: var(--accent);
}

.tld {
  color: var(--sage);
  font-size: 0.65em;
  vertical-align: baseline;
}

/* Hover glow on whole logo */
.logo:hover .love    { color: #ffffff; }
.logo:hover .turtles { color: #a8fce0; }
.logo:hover .tld     { color: var(--foam); }

/* ── Entrance animation ── */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: drop-shadow(0 0 0px rgba(111, 220, 184, 0));
  }
  to {
    opacity: 1;
    transform: translateY(0)    scale(1);
    filter: drop-shadow(0 0 40px rgba(111, 220, 184, 0.35));
  }
}

.logo {
  animation: rise-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

/* ── Subtle float after entrance ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.logo.floating {
  animation: float 6s ease-in-out infinite;
}

/* ── Ripple click dot ── */
.ripple-dot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  background: rgba(111, 220, 184, 0.45);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out 0.9s ease-out forwards;
}

@keyframes ripple-out {
  to {
    transform: translate(-50%, -50%) scale(6);
    opacity: 0;
  }
}
