/* Megavin Foods – Under Construction | Mobile + Tablet responsive */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #0a4fc4;
  --blue-dark: #0a2f8f;
  --blue-light: #1e90ff;
  --green: #7ec800;
  --green-dark: #5da400;
  --ink: #111827;
  --muted: #5b6472;
  --card-bg: #ffffff;
  --radius: 24px;
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 45%, #f3ffe0 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

/* background blobs */
.bg-shapes span {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}
.shape-1 { width: 420px; height: 420px; background: #bcd8ff; top: -120px; left: -120px; }
.shape-2 { width: 380px; height: 380px; background: #d6f59a; bottom: -120px; right: -100px; }
.shape-3 { width: 220px; height: 220px; background: #a9c8ff; top: 40%; right: 6%; opacity: .25; }
.shape-4 { width: 180px; height: 180px; background: #e2f8b0; top: 10%; right: 22%; opacity: .4; }

.wrapper {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius: 0;
  width: 100%;
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 32px 36px;
  text-align: center;
  box-shadow: none;
  border: none;
  border-top: 6px solid transparent;
  border-image: linear-gradient(90deg, var(--green) 0%, var(--green) 30%, var(--blue) 30%, var(--blue) 100%) 1;
  border-left: none;
  border-right: none;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card::before {
  content: "";
  display: none;
}

/* constrain inner content for readability on large screens */
.card > * {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff7e6;
  border: 1px solid #ffe1a1;
  color: #9a6200;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 9px; height: 9px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
  70% { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* Logo */
.logo-wrap { margin: 6px auto 18px; }
.logo {
  max-width: 340px;
  width: 80%;
  height: auto;
  object-fit: contain;
}
.logo-fallback {
  font-family: 'Sora', sans-serif;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 1px;
}
.logo-fallback .v-blue { color: var(--blue); }
.logo-fallback small {
  display: block;
  font-size: 16px;
  letter-spacing: 4px;
  background: var(--blue);
  color: #fff;
  border-radius: 100px;
  padding: 6px 10px;
  margin-top: 8px;
}

h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
  margin-bottom: 12px;
}
.highlight {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 24px;
}
.subtitle strong { color: var(--ink); }

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}
.time-box {
  background: #f4f7ff;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  min-width: 110px;
  padding: 14px 10px 12px;
}
.time-box span {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
}
.time-box label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
}
.sep {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  opacity: .5;
}

/* Form */
.notify-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}
.notify-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 100px;
  border: 1.5px solid #d4dded;
  font-size: 15px;
  outline: none;
  transition: .2s;
  min-width: 0;
}
.notify-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10,79,196,.1); }
.notify-form button {
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(10,79,196,.3);
}
.notify-form button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(10,79,196,.35); }
.notify-form button:active { transform: translateY(0); }

.form-msg { margin-top: 14px; font-size: 14px; padding: 10px 16px; border-radius: 12px; display: inline-block; }
.form-msg.success { background: #e9f9d8; color: #2f6b00; border: 1px solid #bfe88a; }
.form-msg.error { background: #fde8e8; color: #a10000; border: 1px solid #f5a3a3; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
  text-align: left;
}
.feature {
  background: #fafbff;
  border: 1px solid #e7edf7;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature .icon { font-size: 24px; line-height: 1; }
.feature strong { font-size: 14px; display: block; margin-bottom: 2px; }
.feature p { font-size: 12.5px; color: var(--muted); }

/* Contact */
.contact {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact a { color: var(--blue-dark); text-decoration: none; font-weight: 600; }
.contact a:hover { text-decoration: underline; }
.divider { opacity: .4; }

footer {
  width: 100%;
  background: var(--blue-dark);
  color: #dbe6ff;
  margin-top: 0;
  font-size: 13px;
  text-align: center;
  padding: 14px 16px;
}
footer strong { color: #fff; }

/* ---------- Tablet (≤768px) ---------- */
@media (max-width: 768px) {
  .card { padding: 40px 24px 30px; }
  .logo { max-width: 280px; width: 75%; }
  .logo-fallback { font-size: 40px; }
  h1 { font-size: 30px; }
  .subtitle { font-size: 15px; }
  .time-box { min-width: 68px; padding: 10px 6px 8px; }
  .time-box span { font-size: 24px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:last-child { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- Mobile (≤520px) ---------- */
@media (max-width: 520px) {
  .card { padding: 34px 18px 28px; }
  .badge { font-size: 10.5px; letter-spacing: 1px; padding: 7px 13px; }
  .logo { max-width: 220px; width: 80%; }
  .logo-fallback { font-size: 32px; }
  h1 { font-size: 24px; }
  .subtitle { font-size: 14px; margin-bottom: 20px; }
  .countdown { gap: 6px; }
  .time-box { min-width: 0; flex: 1; border-radius: 12px; padding: 10px 4px 8px; }
  .time-box span { font-size: 20px; }
  .time-box label { font-size: 9.5px; letter-spacing: 1px; }
  .sep { font-size: 18px; }
  .notify-form { flex-direction: column; }
  .notify-form input, .notify-form button { width: 100%; padding: 13px 18px; }
  .features { grid-template-columns: 1fr; }
  .feature:last-child { grid-column: auto; }
  .contact { font-size: 13px; flex-direction: column; gap: 4px; }
  .divider { display: none; }
}
