:root {
  --bg: #07080b;
  --text: #eeede9;
  --muted: #7c818b;
  --aqua: #7dd3fc;
  --violet: #a78bfa;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
em {
  font-style: normal;
  background: linear-gradient(90deg, var(--aqua), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.05em;
}

/* Hero and ambient background */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 20px 100px;
}
.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
  pointer-events: none;
}
.b1 { background: rgba(125, 211, 252, 0.22); left: 18%; top: 4%; }
.b2 { background: rgba(167, 139, 250, 0.2); right: 14%; bottom: 0; }
.play .b1 { animation: fadeIn 2s ease 1.3s forwards, drift 14s ease-in-out 1.3s infinite alternate; }
.play .b2 { animation: fadeIn 2s ease 1.6s forwards, drift 18s ease-in-out 1.6s infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }

/* Drop lands at the stage center */
.stage {
  position: relative;
  width: min(40vw, 180px);
  aspect-ratio: 1221 / 1600;
  margin-bottom: 48px;
  cursor: pointer;
}
.stage:focus-visible { outline: 2px solid var(--aqua); outline-offset: 8px; }
.drop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  fill: var(--aqua);
  filter: drop-shadow(0 0 14px rgba(125, 211, 252, 0.8));
  transform: translate(-50%, -100%) translateY(-70vh);
  z-index: 2;
}
.play .drop { animation: fall 1s cubic-bezier(0.55, 0, 1, 0.45) 0.3s forwards; }
@keyframes fall {
  0% { transform: translate(-50%, -100%) translateY(-70vh); opacity: 1; }
  90% { transform: translate(-50%, -100%) translateY(0) scale(0.85, 1.25); opacity: 1; }
  100% { transform: translate(-50%, -100%) translateY(0) scale(1.8, 0.2); opacity: 0; }
}

/* Water ripples */
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 130px;
  border: 1px solid var(--aqua);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}
.play .ring { animation: ring 2s cubic-bezier(0.2, 0.6, 0.3, 1) forwards; }
.play .ring:nth-of-type(1) { animation-delay: 1.3s; }
.play .ring:nth-of-type(2) { animation-delay: 1.48s; }
.play .ring:nth-of-type(3) { animation-delay: 1.66s; }
@keyframes ring {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Phi logo: trace, fill, glow, and float */
.phi { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.phi path {
  fill: url(#g);
  fill-opacity: 0;
  stroke: url(#g);
  stroke-width: 9;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 12000);
  stroke-dashoffset: var(--len, 12000);
}
.play .phi path {
  animation: draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 1.3s forwards,
             fill 0.9s ease 2.4s forwards;
}
.play .phi { animation: glow 1.4s ease 2.5s forwards, float 6s ease-in-out 3.9s infinite; }
@keyframes fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow {
  0% { filter: drop-shadow(0 0 0 rgba(125, 211, 252, 0)); }
  40% { filter: drop-shadow(0 0 28px rgba(125, 211, 252, 0.9)); }
  100% { filter: drop-shadow(0 0 14px rgba(125, 211, 252, 0.45)); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 14px rgba(125, 211, 252, 0.45)); }
  50% { transform: translateY(-8px); filter: drop-shadow(0 0 22px rgba(167, 139, 250, 0.55)); }
}

/* Wordmark and CTA */
.hero h1 {
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 76px);
  letter-spacing: -0.045em;
  line-height: 1;
  position: relative;
}
.tag {
  margin-top: 20px;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
  position: relative;
}
.pillars {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}
.pillars span { margin-right: -0.32em; }
.pillars i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px var(--aqua);
}
.hero .pill { margin-top: 48px; position: relative; }
.fade { opacity: 0; }
.play .fade { animation: up 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d) forwards; }
@keyframes up {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes fadeIn { to { opacity: 1; } }
.pill {
  display: inline-flex;
  gap: 12px;
  padding: 16px 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pill span { transition: transform 0.3s; }
.pill:hover {
  background: var(--aqua);
  color: var(--bg);
  border-color: var(--aqua);
  box-shadow: 0 0 40px rgba(125, 211, 252, 0.35);
}
.pill:hover span { transform: translateX(4px); }

/* Footer and click effects */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  padding: 32px 20px 40px;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.fade-in { opacity: 0; animation: fadeIn 1s ease 3.9s forwards; }
.click-ring {
  position: fixed;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border: 1px solid var(--aqua);
  border-radius: 50%;
  pointer-events: none;
  z-index: 60;
  animation: clickRing 1.2s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}
@keyframes clickRing {
  from { transform: scale(0); opacity: 0.8; }
  to { transform: scale(1); opacity: 0; }
}
@media (max-width: 760px) {
  .ring { width: 340px; height: 90px; }
  .pillars { gap: 18px; letter-spacing: 0.2em; }
  .pillars span { margin-right: -0.2em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
  .drop, .ring { display: none; }
  .blob { opacity: 0.5; }
  .phi path { fill-opacity: 1; stroke-opacity: 0; }
  .fade, .fade-in { opacity: 1; }
}
