/* ===== DeployLabs Lead Generation — Standalone CSS ===== */
/* Zero dependencies. Mobile-first. Dark premium theme. */

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

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

:root {
  --bg-deep: #060a1a;
  --bg-card: rgba(15, 20, 50, 0.65);
  --bg-card-hover: rgba(20, 28, 65, 0.75);
  --glass-border: rgba(100, 140, 255, 0.12);
  --glass-border-hover: rgba(100, 160, 255, 0.25);
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --primary-light: #60a5fa;
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --input-bg: rgba(15, 23, 42, 0.7);
  --input-border: rgba(100, 140, 255, 0.15);
  --input-focus: rgba(59, 130, 246, 0.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Animated Background ===== */
.bg-animate {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-animate::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  animation: float-orb 18s ease-in-out infinite;
}

.bg-animate::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(6,182,212,0.10) 0%, transparent 70%);
  animation: float-orb 22s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(100,140,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100,140,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 20%, transparent 70%);
}

/* ===== Layout ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
}

.container {
  width: 100%;
  max-width: 520px;
}

/* ===== Logo & Header ===== */
.header {
  text-align: center;
  margin-bottom: 8px;
  animation: fade-up 0.6s ease-out;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.logo-icon {
  width: 40px; height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  margin-bottom: 28px;
  animation: fade-up 0.7s ease-out 0.1s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.hero-badge .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Glass Card ===== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  animation: fade-up 0.8s ease-out 0.2s both;
  transition: border-color 0.3s ease;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
}

/* ===== Form ===== */
.form-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: all 0.25s ease;
  outline: none;
}

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

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--input-focus);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8'%3E%3Cpath d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: #0f172a;
  color: var(--text-primary);
}

/* Checkbox grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.checkbox-item:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  width: 16px; height: 16px;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.checkbox-item input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-item:has(input:checked) {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--text-primary);
}

/* ===== Submit Button ===== */
.btn-submit {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  box-shadow: 0 4px 20px -4px var(--primary-glow), 0 0 0 1px rgba(59,130,246,0.2);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -4px var(--primary-glow), 0 0 0 1px rgba(59,130,246,0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: -100% -40%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.25) 48%, transparent 62%);
  transform: translateX(-65%);
  animation: btn-shine 2.8s ease-in-out infinite;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-label { display: none; }

@keyframes btn-shine {
  0%, 30% { transform: translateX(-65%); }
  70%, 100% { transform: translateX(65%); }
}

/* ===== Server Status ===== */
.server-status-card {
  animation: fade-up 0.9s ease-out 0.3s both;
}

.status-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-dot.online::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.3);
  animation: pulse-ring 2s ease-out infinite;
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-dot.checking {
  background: var(--warning);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.status-label small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-explore {
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--success);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-explore:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateX(2px);
}

.btn-retry {
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-retry:hover {
  background: rgba(239, 68, 68, 0.18);
}

/* ===== Social Links ===== */
.social-section {
  text-align: center;
  margin-bottom: 20px;
  animation: fade-up 1s ease-out 0.4s both;
}

.social-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.social-link:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.social-link.instagram:hover { border-color: rgba(225, 48, 108, 0.4); color: #e1306c; }
.social-link.youtube:hover { border-color: rgba(255, 0, 0, 0.3); color: #ff0000; }
.social-link.linkedin:hover { border-color: rgba(10, 102, 194, 0.4); color: #0a66c2; }
.social-link.topmate:hover { border-color: rgba(99, 102, 241, 0.4); color: #818cf8; }

.social-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* ===== Success / Profile Info Page ===== */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-deep);
  overflow-y: auto;
  animation: fade-in 0.3s ease;
}

.success-overlay.visible {
  display: block;
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 48px;
}

.success-page-inner {
  width: 100%;
  max-width: 480px;
  animation: fade-up 0.5s ease-out;
}

/* Download confirmation banner */
.download-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.download-confirm-icon {
  font-size: 1.1rem;
}

.btn-redownload {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--success);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-redownload:hover {
  background: rgba(34, 197, 94, 0.25);
}

/* Profile section */
.profile-section {
  text-align: center;
  margin-bottom: 28px;
}

.profile-photo-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto;
}

/* Profile social buttons */
.profile-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.profile-social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.profile-social-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: translateX(4px);
}

.profile-social-btn.instagram:hover {
  border-color: rgba(225, 48, 108, 0.35);
  color: #e1306c;
  background: rgba(225, 48, 108, 0.06);
}

.profile-social-btn.youtube:hover {
  border-color: rgba(255, 0, 0, 0.25);
  color: #ff4444;
  background: rgba(255, 0, 0, 0.05);
}

.profile-social-btn.linkedin:hover {
  border-color: rgba(10, 102, 194, 0.35);
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.06);
}

.profile-social-btn.topmate:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: #818cf8;
  background: rgba(99, 102, 241, 0.06);
}

/* DeployLabs CTA */
.deploylabs-cta {
  text-align: center;
  margin-bottom: 20px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.deploylabs-cta-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.btn-deploylabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px -4px var(--primary-glow);
  width: 100%;
}

.btn-deploylabs:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -4px var(--primary-glow);
}

.deploylabs-cta-status {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Close / Back button */
.btn-close-success {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-success:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding-top: 8px;
  animation: fade-up 1.1s ease-out 0.5s both;
}

.footer p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--primary-light);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== Error message ===== */
.form-error {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 12px;
}

.form-error.visible { display: block; }

.form-success-inline {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
  font-size: 0.82rem;
  margin-top: 12px;
}

.form-success-inline.visible { display: block; }

/* ===== Animations ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-up {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes success-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .page-wrapper { padding: 16px 12px 32px; }
  .glass-card { padding: 22px 18px; }
  .status-content { flex-direction: column; text-align: center; gap: 10px; }
  .social-links { gap: 8px; }
  .social-link { padding: 8px 14px; font-size: 0.78rem; }
  .success-page { padding: 20px 12px 36px; }
  .download-confirm { font-size: 0.82rem; }
  .profile-photo-wrap { width: 96px; height: 96px; }
}

