/* ==========================================================================
   LaundryRaja — Coming Soon
   Palette: navy #1F4E78 · teal #2E9CC6 · gold #E8A93D
   ========================================================================== */

:root {
  --navy-950: #060F19;
  --navy-900: #0B1B2B;
  --navy-800: #10263C;
  --navy: #1F4E78;
  --teal: #2E9CC6;
  --teal-soft: #6FD0E8;
  --gold: #E8A93D;
  --gold-soft: #F3C777;
  --white: #FFFFFF;
  --mist: #C9D8E8;
  --muted: #8FA5BE;

  --shell: 720px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--mist);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 64px) 20px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ ambient */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #17405F 0%, transparent 60%),
    radial-gradient(90% 60% at 110% 100%, #1B3E5C 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.glow--teal {
  width: 46vw; height: 46vw;
  min-width: 320px; min-height: 320px;
  top: -12vw; left: -8vw;
  background: radial-gradient(circle, rgba(46,156,198,0.55), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}

.glow--gold {
  width: 38vw; height: 38vw;
  min-width: 260px; min-height: 260px;
  bottom: -14vw; right: -10vw;
  background: radial-gradient(circle, rgba(232,169,61,0.34), transparent 70%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
}

/* floating laundry bubbles */
.bubbles { position: absolute; inset: 0; overflow: hidden; }

.bubbles span {
  position: absolute;
  bottom: -12vh;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55), rgba(255,255,255,0.06) 62%, transparent 72%);
  border: 1px solid rgba(255,255,255,0.14);
  animation: rise linear infinite;
}

@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(0.85); opacity: 0; }
  12%  { opacity: 0.65; }
  50%  { transform: translateY(-55vh) translateX(18px) scale(1); }
  88%  { opacity: 0.5; }
  100% { transform: translateY(-118vh) translateX(-14px) scale(1.06); opacity: 0; }
}

/* film grain for depth */
.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------- shell */

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* entrance animation */
.wrap > * {
  animation: fadeUp 0.9s var(--ease) both;
}
.wrap > *:nth-child(1) { animation-delay: 0.05s; }
.wrap > *:nth-child(2) { animation-delay: 0.14s; }
.wrap > *:nth-child(3) { animation-delay: 0.22s; }
.wrap > *:nth-child(4) { animation-delay: 0.30s; }
.wrap > *:nth-child(5) { animation-delay: 0.38s; }
.wrap > *:nth-child(6) { animation-delay: 0.46s; }
.wrap > *:nth-child(7) { animation-delay: 0.54s; }
.wrap > *:nth-child(8) { animation-delay: 0.62s; }
.wrap > *:nth-child(9) { animation-delay: 0.70s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------- logo */

.logo {
  width: clamp(108px, 20vw, 150px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
  animation: fadeUp 0.9s var(--ease) both, bob 7s ease-in-out 1s infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ------------------------------------------------------------------- header */

.eyebrow {
  margin: 30px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.title {
  margin: 18px 0 0;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: clamp(2.15rem, 10vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--white);
  background: linear-gradient(170deg, #FFFFFF 24%, #A9C9DE 72%, #6FA8C6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title em {
  display: inline;
  font-style: normal;
  background: linear-gradient(96deg, var(--teal-soft) 0%, var(--teal) 45%, var(--gold) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  margin: 16px 0 0;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  letter-spacing: 0.01em;
  color: var(--gold);
}

.lede {
  margin: 20px 0 0;
  max-width: 30rem;
  font-size: clamp(0.94rem, 2.6vw, 1.03rem);
  line-height: 1.68;
  color: var(--muted);
}

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

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 14px);
  width: 100%;
  max-width: 30rem;
  margin-top: 42px;
}

.unit {
  padding: clamp(12px, 3vw, 18px) 6px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.num {
  display: block;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  color: var(--white);
  line-height: 1;
}

.lbl {
  display: block;
  margin-top: 7px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown.is-live { display: none; }

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

.notify {
  width: 100%;
  max-width: 30rem;
  margin-top: 34px;
}

#notify-form {
  display: flex;
  gap: 10px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#notify-form:focus-within {
  border-color: rgba(46,156,198,0.65);
  box-shadow: 0 0 0 4px rgba(46,156,198,0.14);
}

.field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.field-icon {
  width: 18px; height: 18px;
  margin-left: 16px;
  flex: none;
  color: var(--muted);
}

.field input {
  width: 100%;
  min-width: 0;
  padding: 15px 14px 15px 11px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--white);
}

.field input::placeholder { color: rgba(143,165,190,0.75); }

.btn {
  flex: none;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1A1A2E;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 8px 22px rgba(232,169,61,0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(232,169,61,0.4); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.form-note.is-ok { color: var(--teal-soft); font-weight: 600; }
.form-note.is-err { color: #F08A7A; font-weight: 600; }

/* success state (replaces the form) */
.done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 22px;
  border-radius: 999px;
  background: rgba(46,156,198,0.12);
  border: 1px solid rgba(46,156,198,0.45);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  animation: fadeUp 0.5s var(--ease) both;
}

.done svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--teal-soft);
}

/* success state */
#notify-form.is-done {
  border-color: rgba(46,156,198,0.5);
  background: rgba(46,156,198,0.10);
  justify-content: center;
  padding: 16px;
}

#notify-form.is-done .field-icon { color: var(--teal-soft); }

/* ---------------------------------------------------------------- services */

.services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
}

.services li {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(201,216,232,0.9);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.085);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.services li:hover {
  color: var(--white);
  border-color: rgba(46,156,198,0.5);
  background: rgba(46,156,198,0.12);
}

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

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 46px;
  padding-top: 30px;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.22s;
}

.foot-link svg { width: 15px; height: 15px; opacity: 0.75; flex: none; }
.foot-link:hover { color: var(--teal-soft); }
.foot-link--plain { cursor: default; }
.foot-link--plain:hover { color: var(--mist); }

.copy {
  margin: 28px 0 0;
  font-size: 0.72rem;
  color: rgba(143,165,190,0.62);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 560px) {
  #notify-form {
    flex-direction: column;
    border-radius: 22px;
    padding: 12px;
    gap: 12px;
  }
  .field { padding: 2px 0; }
  .field-icon { margin-left: 6px; }
  .btn { padding: 15px 20px; width: 100%; }
  .done { border-radius: 22px; padding: 16px; }
  .foot { flex-direction: column; align-items: center; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .logo { animation: none; }
}
