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

:root {
  --bg: #0a0f1e;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-solid: #111827;
  --bg-input: rgba(30, 41, 59, 0.6);
  --bg-input-focus: rgba(30, 41, 59, 0.9);
  --border: rgba(148, 163, 184, 0.15);
  --border-focus: rgba(13, 148, 136, 0.6);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #0d9488;
  --accent-glow: rgba(13, 148, 136, 0.2);
  --accent2: #6366f1;
  --gradient: linear-gradient(135deg, #0d9488, #6366f1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

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

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

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(13, 148, 136, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== ACCESS GATE ===== */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
}

.gate-content {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.gate-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.gate-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.gate-form {
  margin-bottom: 24px;
}

.gate-input-wrap {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(10px);
}

.gate-input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.gate-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Inter', monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
  min-width: 0;
}

.gate-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

.gate-btn {
  flex-shrink: 0;
  padding: 12px 24px;
  background: var(--gradient);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.gate-btn:hover {
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.gate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gate-error {
  color: #f87171;
  font-size: 13px;
  margin-top: 12px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

.gate-hint {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}


.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #0a0f1e 0%, #0f1729 40%, #0d2847 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 25% 40%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.hero-tagline {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  margin: 0 auto 32px;
  border-radius: 2px;
}

.hero-instructions {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-instructions h3 {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 12px;
}

.hero-instructions ul {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 2;
}

.hero-instructions li::before {
  content: '•';
  color: var(--accent);
  margin-right: 8px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4);
}

.hero-cta svg {
  animation: bounce 2s infinite;
}

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

.hero-meta {
  margin-top: 32px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 36px;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.15), rgba(99, 102, 241, 0.15));
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  position: relative;
  z-index: 1;
}

/* ===== SECTION ===== */
.section {
  margin-bottom: 48px;
  scroll-margin-top: 52px;
}

.section-header {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.section-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

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

/* ===== QUESTION CARD ===== */
.question {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(6px);
}

.question:hover {
  border-color: rgba(148, 163, 184, 0.25);
}

.question.answered {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.1);
}

.q-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.5;
}

.q-label em {
  font-weight: 400;
  color: var(--text-muted);
  font-style: normal;
}

.q-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.question.answered .q-num {
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.3);
}

.q-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-style: italic;
  padding-left: 38px;
}

/* ===== INPUTS ===== */
textarea, .text-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: all var(--transition);
  resize: vertical;
}

textarea:focus, .text-input:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea::placeholder, .text-input::placeholder {
  color: var(--text-dim);
}

.text-input.small {
  margin-top: 10px;
}

/* ===== CHECKBOXES ===== */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.check-item:hover {
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text);
}

.check-item input[type="checkbox"] {
  display: none;
}

.check-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-dim);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.check-item input:checked + .check-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.check-item input:checked + .check-mark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.check-item:has(input:checked) {
  border-color: rgba(13, 148, 136, 0.4);
  background: rgba(13, 148, 136, 0.08);
  color: var(--text);
}

/* ===== RADIO BUTTONS ===== */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.radio-item:hover {
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text);
}

.radio-item input[type="radio"] {
  display: none;
}

.radio-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.radio-item input:checked + .radio-mark {
  border-color: var(--accent);
}

.radio-item input:checked + .radio-mark::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.radio-item:has(input:checked) {
  border-color: rgba(13, 148, 136, 0.4);
  background: rgba(13, 148, 136, 0.08);
  color: var(--text);
}

/* ===== RATING TABLES ===== */
.rating-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

.rating-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 500px;
}

.rating-table thead th {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.rating-table thead th:first-child {
  text-align: left;
  border-radius: var(--radius-sm) 0 0 0;
  padding-left: 16px;
}

.rating-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.rating-table tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
}

.rating-table tbody td:first-child {
  text-align: left;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text);
  min-width: 200px;
}

.rating-table tbody tr:last-child td {
  border-bottom: none;
}

.rating-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.radio-cell {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.radio-cell input[type="radio"] {
  display: none;
}

.radio-dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.radio-cell input:checked + .radio-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(13, 148, 136, 0.3);
}

.radio-cell input:checked + .radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.radio-cell:hover .radio-dot {
  border-color: var(--accent);
}

/* ===== CONTACT GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: center;
}

.contact-grid label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== SUBMIT ===== */
.submit-section {
  margin-top: 32px;
  margin-bottom: 40px;
}

.submit-card {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.submit-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.submit-card > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 40px;
  background: var(--gradient);
  color: white;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4);
}

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

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

.submit-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.modal p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-btn {
  padding: 12px 32px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ===== ANIMATIONS ===== */
.section {
  animation: fadeUp 0.6s ease both;
}

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

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .container { padding: 16px 12px 40px; }
  .section-header { padding: 20px; }
  .question { padding: 18px 16px; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 6px; }
  .contact-grid label { margin-top: 6px; }
  .rating-table { font-size: 12px; }
  .rating-table thead th { font-size: 10px; padding: 10px 6px; }
  .rating-table tbody td { padding: 8px 6px; }
  .rating-table tbody td:first-child { min-width: 140px; font-size: 12px; }
  .submit-card { padding: 28px 20px; }
  .hero-instructions { padding: 18px; }
}
