/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:        #0a0a0f;
  --surface:   #14141f;
  --surface-2: #1c1c2e;
  --border:    rgba(255,255,255,.06);
  --text:      #e8e8f0;
  --text-dim:  #8888a4;
  --accent:    #6c5ce7;
  --accent-2:  #a29bfe;
  --glow:      rgba(108,92,231,.35);
  --success:   #00cec9;
  --warn:      #fd79a8;
  --radius:    16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-effects {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-effects .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .25;
  animation: float 20s ease-in-out infinite;
}
.bg-effects .orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.bg-effects .orb-2 {
  width: 500px; height: 500px;
  background: #e84393;
  bottom: -150px; left: -150px;
  animation-delay: -7s;
}
.bg-effects .orb-3 {
  width: 400px; height: 400px;
  background: var(--success);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  opacity: .1;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.05); }
  66%      { transform: translate(-20px, 30px) scale(.95); }
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== LAYOUT ===== */
.wrap {
  position: relative; z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  margin-bottom: 20px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.nav-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff;
  box-shadow: 0 0 20px var(--glow);
}
.nav-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.15rem;
}
.nav-badge {
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent-2);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 48px 0 40px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center; gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(0,206,201,.08);
  border: 1px solid rgba(0,206,201,.15);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 24px;
  letter-spacing: .3px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.8); }
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent-2), #fd79a8, var(--success));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== CARD ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: .5;
}
.card.glow-card {
  box-shadow: 0 0 40px -10px var(--glow);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 8px;
  color: var(--text-dim);
  letter-spacing: .3px;
  text-transform: uppercase;
}
input[type=url], input[type=text] {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color .25s, box-shadow .25s;
}
input::placeholder { color: var(--text-dim); opacity: .5; }
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--accent), #7c5ce7);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .25s;
  box-shadow: 0 4px 20px var(--glow);
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--glow);
}
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn-outline:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow);
}
.btn-sm {
  width: auto;
  padding: 10px 20px;
  font-size: .9rem;
  margin-top: 0;
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color .25s, transform .2s;
}
.feature:hover {
  border-color: rgba(108,92,231,.3);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  background: var(--surface-2);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
}
.feature h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature p {
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===== STEPS (how it works) ===== */
.steps { margin: 32px 0; }
.steps h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  position: relative;
}
.step + .step { border-top: 1px solid var(--border); }
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: .85rem;
  color: #fff;
}
.step-text h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: .95rem;
  margin-bottom: 4px;
}
.step-text p {
  font-size: .85rem;
  color: var(--text-dim);
}

/* ===== QR RESULT PAGE ===== */
.qr-result { text-align: center; }
.qr-result h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.qr-wrap {
  display: inline-block;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  margin: 8px 0 20px;
  box-shadow: 0 0 40px var(--glow);
}
.qr-wrap img {
  display: block;
  width: 240px; height: 240px;
}
.short-link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', monospace;
  font-size: .9rem;
  color: var(--accent-2);
  word-break: break-all;
  margin: 12px 0 6px;
  text-decoration: none;
}
.short-link:hover { border-color: var(--accent); }
.expires-tag {
  display: inline-flex;
  align-items: center; gap: 6px;
  font-size: .8rem;
  color: var(--warn);
  background: rgba(253,121,168,.08);
  border: 1px solid rgba(253,121,168,.15);
  border-radius: 20px;
  padding: 6px 14px;
  margin: 16px 0;
}
.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ===== EXPIRED / 404 PAGE ===== */
.status-page {
  text-align: center;
  padding: 60px 0;
}
.status-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.status-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.status-page p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px 0 0;
  color: var(--text-dim);
  font-size: .8rem;
}
footer a {
  color: var(--accent-2);
  text-decoration: none;
}

/* ===== UTILITIES ===== */
a { color: var(--accent-2); }
.center { text-align: center; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .wrap { padding: 24px 16px 60px; }
  .card { padding: 24px 18px; }
  .features { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
