:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(20, 20, 30, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --accent-primary: #00e1a0;
  --accent-secondary: #5e00ff;
  --accent-gradient: linear-gradient(135deg, #00e1a0 0%, #5e00ff 100%);
  --success: #00e1a0;
  --error: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Effects */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(102, 126, 234, 0.15),
      transparent
    ),
    radial-gradient(
      ellipse 60% 50% at 80% 50%,
      rgba(118, 75, 162, 0.1),
      transparent
    );
  pointer-events: none;
  z-index: 0;
}

.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
}

.labs-badge {
  background: var(--accent-gradient);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 12px;
  border-radius: 6px;
}

.logo a {
  display: flex;
}

/* Hero Text */
.hero-text {
  text-align: center;
  margin-bottom: 32px;
}

.tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  flex: 0;
  display: flex;
  flex-direction: column;
  max-height: 800px;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 1;
}

.progress-step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.progress-step.active .step-circle {
  border-color: var(--accent-primary);
  background: var(--accent-gradient);
}

.progress-step span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin-bottom: 24px;
}

/* Step Content */
.step-content {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.4s ease;
  flex: 1;
}

.step-content.active {
  display: flex;
}

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

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-card:hover {
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
}

.service-card.selected {
  border-color: var(--accent-primary);
  background: rgba(102, 126, 234, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.service-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

.service-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  height: 96px;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Form */
.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form.hidden {
  display: none;
}

/* 2-column grid for form on desktop */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .input-group.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.input-group {
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 15px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(102, 126, 234, 0.05);
}

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

.input-group select {
  width: 100%;
  padding: 15px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%23a0a0b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.input-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: rgba(102, 126, 234, 0.05);
}

.input-group select option {
  background: #1a1a2e;
  color: var(--text-primary);
  padding: 10px;
}

.otp-input {
  text-align: center;
  font-size: 24px !important;
  font-weight: 600;
  letter-spacing: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  font-family: inherit;
  margin-top: 20px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-success {
  background: linear-gradient(135deg, #00e1a0 0%, #00b882 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 225, 160, 0.3);
  font-size: 18px;
  padding: 18px 32px;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 225, 160, 0.4);
}

.btn-link {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px;
}

.btn-link:hover {
  color: var(--accent-primary);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Loading state */
.btn.loading span {
  opacity: 0;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* OTP Message */
.otp-sent-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(0, 225, 160, 0.1);
  border: 1px solid rgba(0, 225, 160, 0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 14px;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

/* Success Step */
.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.demo-link-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 20px 0;
}

.demo-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-primary);
}

.note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

.email-sent-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(0, 225, 160, 0.1);
  border: 1px solid rgba(0, 225, 160, 0.3);
  border-radius: 10px;
  color: var(--success);
  font-size: 14px;
  margin-bottom: 24px;
}

.email-icon {
  font-size: 18px;
}

.email-icon-svg {
  stroke: var(--success);
  flex-shrink: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 30px;
  margin-top: auto;
}

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

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-primary);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--success);
  color: white;
}

.toast.error {
  background: var(--error);
  color: white;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px 16px;
  }

  .card {
    padding: 24px 20px;
  }

  h1 {
    font-size: 24px;
  }

  .demo-info {
    flex-direction: column;
    gap: 16px;
  }

  .progress-line {
    width: 24px;
  }
}
