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

:root {
  --bg-deep: #030014;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.35);
  --accent-secondary: #7b2ff7;
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --surface: rgba(12, 18, 40, 0.75);
  --surface-border: rgba(255, 255, 255, 0.08);
  --error: #ff6b6b;
  --radius: 12px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.stars-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(123, 47, 247, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
}

.hero-content {
  text-align: center;
  max-width: min(94vw, 900px);
  width: 100%;
  animation: fadeUp 1s ease-out;
}

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

.title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 10vw, 6.25rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: inline-block;
  max-width: 100%;
  padding-inline: 0.12em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 80px var(--accent-glow);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 560px;
  margin-inline: auto;
}

.inquiry-form input[type="email"] {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(12px);
}

.inquiry-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.inquiry-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

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

.btn-primary {
  color: #030014;
  background: linear-gradient(135deg, var(--accent) 0%, #00a8cc 100%);
  box-shadow: 0 4px 24px var(--accent-glow);
}

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

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

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  text-align: left;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(3, 0, 20, 0.7);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.25s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  background: rgba(12, 18, 40, 0.92);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 255, 0.06);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 420px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.field input[type="text"]:focus {
  border-color: var(--accent);
}

.toggle-field {
  border: none;
  margin-bottom: 1.25rem;
}

.toggle-field legend {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.toggle-group {
  display: flex;
  gap: 0.5rem;
}

.toggle-option {
  flex: 1;
  cursor: pointer;
}

.toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-option span {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  transition: all 0.2s;
}

.toggle-option input:checked + span {
  color: #030014;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.toggle-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  transition: opacity 0.2s, border-color 0.2s;
}

.checkbox-field.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkbox-field input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-field.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.checkbox-field:has(input:checked) {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 110px;
}

/* Success modal */
.modal-success {
  text-align: center;
  max-width: 400px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #030014;
  background: linear-gradient(135deg, var(--accent), #00a8cc);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--accent-glow);
}

.modal-success .btn {
  margin-top: 0.5rem;
  width: 100%;
}
