:root {
  --bg-deep: #0a1628;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f0f4f8;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max-width: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6, 182, 212, 0.12), transparent),
    linear-gradient(160deg, #0a1628 0%, #0f2744 40%, #0a1628 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 2rem;
}

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

.logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

.social-nav {
  display: flex;
  gap: 0.75rem;
}

.social-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-nav a:hover {
  color: var(--text);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Main */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}

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

.hero-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.08));
  border-color: rgba(59, 130, 246, 0.25);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.subtext {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
}

.subtext strong {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-download {
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Register divider */
.divider-label {
  text-align: center;
  margin-bottom: 1rem;
}

.divider-label span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--bg-deep);
  padding: 0 0.75rem;
  position: relative;
}

.register-card {
  border-color: rgba(6, 182, 212, 0.25);
  animation-delay: 0.1s;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  animation: fadeUp 0.5s ease both;
}

.info-tile:nth-child(2) { animation-delay: 0.1s; }
.info-tile:nth-child(3) { animation-delay: 0.2s; }

.info-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.info-tile h3 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.info-tile p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Flash messages */
.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeUp 0.3s ease;
}

.flash-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.flash-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.flash-info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

/* Survey */
.survey-header-card .welcome-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.survey-header-card .lead {
  margin: 0;
  text-align: left;
}

.success-card {
  text-align: center;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.question-card {
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.question-number {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Star rating */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  padding: 0.15rem;
  transition: transform 0.15s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
  transform: scale(1.15);
}

.star-icon {
  width: 36px;
  height: 36px;
  fill: rgba(148, 163, 184, 0.25);
  stroke: rgba(148, 163, 184, 0.4);
  stroke-width: 0.5;
  transition: fill 0.15s ease, filter 0.15s ease;
}

.star-rating label:hover .star-icon,
.star-rating label:hover ~ label .star-icon,
.star-rating input:checked ~ label .star-icon {
  fill: #fbbf24;
  stroke: #f59e0b;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.rating-label {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rating-label.active {
  color: #fbbf24;
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 768px) {
  .page-wrap {
    padding: 1rem 1rem 2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .hero-card {
    padding: 2rem 1.25rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .survey-header-card .welcome-row {
    flex-direction: column;
  }

  .logo {
    height: 40px;
  }

  .star-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.45rem;
  }

  .btn-download {
    width: 100%;
  }
}
