/* ============================================================
   QRTech — Coming Soon
   Brand palette: navy #16294C · teal #1E6E5C · green #2E9E5B
   ============================================================ */

:root {
  --navy: #16294c;
  --navy-deep: #0e1e3a;
  --teal: #1e6e5c;
  --green: #2e9e5b;
  --green-light: #3fb56b;
  --green-bright: #46be74;

  --ink: #16294c;
  --muted: #5a6b82;
  --line: rgba(22, 41, 76, 0.12);

  --bg-1: #eef3f9;
  --bg-2: #e7f1ec;
  --card: rgba(255, 255, 255, 0.68);

  --grad: linear-gradient(120deg, #16294c 0%, #1e6e5c 55%, #2e9e5b 100%);
  --grad-soft: linear-gradient(120deg, #1e6e5c, #3fb56b);

  --shadow-sm: 0 6px 18px rgba(14, 30, 58, 0.08);
  --shadow-md: 0 20px 50px rgba(14, 30, 58, 0.14);
  --radius: 22px;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vh, 22px) 18px;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 15% -10%, #ffffff, transparent 60%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(22, 41, 76, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 41, 76, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 78%);
  animation: gridPan 42s linear infinite;
}

@keyframes gridPan {
  from { background-position: 0 0; }
  to   { background-position: 46px 46px; }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.4;
  will-change: transform;
}
.blob--navy {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, var(--navy) 0%, transparent 70%);
  top: -140px;
  left: -120px;
  animation: floatA 20s ease-in-out infinite;
}
.blob--green {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  bottom: -160px;
  right: -120px;
  animation: floatB 24s ease-in-out infinite;
}
.blob--teal {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  top: 45%;
  left: 55%;
  opacity: 0.26;
  animation: floatA 28s ease-in-out infinite reverse;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 50px) scale(1.12); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-70px, -40px) scale(1.1); }
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -220px;
  height: 220px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(46, 158, 91, 0.08),
    rgba(63, 181, 107, 0.16),
    transparent
  );
  animation: scan 8s linear infinite;
}
@keyframes scan {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(115vh); opacity: 0; }
}

.particles {
  position: absolute;
  inset: 0;
}
.qr {
  position: absolute;
  bottom: -40px;
  border-radius: 4px;
  background: var(--grad-soft);
  opacity: 0;
  will-change: transform, opacity;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-108vh) rotate(180deg); opacity: 0; }
}

/* ---------- Layout ---------- */
.stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  background: var(--card);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3.2vh, 40px) 40px clamp(18px, 2.6vh, 32px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* gradient hairline on top of card */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}

/* ---------- Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(46, 158, 91, 0.1);
  border: 1px solid rgba(46, 158, 91, 0.25);
  border-radius: 999px;
  animation: fadeUp 0.7s ease both;
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(46, 158, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0); }
}

/* ---------- Logo ---------- */
.logo-wrap {
  margin: clamp(6px, 1.4vh, 18px) 0 4px;
  animation: fadeUp 0.7s ease 0.05s both;
}
.logo {
  width: auto;
  height: clamp(80px, 14vh, 144px);
  max-width: 82%;
  filter: drop-shadow(0 10px 22px rgba(14, 30, 58, 0.16));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Headline ---------- */
.headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: clamp(6px, 1.2vh, 12px);
  color: var(--navy);
  animation: fadeUp 0.7s ease 0.12s both;
}
.grad {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shift 5s ease infinite;
}
@keyframes shift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.subtitle {
  max-width: 520px;
  margin: clamp(8px, 1.3vh, 14px) auto 0;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  line-height: 1.5;
  color: var(--muted);
  animation: fadeUp 0.7s ease 0.18s both;
}
.subtitle strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(16px, 2.8vh, 28px) 0 0;
  animation: fadeUp 0.7s ease 0.24s both;
}
.count {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 74px;
  padding: clamp(8px, 1.3vh, 14px) 8px clamp(6px, 1vh, 10px);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.count__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.count__label {
  margin-top: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.count__sep {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--green);
  opacity: 0.6;
  transform: translateY(-8px);
}

/* ---------- Notify form ---------- */
.notify {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeUp 0.7s ease 0.3s both;
}
.notify__field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.notify__icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  fill: var(--muted);
  pointer-events: none;
}
.notify input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.notify input::placeholder { color: #97a4b6; }
.notify input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  background-size: 160% auto;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(30, 110, 92, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-position 0.4s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 14px 30px rgba(30, 110, 92, 0.45);
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.notify__msg {
  min-height: 20px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.notify__msg.show { opacity: 1; }
.notify__msg.error { color: #d64545; }

/* ---------- Socials ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(16px, 2.8vh, 28px);
  animation: fadeUp 0.7s ease 0.36s both;
}
.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.social svg {
  width: 20px;
  height: 20px;
  fill: var(--navy);
  transition: fill 0.25s ease;
}
.social:hover {
  transform: translateY(-4px);
  background: var(--grad);
  box-shadow: 0 12px 24px rgba(30, 110, 92, 0.35);
}
.social:hover svg { fill: #fff; }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(12px, 2vh, 22px);
  font-size: 0.82rem;
  color: var(--muted);
  animation: fadeUp 0.7s ease 0.42s both;
}
.foot__dot { color: var(--green); }

/* ---------- Utils / a11y ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .card { padding: clamp(20px, 3vh, 30px) 20px clamp(16px, 2.4vh, 26px); }
  .countdown { gap: 8px; }
  .count { min-width: 0; flex: 1; padding: 10px 4px 8px; }
  .count__sep { display: none; }
  .notify { flex-direction: column; }
  .btn { justify-content: center; }
}

@media (max-width: 360px) {
  .count__label { font-size: 0.58rem; }
}

/* Very short / landscape screens: shrink further so it still fits one frame */
@media (max-height: 560px) {
  .logo { height: clamp(56px, 12vh, 96px); }
  .headline { font-size: clamp(1.3rem, 3.4vh, 1.9rem); }
  .subtitle { font-size: 0.85rem; line-height: 1.45; }
  .pill { padding: 5px 13px; }
  .count__num { font-size: clamp(1.25rem, 4.4vh, 1.8rem); }
}

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