/* Yuvaprabha — coming soon page
   Aesthetic: maximalist, high-energy "campus poster" collage — hand-cut
   shapes, loud color blocking, marker-thick type — built for a youth
   audience, not a corporate landing page. */

:root {
  --ink: #1b1030;
  --paper: #fff4e3;
  --paper-dim: #f7e9d1;
  --magenta: #ff2e63;
  --orange: #ff9f1c;
  --violet: #7b2ff7;
  --teal: #00c2a8;
  --yellow: #ffd23f;

  --font-display: "Clash Display", "Space Mono", sans-serif;
  --font-mono: "Space Mono", monospace;

  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- atmosphere ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
  opacity: 0.85;
}

.blob-a {
  width: 46vmax;
  height: 46vmax;
  top: -18vmax;
  right: -16vmax;
  background: radial-gradient(circle at 35% 35%, var(--yellow), var(--orange) 60%, transparent 78%);
  animation: drift 22s ease-in-out infinite;
}

.blob-b {
  width: 34vmax;
  height: 34vmax;
  bottom: -14vmax;
  left: -12vmax;
  background: radial-gradient(circle at 60% 40%, var(--teal), transparent 72%);
  animation: drift 26s ease-in-out infinite reverse;
}

.blob-c {
  width: 20vmax;
  height: 20vmax;
  top: 38%;
  left: 62%;
  background: radial-gradient(circle at 50% 50%, var(--violet), transparent 70%);
  opacity: 0.4;
  animation: drift 18s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3vmax, -2vmax) scale(1.08); }
}

/* ---------- layout ---------- */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem clamp(1.2rem, 5vw, 3.5rem) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.1rem;
  transform: rotate(-6deg);
}

.brand-word {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand-dot { color: var(--magenta); }

.badge {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.2rem, 5vw, 3.5rem) 2rem;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--violet);
  font-weight: 700;
  margin: 0 0 1.6rem;
}

.eyebrow-line {
  width: 34px;
  height: 2px;
  background: var(--violet);
  opacity: 0.5;
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  margin: 0 0 1.4rem;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
}

.headline .line {
  display: block;
}

.headline .l2 {
  color: var(--magenta);
}

.stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
  margin-left: 0.15em;
}

.subhead {
  max-width: 560px;
  margin: 0 auto 2.4rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(27, 16, 48, 0.78);
}

/* ---------- countdown ---------- */

.countdown {
  margin: 0 auto 2.4rem;
}

.clock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--magenta);
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2rem;
}

.num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  color: var(--yellow);
}

.lbl {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.15rem;
}

.colon {
  font-family: var(--font-display);
  font-size: 1.4rem;
  opacity: 0.4;
  transform: translateY(-4px);
}

.countdown-note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(27, 16, 48, 0.55);
}

/* ---------- form ---------- */

.notify-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.notify-form input {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.95rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  width: min(320px, 80vw);
  outline: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.notify-form input::placeholder {
  color: rgba(27, 16, 48, 0.4);
}

.notify-form input:focus {
  box-shadow: 3px 3px 0 var(--teal);
  transform: translate(-1px, -1px);
}

.notify-form button {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--magenta);
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.notify-form button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--violet);
}

.notify-form button:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.notify-form button .btn-arrow {
  transition: transform 0.2s ease;
}

.notify-form button:hover .btn-arrow {
  transform: translateX(3px);
}

.notify-form button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.82rem;
  margin: 0 0 2.4rem;
  color: var(--teal);
  font-weight: 700;
}

.form-status.is-error {
  color: var(--magenta);
}

/* ---------- pills ---------- */

.pillrow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
}

.pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transform: rotate(-2deg);
}

.pill-1 { background: var(--yellow); rotate: -3deg; }
.pill-2 { background: var(--teal); color: var(--paper); rotate: 2deg; }
.pill-3 { background: var(--orange); rotate: -1deg; }
.pill-4 { background: var(--violet); color: var(--paper); rotate: 3deg; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.2rem, 5vw, 3.5rem) 2.4rem;
  font-size: 0.78rem;
  color: rgba(27, 16, 48, 0.6);
}

.footer .mailto {
  color: var(--violet);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--violet);
}

.footer .mailto:hover {
  color: var(--magenta);
  border-color: var(--magenta);
}

/* ---------- reveal on load ---------- */

.eyebrow, .headline .line, .subhead, .countdown, .notify-form, .pillrow {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.7s ease forwards;
}

.eyebrow { animation-delay: 0.05s; }
.headline .l1 { animation-delay: 0.15s; }
.headline .l2 { animation-delay: 0.25s; }
.headline .l3 { animation-delay: 0.35s; }
.subhead { animation-delay: 0.45s; }
.countdown { animation-delay: 0.55s; }
.notify-form { animation-delay: 0.65s; }
.pillrow { animation-delay: 0.75s; }

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

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .eyebrow, .headline .line, .subhead, .countdown, .notify-form, .pillrow {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .clock { padding: 0.8rem 0.9rem; gap: 0.3rem; }
  .unit { min-width: 2.5rem; }
  .footer { flex-direction: column; align-items: flex-start; }
}
