/* Dawn aurora: a night sky warming into sunrise, futuristic yet human. */
:root {
  --night: #070a1a;
  --ink: #f4f1ff;
  --muted: #b4b2cc;
  --coral: #ff8a70;
  --violet: #a78bfa;
  --teal: #5eead4;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Sky ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.a1 { width: 60vmax; height: 40vmax; left: -15vmax; bottom: -18vmax; background: var(--coral); }
.a2 { width: 55vmax; height: 38vmax; right: -18vmax; top: -12vmax; background: var(--violet); animation-duration: 28s; animation-delay: -6s; }
.a3 { width: 45vmax; height: 30vmax; left: 30vw; top: 35vh; background: var(--teal); opacity: 0.28; animation-duration: 34s; animation-delay: -12s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(6vw, -4vh) scale(1.12) rotate(8deg); }
  100% { transform: translate(-4vw, 5vh) scale(0.95) rotate(-6deg); }
}

/* Faint star field + film grain for depth */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 14%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 68%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 82%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 52%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 9%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 61%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 40%, #fff5 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes twinkle { from { opacity: 0.5; } to { opacity: 1; } }

/* ---------- Content ---------- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(44rem, 100% - 3rem);
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

/* Glowing orb: a mind, warm at the core */
.orb { position: relative; width: 132px; height: 132px; margin-bottom: 2.5rem; }
.core {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--coral) 35%, var(--violet) 75%, transparent 100%);
  box-shadow: 0 0 40px 8px #ff8a7066, 0 0 90px 20px #a78bfa44;
  animation: breathe 5s ease-in-out infinite;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  background: conic-gradient(from 0deg, var(--coral), var(--violet), var(--teal), var(--coral)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin 14s linear infinite;
}
.r2 { inset: 14px; opacity: 0.6; animation-duration: 9s; animation-direction: reverse; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

h1 {
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  background: linear-gradient(100deg, #fff 20%, #ffd5c9 50%, #d9ccff 80%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
/* No opacity here: Safari/WebKit drops gradient-clipped text in a child
   that has its own opacity, which made "Ltd" invisible on iPhones. */
.ltd { font-weight: 300; }

.tagline {
  margin-top: 1rem;
  font-size: clamp(1.2rem, 3.2vw, 1.6rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tagline em {
  font-style: normal;
  background: linear-gradient(90deg, var(--coral), var(--violet), var(--teal));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.about { margin-top: 1.75rem; max-width: 36rem; color: var(--muted); }

.values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.values li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  background: #ffffff0d;
  border: 1px solid #ffffff1f;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.values li:hover { transform: translateY(-2px); border-color: #ffffff40; background: #ffffff17; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.coral  { background: var(--coral);  box-shadow: 0 0 10px var(--coral); }
.dot.violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.dot.teal   { background: var(--teal);   box-shadow: 0 0 10px var(--teal); }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  opacity: 0.7;
  font-size: 0.82rem;
  padding: 1.75rem;
}

/* ---------- Phones ---------- */
@supports (min-height: 100svh) {
  body { min-height: 100svh; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  main {
    width: calc(100% - 2.5rem);
    padding:
      max(2.5rem, env(safe-area-inset-top))
      0
      1.5rem;
  }

  .orb { width: 92px; height: 92px; margin-bottom: 1.75rem; }
  .core { inset: 21px; }
  .r2 { inset: 10px; }

  h1 { font-size: clamp(2.3rem, 11.5vw, 3rem); }
  .tagline { font-size: 1.15rem; margin-top: 0.6rem; }

  .about {
    margin-top: 1.4rem;
    font-size: 0.98rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  /* Values: one tidy column of equal-width chips instead of a ragged wrap */
  .values {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 17rem);
    gap: 0.6rem;
    margin-top: 1.9rem;
  }
  .values li { justify-content: center; padding: 0.7rem 1rem; }

  /* Lighter effects for phone GPUs */
  .aurora { filter: blur(60px); }
  .a1 { width: 120vw; height: 80vw; left: -40vw; bottom: -30vw; }
  .a2 { width: 110vw; height: 75vw; right: -45vw; top: -25vw; }
  .a3 { width: 90vw; height: 60vw; left: 10vw; top: 40%; }

  footer { padding: 1.25rem 1rem max(1.25rem, env(safe-area-inset-bottom)); }
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
