/* ============================================================
   Jonatas Baptista — Coming Soon page
   Pure CSS (no JavaScript)
   ============================================================ */

:root {
  --bg-deep: #060a14;
  --bg-mid:  #0b1220;
  --red:     #e01f26;
  --blue:    #1668d8;
  --text:    #f2f5fa;
  --muted:   #8b96ab;
  --border:  rgba(255, 255, 255, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  /* `safe center` keeps the content centred when it fits, but pins it to the
     top (instead of clipping it) once it is taller than the viewport. */
  align-items: center;
  align-items: safe center;
  padding: 36px 24px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%,   rgba(22, 104, 216, 0.15), transparent 65%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(224, 31, 38, 0.11),  transparent 65%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
}

/* Fine grid overlay for depth */
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
}

/* Slow drifting colour orbs echoing the logo swoosh */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.orb--red {
  width: 460px;
  height: 460px;
  background: var(--red);
  top: -12%;
  left: -8%;
  animation: drift-a 22s ease-in-out infinite;
}

.orb--blue {
  width: 520px;
  height: 520px;
  background: var(--blue);
  right: -10%;
  bottom: -18%;
  animation: drift-b 26s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(70px, 50px) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-60px, -45px) scale(1.15); }
}

/* ------------------------------------------------------------
   Layout — everything is centred on a single vertical axis
   ------------------------------------------------------------ */

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* ------------------------------------------------------------
   Logo
   ------------------------------------------------------------ */

.logo-wrap {
  position: relative;
  display: block;
  width: 176px;
  max-width: 54vw;
  /* Top padding leaves headroom for the float animation so the mark never
     rides up against the edge of the viewport. */
  padding-top: 10px;
  margin: 0 auto 24px;
  animation-delay: 0.1s;
}

/* Soft halo behind the mark */
.logo-wrap::after {
  content: '';
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  filter: blur(26px);
  z-index: -1;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

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

/* ------------------------------------------------------------
   Name + positioning statement
   ------------------------------------------------------------ */

h1 {
  font-size: clamp(1.5rem, 5.5vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  animation-delay: 0.3s;
}

/* Headline — the promise. Forced onto exactly two lines via .pitch-break. */
.pitch {
  max-width: 100%;
  text-wrap: balance;
  font-size: clamp(1rem, 3.4vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text);
  animation-delay: 0.42s;
}

/* Subtle gradient wash on the headline, only where it is supported */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .pitch {
    background: linear-gradient(100deg, #ffffff 20%, #cfe0f7 55%, #ffd7d8 90%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
  }
}

/* Who it is for */
.pitch-sub {
  max-width: 44ch;
  color: #b6c0d1;
  font-size: clamp(0.88rem, 2.6vw, 0.98rem);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 18px;
  animation-delay: 0.54s;
}

/* Proof line */
.credibility {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: clamp(0.7rem, 2.2vw, 0.78rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-bottom: 38px;
  animation-delay: 0.66s;
}

.lede {
  color: rgba(139, 150, 171, 0.75);
  font-size: clamp(0.85rem, 2.6vw, 0.94rem);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 34px;
  animation-delay: 0.78s;
}

/* ------------------------------------------------------------
   Loading bar
   ------------------------------------------------------------ */

.loader {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 38px;
  animation-delay: 0.88s;
}

.track {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fill {
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #ffffff, var(--blue));
  animation: sweep 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes sweep {
  0%   { transform: translateX(-115%); }
  100% { transform: translateX(265%); }
}

.loader-label {
  margin-top: 14px;
  color: rgba(139, 150, 171, 0.8);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Enquiries
   ------------------------------------------------------------ */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation-delay: 1s;
}

.contact-label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: var(--text);
  font-size: clamp(0.82rem, 2.6vw, 0.95rem);
  font-weight: 400;
  text-decoration: none;
  word-break: break-all;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
}

.mail-btn:hover,
.mail-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 30px rgba(22, 104, 216, 0.22);
  outline: none;
}

.mail-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

footer {
  margin-top: 44px;
  color: rgba(139, 150, 171, 0.5);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  animation-delay: 1.12s;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 480px) {
  .logo-wrap {
    margin-bottom: 26px;
  }

  /* Two lines would force the type too small on a narrow phone, so let the
     headline wrap naturally here. The space before the <br> keeps the words
     separated once it is hidden. */
  .pitch-break {
    display: none;
  }

  .credibility {
    margin-bottom: 30px;
  }

  .lede {
    margin-bottom: 28px;
  }

  .mail-btn {
    gap: 8px;
    padding: 12px 18px;
  }

  footer {
    margin-top: 32px;
  }
}

/* Short viewports (laptops, landscape phones) — tighten the vertical rhythm
   so the whole page still fits without scrolling. */
@media (max-height: 780px) {
  body {
    padding-block: 28px;
  }

  .logo-wrap {
    width: 148px;
    margin-bottom: 18px;
  }

  h1 {
    margin-bottom: 12px;
  }

  .pitch,
  .pitch-sub {
    margin-bottom: 12px;
  }

  .credibility {
    margin-bottom: 24px;
  }

  .lede {
    margin-bottom: 24px;
  }

  .loader {
    margin-bottom: 28px;
  }

  footer {
    margin-top: 28px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .fill {
    width: 100%;
  }
}
