/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --green:        #4EE87A;
  --green-hover:  #6df593;
  --overlay:      rgba(15, 60, 30, 0.74);
  --glass:        rgba(18, 18, 18, 0.55);
  --glass-border: rgba(255, 255, 255, 0.15);
}

/* ── Base ──────────────────────────────────────────────────────── */
html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background ────────────────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-img {
  position: absolute;
  inset: 0;
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

/* ── Page layout ───────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh; /* fix Safari mobile address bar */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 90px;
  text-align: center;
}

/* ── Badge ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(100, 220, 130, 0.5);
  background: rgba(100, 220, 130, 0.12);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #7DEBA0;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s ease forwards;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7DEBA0;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* ── Logo ──────────────────────────────────────────────────────── */
.logo {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 12vw, 104px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}

.logo span {
  color: var(--green);
}

/* ── Tagline ───────────────────────────────────────────────────── */
.tagline {
  font-size: clamp(15px, 3.5vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s ease forwards;
}

.tagline strong {
  color: #fff;
  font-weight: 600;
}

/* ── Countdown ─────────────────────────────────────────────────── */
.countdown {
  display: flex;
  gap: clamp(6px, 2vw, 16px);
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: nowrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s ease forwards;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: clamp(12px, 3vw, 20px) clamp(12px, 3.5vw, 28px);
  min-width: clamp(62px, 16vw, 100px);
  transition: border-color 0.3s;
}

.cd-block:hover {
  border-color: rgba(78, 232, 122, 0.4);
}

.cd-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 7vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.cd-num.flip {
  transform: translateY(-3px);
  opacity: 0.5;
}

.cd-label {
  font-size: clamp(8px, 1.8vw, 10px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}

.cd-sep {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  padding-bottom: 16px;
  flex-shrink: 0;
}

/* ── Email form ────────────────────────────────────────────────── */
.form-wrap {
  width: 100%;
  max-width: 460px;
  padding: 0 4px;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s ease forwards;
}

.form-row {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}

.form-row:focus-within {
  border-color: rgba(78, 232, 122, 0.5);
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  outline: none;
  min-width: 0;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-btn {
  background: var(--green);
  color: #0a1f0e;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border-radius: 0 12px 12px 0;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.form-btn:hover  { background: var(--green-hover); }
.form-btn:active { transform: scale(0.97); }
.form-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.arrow { transition: transform 0.2s; }
.form-btn:hover .arrow { transform: translateX(3px); }

@keyframes spin { to { stroke-dashoffset: -30; } }
.spinner { animation: spin 0.8s linear infinite; }

.form-error {
  color: #ff8080;
  font-size: 12px;
  margin-top: 8px;
  text-align: left;
  padding-left: 4px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
}

.hidden { display: none !important; }

/* ── Scroll hint ───────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s 1.1s ease forwards;
}

.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.mouse-dot {
  width: 3px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scrollDown 1.8s ease infinite;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes scrollDown {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ── Responsive ────────────────────────────────────────────────── */

/* Telemóvel médio */
@media (max-width: 480px) {
  .page { padding: 40px 16px 80px; }
}

/* Telemóvel pequeno — esconde os : do timer */
@media (max-width: 400px) {
  .cd-sep { display: none; }
  .countdown { gap: 6px; }
  /* Esconde o texto do botão, fica só a seta */
  #btn-text { display: none; }
  .form-btn { padding: 14px 16px; }
}

/* Telemóvel muito pequeno */
@media (max-width: 360px) {
  .cd-block { padding: 10px 8px; min-width: 54px; }
  .cd-num   { font-size: 26px; }
}
