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

:root {
  --bg: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e4e4e7;
  --text-muted: #71717a;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.3);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow effects */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -15%;
  right: -10%;
  animation: drift1 12s ease-in-out infinite alternate;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  bottom: -10%;
  left: -10%;
  animation: drift2 14s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.1); }
}

@keyframes drift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -30px) scale(1.15); }
}

/* Subtle grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

main {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 580px;
  animation: fadeUp 1s ease-out;
}

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

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px var(--accent-glow);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
  margin-bottom: 2rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  white-space: nowrap;
}

h1 .accent {
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Divider */
.divider {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 2.5rem auto;
}

/* Section heading */
.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Contact form */
.contact-form {
  max-width: 460px;
  margin: 0 auto 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border-radius: 12px;
  transition: opacity 0.2s, transform 0.2s;
  align-self: flex-start;
}

.contact-form button:hover {
  opacity: 0.9;
}

.contact-form button:active {
  transform: scale(0.97);
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.5em;
  margin-bottom: 2.5rem;
  transition: color 0.3s;
}

.form-note.success {
  color: #22c55e;
}

.form-note.error {
  color: #ef4444;
}

/* Link cards */
.link-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.link-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.link-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.link-card-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.link-card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.link-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.link-card-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.link-card:hover .link-card-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* QR modal overlay */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.qr-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qr-overlay img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 0 60px var(--accent-glow);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.qr-overlay.active img {
  transform: scale(1);
}

/* Swipe hint on card */
.swipe-hint {
  color: var(--text-muted);
  opacity: 0.4;
  flex-shrink: 0;
  margin-right: 2px;
  display: flex;
  align-items: center;
}

/* Chat button */
.chat-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: none;
}

.chat-btn:hover {
  color: var(--accent);
  border-color: var(--accent-glow);
  background: rgba(139, 92, 246, 0.08);
}

.chat-btn.holding {
  color: var(--accent);
  border-color: var(--accent-glow);
}

.chat-btn-icon {
  position: relative;
  z-index: 1;
}

.chat-btn-progress {
  position: absolute;
  top: -1px;
  left: -1px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.chat-btn-progress circle {
  transition: none;
}

.chat-btn.holding .chat-btn-progress circle {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s linear;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 2;
}

/* Responsive */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }

  .contact-form button {
    align-self: stretch;
  }

  .chat-btn {
    width: 56px;
    height: 56px;
  }

  .chat-btn-icon {
    width: 32px;
    height: 32px;
  }

  .chat-btn-progress {
    width: 56px;
    height: 56px;
  }
}
