* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  background-color: #0b0f1a;
  background-image:
    radial-gradient(40rem 30rem at 20% 15%, rgba(120, 80, 255, 0.35), rgba(0,0,0,0) 55%),
    radial-gradient(35rem 28rem at 85% 25%, rgba(0, 195, 255, 0.35), rgba(0,0,0,0) 55%),
    radial-gradient(30rem 24rem at 25% 85%, rgba(60, 220, 140, 0.28), rgba(0,0,0,0) 55%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 90px),
    linear-gradient(135deg, #0b0f1a 0%, #0a0d17 50%, #0c0f1b 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  padding: 20px;
}

/* Glass layer is background only */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  pointer-events: none;
  z-index: -1;
}

/* Create a new stacking context so the background sits behind everything */
body { isolation: isolate; }

header { text-align: center; padding: 48px 0 28px; }

/* Elegant, calm title */
.title-hero {
  font-size: clamp(1.8rem, 4.8vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}

.title-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: min(160px, 32vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.1), rgba(255,255,255,0.35));
}

/* no title animation for a calmer feel */

section {
  background: transparent;
  padding: 28px;
  border-radius: 14px;
  margin: 20px 0;
}

h2 { color: rgba(255,255,255,0.94); margin-bottom: 12px; }

p { color: rgba(255,255,255,0.84); }

footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Centered CTA area */
.hero-cta {
  display: grid;
  place-items: center;
  min-height: 42vh;
}

/* High-contrast, modern CTA button (no glass) */
.upload-button {
  appearance: none;
  border: none;
  padding: 20px 40px;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0b0f1a;
  background: linear-gradient(135deg, #FFE98A 0%, #FFC176 45%, #FF8ABB 100%);
  box-shadow:
    0 18px 42px rgba(255, 128, 64, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.5);
  border-radius: 16px;
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, box-shadow, filter;
}

.upload-button:hover { 
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 54px rgba(255, 128, 64, 0.45), 0 12px 28px rgba(0,0,0,0.55);
  filter: saturate(1.05);
}

.upload-button:active { transform: translateY(0) scale(0.985); }

/* Hover shine sweep */
.upload-button::before {
  /* Hover shine sweep */
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 60%;
  transform: translateX(-120%) rotate(20deg);
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.45) 45%,
    rgba(255,255,255,0.9) 50%,
    rgba(255,255,255,0.45) 55%,
    rgba(255,255,255,0) 100%
  );
  pointer-events: none;
}

.upload-button:hover::before { animation: sweep 900ms ease-out forwards; }

@keyframes sweep { to { transform: translateX(220%) rotate(20deg); } }

.upload-button::after {
  /* Breathing outer glow for affordance */
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 216, 120, 0.28), rgba(255, 138, 187, 0.18), rgba(0,0,0,0) 70%);
  filter: blur(18px);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

/* Accessible focus ring */
.upload-button:focus-visible {
  outline: 3px solid #80caff;
  outline-offset: 3px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .upload-button,
  .upload-button::before,
  .upload-button::after { transition: none; animation: none !important; }
}

/* Subtle floating and gradient animation */
/* Unused older animations removed */
