/* Font & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Body Background + Breathing Glow */
body {
  background: radial-gradient(ellipse at top, #003a63, #000c18 60%);
  color: #e8eef5;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 95px;
  transition: background 1.3s ease;
}

body::before {
  content: "";
  position: fixed;
  top: -15%;
  left: -20%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, #009dff33, transparent 75%);
  filter: blur(140px);
  animation: breathing 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes breathing {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.12); }
}

/* Dynamic Island / Status Bar */
.status-bar {
  position: fixed;
  top: 25px;
  width: 88%;
  max-width: 520px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px) saturate(180%);
  padding: 10px 18px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d8e8ff;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 45px rgba(0,140,255,0.18);
}

/* Title */
h1 {
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #83ddff, #b2f5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  text-shadow: 0 0 25px #00c3ff45;
}

/* Card UI */
.container {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 12px 45px rgba(0,153,255,0.22);
  width: 100%;
  max-width: 500px;
  text-align: center;
  transition: transform .25s ease;
}
.container:hover {
  transform: translateY(-3px);
}

/* Input */
input {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #e8eef5;
  font-size: 1rem;
  outline: none;
  border: 1px solid rgba(0,150,255,0.4);
  transition: 0.25s;
}
input:focus {
  box-shadow: 0 0 20px #00aaff55;
  border-color: #72e5ff;
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 25px rgba(0,180,255,0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 50px rgba(0,200,255,0.85);
    transform: scale(1.04);
  }
}

/* iOS Pulse Button */
button {
  background: linear-gradient(90deg, #18b3ff, #5ad7ff);
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #05131a;
  transition: transform 0.18s cubic-bezier(.3,1.5,.6,1);
  animation: pulseGlow 2.6s infinite ease-in-out;
}
button:active {
  transform: scale(0.94);
}

/* Result */
.result img {
  margin-top: 18px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid #59d6ff;
  box-shadow: 0 0 30px rgba(30,144,255,0.35);
}

/* Download Button */
.download-btn {
  margin-top: 15px;
  display: inline-block;
  padding: 12px 26px;
  border-radius: 40px;
  background: linear-gradient(90deg, #00c7ff, #1e8fff);
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: 0.25s;
  box-shadow: 0 0 22px rgba(0,170,255,0.55);
}
.download-btn:hover {
  transform: scale(1.07);
}

/* Footer */
.footer {
  position: relative;
  margin-top: 35px;
  text-align: center;
  color: #4dafff;
  font-size: 0.9rem;
  opacity: 0.85;
  letter-spacing: 0.5px;
  transition: 0.3s;
  padding-bottom: 25px;
}

.footer:hover {
  opacity: 1;
  text-shadow: 0 0 12px #00baff;
}

.footer::before {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 60px;
  background: radial-gradient(circle, #00aaff33, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}
